javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1695

JSF Ajax: ViewState input field gets recreated evry time in IE7

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ajax
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,695
    • Status Whiteboard:
      Hide

      size_medium importance_medium

      Show
      size_medium importance_medium
    • Tags:

      Description

      To reproduce, add the ajax action to h:commandButton with render="@all":

      <f:ajax event="action" render="@all" />

      Run the test in IE7. Using IE Script debugger, put a breakpoint in doUpdate() on
      the line setting the name of the hidden input field:
      field.name = "javax.faces.ViewState";

      Notice that the field gets created every time. This happens due to an IE bug. If
      the "name" attribute is set programmatically on the newly created input field,
      the field is not reported in the form.elements collection and is not found by
      document.getElementsById(). The workaround is to set both the "name" and the
      "id" attributes.

        Activity

        Hide
        Ed Burns added a comment -
            • Issue 1697 has been marked as a duplicate of this issue. ***
        Show
        Ed Burns added a comment - Issue 1697 has been marked as a duplicate of this issue. ***
        Hide
        Ed Burns added a comment -

        Reassign to edburns

        Show
        Ed Burns added a comment - Reassign to edburns
        Hide
        rogerk added a comment -

        triage

        Show
        rogerk added a comment - triage
        Hide
        Ed Burns added a comment -

        2.2

        Show
        Ed Burns added a comment - 2.2
        Hide
        Manfred Riem added a comment -

        Can you please attach an example application (with sources) that demonstrates the problem? Can you please identify the version affected?

        Show
        Manfred Riem added a comment - Can you please attach an example application (with sources) that demonstrates the problem? Can you please identify the version affected?
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Closing because of inactivity

        Show
        Manfred Riem added a comment - Closing because of inactivity

          People

          • Assignee:
            Unassigned
            Reporter:
            mst_70
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: