Hi Radek, yes, it definitely sounds like a bug. Please create an issue. For evaluation purposes, I think you can assign it to Werner Punz, who has done the javascript rewrite.
best regards, Martin On 6/1/10, Radek Hodain <hoda...@aura.cz> wrote: > 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. >> >> >> >> >> >> > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces