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] [Updated] (MYFACES-3699) Attribute updates targeting the event handlers fail to work when 'this' or 'return' keywords are used
Date Fri, 01 Mar 2013 13:05:12 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Werner Punz updated MYFACES-3699:
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.11
                   2.0.17
           Status: Resolved  (was: Patch Available)

Patch applied, a big thank you for the patch
                
> Attribute updates targeting the event handlers fail to work when 'this' or 'return' keywords
are used
> -----------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3699
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3699
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.10
>         Environment: Internet Explorer 7/8
>            Reporter: Mircea Toma
>             Fix For: 2.0.17, 2.1.11
>
>         Attachments: MYFACES-3699.patch
>
>
> When on* attributes are updated in IE with event handler code that contains the 'this'
variable the browser will fail to reference the targeted element (as expected). When window.execScript
function is used to evaluate scripts the 'this' variable references the window object.
> Also when 'return' statement is used in the event handler code IE will throw the following
error:
> Line: 1
> Char: 217
> Error: 'return' statement outside of function
> Code: 0
> Using 'return' statements in a event handler is a valid way of enabling or disabling
the execution of default action in the browser.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message