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

Handling mutiple h:form and AJAX is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.1-SNAPSHOT
    • 2.0.1
    • JSR-314
    • None
    • myfaces current trunk (19.6.2010)

    Description

      Is seems that handling of http://www.mail-archive.com/jsr-314-open@jcp.org/msg00043.html (https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=790) is broken in current trunk. This example:

      <h:form id="form1">
      </h:form>

      <h:form id="form2">
      <h:commandButton value="AJAX Submit">
      <f:ajax render="@all" />
      <f:setPropertyActionListener value="#

      {true}

      " target="#

      {viewScope.test}" />
      </h:commandButton>
      </h:form>

      <h:outputText value="#{viewScope.test}

      " />

      should produce output "true" with all clicks but it works only at first. Firebug shows that all javax.faces.ViewState elements are removed after first response. If I comment out first h:form it works as expected.

      Because this example works fine with 2.0.0 I think it a regression.

      Attachments

        1. MYFACES-2762.patch
          9 kB
          Leonardo Uribe

        Activity

          People

            Unassigned Unassigned
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: