-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3490650
By: nobody
Did anybody know where to download the zul document that contain zul component's attribute. Because i cann't find any attribute inside the zul Java API.
Thank a lot.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3490817
By: henrichen
The attribute xyz in a zul component tag is actually the setXyz() method in the Java API. It is a name pattern match. e.g. <label value="YES"/> would make ZK engine new a Label component and call setValue("YES"). Note that this name pattern also applys to the component class that defined by yourself(see userguide page 21, "The use Attribute").
e.g. If you defined a method setFirstname() in your own class, say MyWindow, then you do
<window firtname="John" use="MyWindow">
...
</window>
The ZK engine would new a MyWindow component and call setUsername("John") for you.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3490825
By: henrichen
Sorry, some typos :)
I write it again here.
------------------------
e.g. If you defined a method setFirstname(String name) in your own class, say MyWindow, then you do
<window firstname="John" use="MyWindow"> ...
</window>
The ZK engine would new a MyWindow component and call setFirstname("John") for you.
Asked: 2005-12-23 10:22:57 +0800
Seen: 946 times
Last updated: Dec 23 '05