You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (JIRA)" <de...@myfaces.apache.org> on 2010/06/16 15:11:23 UTC
[jira] Commented: (MYFACES-2755) this.id is undefined in
jsf.ajax.request (regression from 2.0.0)
[ https://issues.apache.org/jira/browse/MYFACES-2755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879332#action_12879332 ]
Werner Punz commented on MYFACES-2755:
--------------------------------------
Ok this is serious, I am getting on it right away.
I hope we can get the fix in in 2.0.1
> this.id is undefined in jsf.ajax.request (regression from 2.0.0)
> ----------------------------------------------------------------
>
> Key: MYFACES-2755
> URL: https://issues.apache.org/jira/browse/MYFACES-2755
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.1
> Reporter: Michael Concini
>
> With the new javascript, we now wrapper calls into jsf.ajax.request with a function call. So for example this:
> <h:commandButton id="incrementButton" value="Increment"
> onclick="jsf.ajax.request(this, event, { execute: this.id, render: 'counter' }); return false;"
> actionListener="#{counter.increment}" />
> would be rendered as this:
> <input id="incrementButton" name="incrementButton" type="submit" value="Increment"
> onclick="var cf = function(){jsf.ajax.request(this, event, { execute: this.id, render: 'counter' }); return false;};var oamSF = function(){};return (cf()==false)? false : oamSF();" />
> The problem is that we've broken the reference to this.id as it is undefined at the function's scope. This works fine in both the 2.0.0 release as well as Mojarra.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.