[
https://issues.apache.org/jira/browse/MYFACES-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Werner Punz resolved MYFACES-2742.
----------------------------------
Fix Version/s: 2.0.1-SNAPSHOT
Resolution: Fixed
Ok it is fixed, the event handler now is passed down properly, sorry for
introducing this bug, I tried to eliminate all bugs upfront, since the entire
refactoring process was more or less a rewrite of 50% of the codebase, but I
missed this sidebhavior which triggered the bug. I hope it was the only one I
introduced in the codebase.
Nevertheless, the refactoring was needed to get the codebase into a cleaner
state for future extensions.
Again sorry for this.
> 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
> Fix For: 2.0.1-SNAPSHOT
>
>
> 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.