0

ZK studio help

asked 2009-04-07 09:35:41 +0800

ashish12 gravatar image ashish12
27 2

Hi,

I am very new to java & zk studio. I have a java program which returns me a collection or an array. I want to use zk studio to display my array contents. I want to add the array contents into a combo box in zkoss. Can someone help me how to go about this.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-04-07 12:54:53 +0800

flyworld gravatar image flyworld
155 3

take a look this demo,
it contains an array and being put into a combobox
http://www.zkoss.org/zkdemo/userguide/#f5

link publish delete flag offensive edit

answered 2009-04-07 13:32:26 +0800

ashish12 gravatar image ashish12
27 2

I was able to take care of that... I am stuck at another point... I have 3 arraylists & I want to add them into a list each arraylist will go in one column. I did this but is not working... Can someone help

<listbox id="box" multiple="true" rows="25" width="90%">
<listhead>
<listheader label="Name" width="50%" />
<listheader label="Definition" width="20%" />
<listheader label="Date" width="30%" />
</listhead>
<listitem label="${each}" forEach="${lstNames}" />
<listitem label="${each}" forEach="${lstDef}" />
<listitem label="${each}" forEach="${lstDate}" />
</listbox>

link publish delete flag offensive edit

answered 2009-04-08 12:21:26 +0800

ashish12 gravatar image ashish12
27 2

I did this using beans... I am getting error below when I am populating the listbox with a date.
SEVERE: Failed to assign [label=${each.dateModify}] to <Listcell z_cp_d>
Unable to find a value for "dateModify" in object of class "org.zkoss.zkdemo.rochade.TestBean" using operator "."

Why this error? is there some special processing to be done for date?

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: 2009-04-07 09:35:41 +0800

Seen: 130 times

Last updated: Apr 08 '09

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