PDA

View Full Version : Reusable classes


knuckleswanny
01-26-2003, 05:44 AM
Maybe I just missed it in the documentation but how do I include classes in my views. The Window tutorial shows how to include them in the same file but I would like to have the class definition of the media window in one file and then create another file that uses it in a view.
If this isn't clear please let me know. Thanks

hqm
01-26-2003, 06:04 AM
You can use the <include> tag


<include href="pathname.lzx"/>



You can use a relative pathname to include files in the same directory, or a leading slash will be relative to the servlet document root.

You included files should use the <library> root element rather than <canvas>.

See the contacts.lzx source file for example of usage.

knuckleswanny
01-26-2003, 06:22 AM
Excellent thank you.