Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3699

Attribute updates targeting the event handlers fail to work when 'this' or 'return' keywords are used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.10
    • 2.0.17, 2.1.11
    • None
    • None
    • Internet Explorer 7/8

    Description

      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.

      Attachments

        1. MYFACES-3699.patch
          1 kB
          Mircea Toma

        Activity

          People

            Unassigned Unassigned
            mirceatoma Mircea Toma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: