a4j:commandButton nested in a4j:ajax doesn't fire event handlers defined by EL
------------------------------------------------------------------------------
Key: RF-9351
URL:
https://jira.jboss.org/browse/RF-9351
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-a4j-core
Affects Versions: 4.0.0.Milestone2
Environment: RichFaces v.4.0.0.20100826-M2 SVN r.18993
Metamer: 4.0.0-SNAPSHOT r. 19188
http://localhost:8080/metamer/faces/components/a4jAjax/hCommandButtonWrap...
OpenJDK Runtime Environment 1.6.0_18-b18
Linux 2.6.31-22-generic
Mojarra 2.0.2-FCS
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.3 (KHTML, like Gecko)
Ubuntu/9.10 Chromium/6.0.472.55 Chrome/6.0.472.55 Safari/534.3
Reporter: Lukas Fryc
Works fine (no EL in event handler):
<a4j:ajax id="inputAjax" event="click"
oncomplete="alert('complete event')">
<h:commandButton id="commandButton" value="Submit" />
</a4j:ajax>
But when I change the oncomplete to EL expression:
oncomplete="#{'alert(\'1\')'}"
or any other expression generating such JavaScript, it isn't processed:
<a4j:ajax id="inputAjax" event="click"
oncomplete="#{'alert(\'complete event\')'}">
<h:commandButton id="commandButton" value="Submit" />
</a4j:ajax>
Also the reverse variant with a4j:ajax nested in a4j:commandButton works fine:
<h:commandButton id="commandButton" value="Submit">
<a4j:ajax id="inputAjax" event="click"
oncomplete="#{'alert(\'complete event\')'}" />
</h:commandButton>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira