javax.faces.behavior.event = undefined
--------------------------------------
Key: MYFACES-2742
URL: https://issues.apache.org/jira/browse/MYFACES-2742
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 2.0.1-SNAPSHOT
Environment: OS: Ubuntu 10.04
Browser: FireFox 3.6.3
Reporter: Radek Hodain
Request parameter "javax.faces.behavior.event" has undefined value if we submit
button by ajax. The server side code isn't able to recognise that the button is
submitted.
If we have xhtml like this:
<h:form prependId="false">
<h:commandButton id="buttonId">
<f:ajax />
</h:commandButton>
</h:form>
the commandButton is rendered to this html output
<input type="submit"
onclick="jsf.util.chain(document.getElementById('buttonId'),
event,'jsf.ajax.request(\'buttonId\',event,{\'javax.faces.behavior.event\':\'action\'})');
return false;"
name="buttonId"
id="buttonId">
When we submit the commandButton, javascript is performed and post parameters
contain "undefined" value for key "javax.faces.behavior.event". I think that
problem is in _Runtime.js in method exists. The method has two arguments root
which is an array and subNms. In our case root contains
execute : '@this', render : '@this', javax.faces.behavior.event : 'action' and
subNms is "javax.faces.behavior.event". Next part of code tries to split subNms
by dots. These parts are looked up in the root but the root contains whole key
"javax.faces.behavior.event". The method returns false and the request
parameter "javax.faces.behavior.event" stays undefined.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.