[
https://issues.apache.org/jira/browse/MYFACES-2755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879343#action_12879343
]
Michael Concini commented on MYFACES-2755:
------------------------------------------
just committed the change using apply(this, []) to both the button and link
renderer classes. I tested it out after doing a clean build and it fixes the
scope issues.
Thanks Werner for looking at this so quickly and providing the advice on how to
fix it.
> 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.