0

zul component's attribute

asked 2005-12-23 10:22:57 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2005-12-23 13:17:08 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.


link publish delete flag offensive edit

answered 2005-12-23 13:26:54 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2005-12-23 10:22:57 +0800

Seen: 946 times

Last updated: Dec 23 '05

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More