-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi to all.
I have a problem in capturing the onselect event in a listbox.
This is my zul page
<window title="Previsioni Carta" border="normal"
apply="it.tksoluzioni.carta.previsioni.ControllerPrevisioni" id="mainWin">
<box orient="horizontal">
<groupbox width="200px">
<caption label="Testata"/>
<listbox id="comboNewspaper"
mold="select" rows="1" model="@{mainWin$composer.newspapersListItems}">
<listitem self="@{each='item'}" value="@{item.value}" label="@{item.label}" />
</listbox>
</groupbox>
<groupbox width="300px">
<caption label="Simulazioni salvate"/>
<listbox id="comboSavedSimulations" mold="select" rows="1"
model="@{mainWin$composer.simulationsListItems,load-after='comboNewspaper.onSelect'}">
<listitem self="@{each='item'}" value="@{item.value}" label="@{item.label}" />
</listbox>
</groupbox>
</box>
<spreadsheet id="sheet" src="/WEB-INF/xls/empty.xls"
maxrows="60" maxcolumns="20" height="500px" width="100%">
</spreadsheet>
</window>
I need comboSavedSimulations is populated when I select an item in comboNewspaper.
I've a method onSelect$comboNewspaper in the Controller java class, but when I select an item in the comboNewspaper it is not invoked.
Any idea to solve this problem?
Please, let all know how you solve this.
Asked: 2011-02-28 11:22:10 +0800
Seen: 176 times
Last updated: Mar 02 '11