myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-2742) javax.faces.behavior.event = undefined
Date Mon, 07 Jun 2010 11:38:42 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-2742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876210#action_12876210
] 

Werner Punz commented on MYFACES-2742:
--------------------------------------

Ok the issue is indeed a slight change in behavior for the exists, the exists now tries to
resolve subnamespaces if divided by .
this is not entirely correct, it should first check for a full key and then if it does not
exist try to resolve subnamespaces.
The old version of the function did not check for subnamespaces at all.
I added this functionality to make the function more useful regarding automated namespacing,
but I introduced this bug then.


> 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.


Mime
View raw message