javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2749

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.13
    • Fix Version/s: 2.1.25, 2.2.2
    • Component/s: ajax
    • Labels:
      None
    • Environment:

      Internet Explorer 7 or 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.

        Activity

        mirceatoma created issue -
        Manfred Riem made changes -
        Field Original Value New Value
        Fix Version/s 2.1.13 [ 15973 ]
        Manfred Riem made changes -
        Fix Version/s 2.1.13 [ 15973 ]
        Affects Version/s 2.1.13 [ 15973 ]
        rogerk made changes -
        Assignee rogerk [ rogerk ]
        rogerk made changes -
        Attachment changebundle-2749.txt [ 52246 ]
        rogerk made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1.25 [ 16561 ]
        Fix Version/s 2.2.2 [ 16560 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            rogerk
            Reporter:
            mirceatoma
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: