[richfaces-issues] [JBoss JIRA] (RF-11446) a4j:jsFunction actionListener= method called before a4j:param assignTo setter
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Wed Aug 28 16:53:26 EDT 2013
[ https://issues.jboss.org/browse/RF-11446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-11446:
-------------------------------
Description:
In the following scenario when the jsTest() function is called then in
the server log I see the jsTestAction method executing before the
setJsTestParam method, so the parameter supplied by a4j:param is useless.
{code}
<a4j:jsFunction name="jsTest"
oncomplete="alert(event.data)"
actionListener="#{bean.jsTestAction}"
data="#{bean.jsTestData}">
<a4j:param name="p1" value="Fred" assignTo="#{bean.jsTestParam}"/>
</a4j:jsFunction>
{code}
The workaround is to use action= rather than actionListener, but this
is a pretty fundamental issue and ought to be fixed IMHO.
was:
In the following scenario when the jsTest() function is called then in
the server log I see the jsTestAction method executing before the
setJsTestParam method, so the parameter supplied by a4j:param is useless.
<a4j:jsFunction name="jsTest"
oncomplete="alert(event.data)"
actionListener="#{bean.jsTestAction}"
data="#{bean.jsTestData}">
<a4j:param name="p1" value="Fred" assignTo="#{bean.jsTestParam}"/>
</a4j:jsFunction>
The workaround is to use action= rather than actionListener, but this
is a pretty fundamental issue and ought to be fixed IMHO.
> a4j:jsFunction actionListener= method called before a4j:param assignTo setter
> -----------------------------------------------------------------------------
>
> Key: RF-11446
> URL: https://issues.jboss.org/browse/RF-11446
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.0.0.Final
> Environment: Mojarra 2.1.3
> Reporter: Brendan Healey
> Fix For: 5-Tracking
>
>
> In the following scenario when the jsTest() function is called then in
> the server log I see the jsTestAction method executing before the
> setJsTestParam method, so the parameter supplied by a4j:param is useless.
> {code}
> <a4j:jsFunction name="jsTest"
> oncomplete="alert(event.data)"
> actionListener="#{bean.jsTestAction}"
> data="#{bean.jsTestData}">
> <a4j:param name="p1" value="Fred" assignTo="#{bean.jsTestParam}"/>
> </a4j:jsFunction>
> {code}
> The workaround is to use action= rather than actionListener, but this
> is a pretty fundamental issue and ought to be fixed IMHO.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list