-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
See Here may be it will help you
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
Asked: 2013-01-11 12:59:42 +0800
Seen: 94 times
Last updated: Jan 22 '13