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

Update of 'javax.faces.ViewState' input elements fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.7, 2.1.8
    • 2.0.15, 2.1.9
    • General
    • None
    • Internet Explorer 7

    Description

      The issue resides in the JS code that is responsible for updating javax.faces.ViewState key in the hidden input elements.
      In IE7 during the second update the lookup for the 'javax.faces.ViewState' named input element fails. The element[name] syntax is used for the lookup which is known to fail for elements with complex names (such as 'javax.faces.ViewState').
      When the lookup fails to find the input element a second input element is created which will contain the new javax.faces.ViewState value. The next submit will send two 'javax.faces.ViewState' parameters but only the first one (the oldest) is read by the server state manager . This old key is not known to the server anymore and this causes a ViewExpired exception to be thrown on the server.

      Attachments

        1. MYFACES-3574.patch
          1 kB
          Mircea Toma

        Activity

          People

            lu4242 Leonardo Uribe
            mirceatoma Mircea Toma
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: