Composite component and bind in ZK 6

asked 2011-12-28 08:41:09 +0800

jaan gravatar image jaan
88 3

updated 2013-04-10 08:16:27 +0800

paowang gravatar image paowang
140 6


I get a composite component working like in this smalltalk: Define Composite Component using Java Annotation in ZK6.
My component has tree comboboxes (country, province and city).
The tree comboboxes works perfectly as expected. But now I want to use them in a master/detail scenario.
When a user selects a record in a list, a default city must be bind to the component

<geocombobox id="gc" defaultCity="@bind(school.city)" />

The binding does not work. It never updates the defaultCity after selecting a record. All other properties work as expected.

Do composite component not allow binding yet?
How can I solve this in a MVVM way?


delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2013-04-03 15:57:38 +0800

shumy gravatar image shumy
244 1

I what to do exactly what it's described. Does this works now with zk 6.5 ?

Note: I was unable to put a comment in this thread! So this is not an answer.

link publish delete flag offensive edit

answered 2013-04-03 19:46:05 +0800

guiye gravatar image guiye
28 1

updated 2013-04-03 19:46:27 +0800

hi, your composite have setDefaultCity and getDefaultCity methods?

did you try with: <textbox id="tx" value="@bind(school.city.name)"/> or something similar? (this is only for know that binding is working)

link publish delete flag offensive edit

answered 2013-04-12 10:30:30 +0800

mujawarv gravatar image mujawarv flag of India
45 4

updated 2013-04-12 10:32:49 +0800

hi ; you should define binding property in lang-addon.xml for defaultCity check with this example. link text in this example check lovID bindingg property in lang-addon.xml file .

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




Asked: 2011-12-28 08:41:09 +0800

Seen: 503 times

Last updated: Apr 12 '13

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