-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi!
It would be very useful to know which Components support @databinding and the "model" tag and which dont (and why not?)
like:
listbox ok, combobox ok, textbox ok, tabbox ko(?), radiogroup ko, ...
(spezial: toolbar and tabbox because I have to dynamical add/remove tabs and then you have to write all those event handlers by yourself...)
just a christmas which ;-)
regards
Florian
Open zkplus.jar with (7zip, Unzip..) and view the lang-addon.xml. There you can see default-value for bindings.
In fact, you can bind to the most GUI-attributes, i.e. like this
<button id="test" label="Add" visible="@{view}"/>
Here is a more tricky example (from my personCRUD):
<button label="Add" visible="@{controller.PersonBeanV2.id, converter='org.zkforge.converters.NotNull0Check'}/> <button label="Update" visible="@{controller.PersonBeanV2.id, converter='org.zkforge.converters.Null0Check'}/>
The converter NotNull0Check return true when the value (id) is null or zero.
The converter Null0Check return true when the value (id) is not null or zero.
The Add button is only displayed for new Entries,(id=0), the Update only for existing Entries (id>0).
/Robert
Asked: 2008-12-02 16:18:29 +0800
Seen: 1,212 times
Last updated: Dec 02 '08