This content has been marked as final.
Show 2 replies
-
1. Re: valueChangeListener reacting only on second try?
gaborj Apr 19, 2010 11:07 PM (in response to acgrama)Hi,
I think a valueChangeListener is not what you want to use here. Read more about it e.g. here...
But you already have an
<a4j:support event="onchange" reRender="items"/>
try to update your model by this event like:
<a:support event="onchange" action="#{yourBean.yourMethod()}" reRender="items" ajaxSingle="true" eventsQueue="yourQ" requestDelay="100"/>
-
2. Re: valueChangeListener reacting only on second try?
acgrama Apr 20, 2010 10:14 AM (in response to acgrama)Thanks for the suggestion! I will try it out.
In the meantime I managed to make it do what I need by using the event
onviewactivated
. (With eventonchange
, it seemed like the event's newValue was constantly one step behind: I had two choices in my first drop down list, when I chose1
, newValue was still 2, then I chose2
and newValue would become 1, then choosing1
again made newValue become 2 and so on...)