Handling mutiple h:form and AJAX is broken
------------------------------------------

                 Key: MYFACES-2762
                 URL: https://issues.apache.org/jira/browse/MYFACES-2762
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.0.1-SNAPSHOT
         Environment: myfaces current trunk (19.6.2010)
            Reporter: Martin Koci
            Priority: Critical


Is seems that handling of 
http://www.mail-archive.com/[email protected]/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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to