Please file a bug on this one, I tried to make sure with extensive unit
testing that I did not break anything in my refactoring but, it seems I did.
File a bugreport on this one and I will get onto it asap.
Cheers
Werner
Am 01.06.10 13:05, schrieb Radek Hodain:
Hi,
Apache MyFaces JSF-2.0 Core Impl of version 2.0.0 works correctly. The
issue appears after rewrite javascript in the 2.0.1-SNAPSHOT version.
Should I create a bug to JIRA?
Best regards
Radek Hodain
On 05/31/2010 05:22 PM, Radek Hodain wrote:
Hi,
we are using Apache MyFaces JSF-2.0 Core Impl of version
2.0.1-SNAPSHOT. We have problem to decode submit in server side code,
because the parameter "javax.faces.behavior.event" has still undefined
value.
We think, there is an issue when js process ajax request.
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, js is performed and post parameters
contain undefined value for key javax.faces.behavior.event. We 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.