This content has been marked as final.
Show 4 replies
-
1. Re: How could I execute an action before the action of the a4j:commandLink
akaine Apr 10, 2010 2:53 AM (in response to babazs)<a4j:commandLink value="someName" action="#{bean.lastAction}" actionListener="#{bean.firstAction}" />
public void lastAction(){ System.out.println("lastAction"); } public void firstAction(ActionEvent evt){ System.out.println("firstAction"); }
-
2. Re: How could I execute an action before the action of the a4j:commandLink
babazs Apr 10, 2010 2:57 AM (in response to akaine)thanks!
-
3. Re: How could I execute an action before the action of the a4j:commandLink
babazs Apr 10, 2010 4:04 AM (in response to akaine)Is it solvable to :
1. execute firstAction
2. reRender something1
3. execute lastAction
4. reRender something2 ?
thanks.
-
4. Re: How could I execute an action before the action of the a4j:commandLink
akaine Apr 10, 2010 4:26 AM (in response to babazs)Since this would happen in one click, why don't you wanna do it in 1 function and 1 rerender? All the intermediate operations can be done in the backing bean.
Anyways, try adding a4j:support for commandLink's onclick event and set rerender and action there as well. If it works a4j:support will be executed first.