Damn copy paste error. I meant in JSF 1.1 of course:
<t:commandButton id="acmd1" action="#{MyController.doIt}">
-----Original Message-----
From: Michael Heinen [mailto:[email protected]]
Sent: Mittwoch, 16. Dezember 2009 11:51
To: MyFaces Discussion
Subject: updateActionListener in JSF 1.2 - exec before outer action possible?
Hi,
What's the recommended migration for tomahawk updateActionListener from JSF 1.1
to 1.2? I did not find any helpful hints so far.
In JSF 1.1 the updateActionListener was called before the Action/ActionListener
of the outer command.
In JSF 1.2 the order has changed apparently. The component actionListener is
invoked and then nested actionListeners.
f:setPropertyActionListener can be used but it is called after the outer
command.
And the outer command is called twice in my case.
Is f:actionListener an alternative for Actions (not ActionListeners)? I didn't
get this working.
JSF 1.1:
<t:commandButton id="acmd1" actionListener="#{MyController.doIt}"
<t:updateActionListener property="#{MyController.stateId}"
value="bean.value"/>
</tcommandButton>
Flow:
MyController.setStateId()
MyController.doIt()
JSF 1.2
<t:commandLink id="acmd1" action="#{MyController.doIt}">
<f:setPropertyActionListener target="#{MyController.stateId}"
value="#{bean.value}"/>
</t:commandLink>
Flow:
MyController.doIt()
MyController.setStateId()
MyController.doIt()
How did other people solve this?
Michael