Action param value is assined AFTER actionListener is called.
-------------------------------------------------------------
Key: RF-5950
URL:
https://jira.jboss.org/jira/browse/RF-5950
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: 3.3.0.GA
java version "1.6.0_10"
apache-tomcat 6.0.18
Reporter: Sergey Halipov
Priority: Critical
XHTML:
<a4j:commandButton styleClass="button"
value="${messages['freesale.action.stop.sale']}"
actionListener="#{managementBean.update}"
action="#{salesTab.afterManage}">
<a4j:actionparam name="userId"
value="#{formTab.currentUserId}"
assignTo="#{managementBean.userId}" />
</a4j:commandButton>
Beans:
public void update(final ActionEvent event) {
System.out.println(">>> Action listener invoked.");
}
public String afterManage() {
System.out.println(">>> Action invoked.");
return null;
}
public void setUserId(Long userId) {
this.userId = userId;
System.out.println(">>> Set action param.");
}
3.3.0 GA output:
>> Action listener invoked.
>> Set action param.
>> Action invoked.
3.2.1 GA output:
>> Set action param.
>> Action listener invoked.
>> Action invoked.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira