0

choise specific combo item in combobox

asked 2013-01-11 12:59:42 +0800

VincenzoDC gravatar image VincenzoDC
30

updated 2013-01-22 05:36:16 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

hi all i have a question for comobox i use a combo with n comboitem

<combobox width="175px"  id="comboSegmentoRegolamentare" model="@{Controller$composer.list_to_read}" readonly="true" >
        <comboitem self="@{each='item'}" label="@{item.label}" value="@{item.value}"  />
</combobox>

in compose page i need to select comboitem but i don't know position i know a value of comboitem

i try to insert attribute in combobox onCreate='self.setSelectedIndex...;' but i have an error index out of bounds.

(org.zkoss.zk.ui.UiException: Out of bound: 0 while size=0)

i have found more info in this thread (http://www.zkoss.org/forum/listComment/10464) but i have two question when does comboitems load in page? why after oncreate don't app see element?

i use ZK 3.6

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-01-16 05:21:41 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

See Here may be it will help you

link publish delete flag offensive edit
0

answered 2013-01-21 09:40:46 +0800

VincenzoDC gravatar image VincenzoDC
30

thanks a lot. i solved my problem.
i add an event and call it at the end of DoAfeterCompose method.
for one time i had add a onCreate event on combobox, but i note that when comboitem is created don't have list of comboitem.
however in the end of doAfterCompose all componet are created and ready to work.
bye

link publish delete flag offensive edit
Your answer
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: 2013-01-11 12:59:42 +0800

Seen: 94 times

Last updated: Jan 22 '13

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