| Author |
a4j:support - Can I have multiple actions for the same event?
|
michelle wu
Greenhorn
Joined: Nov 06, 2007
Posts: 5
|
|
Hi guys,
Is it possible to add two actions to a <h:selectOneMenu> on the event of "onchange". Are following ways eligible to use?
<a:support id="aaa" event="onchange" action='#{methodA(a); methodB}' ajaxSingle='false'/>
or
<a:support id="aaa" event="onchange" action='#{methodA(a)}' ajaxSingle='false'/>
<a:support id="aaa" event="onchange" action='#{methodB}' ajaxSingle='false'/>
Thanks.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14568
|
|
The first one is not proper JSF action invocation and if it works at all, it would only be because EL made it work, not JSF.
The second one will probably work. Try it. If it doesn't then you either are going to need to code an additional action method somewhere that calls the 2 methods or you'd have to use a set of ActionListeners. But let's hope you don't need listeners, since they would require recoding your backing-bean methods.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: a4j:support - Can I have multiple actions for the same event?
|
|
|