0

onselect event problem

asked 2011-02-28 11:22:10 +0800

Gunny gravatar image Gunny
27

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?

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-03-01 03:07:47 +0800

Gunny gravatar image Gunny
27

Anyone can help me please?

link publish delete flag offensive edit

answered 2011-03-01 09:16:59 +0800

Gunny gravatar image Gunny
27

Ok.... resolved

it can be closed

link publish delete flag offensive edit

answered 2011-03-01 16:52:05 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Please, let all know how you solve this.

link publish delete flag offensive edit

answered 2011-03-02 02:40:43 +0800

Gunny gravatar image Gunny
27

I had created the method onSelect$comboNewspaper in the Controller private instead of public... :(

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: 2011-02-28 11:22:10 +0800

Seen: 176 times

Last updated: Mar 02 '11

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