State of component is lost when combination of two forms, ajax request and full 
request is used
-----------------------------------------------------------------------------------------------

                 Key: MYFACES-2877
                 URL: https://issues.apache.org/jira/browse/MYFACES-2877
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 2.0.2-SNAPSHOT
         Environment: myfaces trunk or myfaces 2.0.1
            Reporter: Martin Kočí
            Priority: Critical


Following process restores wrong state :

<h:form id="form1">
            <h:commandButton value="Partial">
                <f:setPropertyActionListener target="#{component.disabled}" 
value="#{true}" />
                <f:ajax execute="@this" render="@this" />
            </h:commandButton>
</h:form>

<h:form id="form2">
            <h:commandButton value="Full" />
</h:form>

1) click button "Partial"
2) myfaces save component.disabled as true and re-render button as disabled
3) click button "Full"
4) myfaces render whole view but button has disabled="false"! I did some quick 
debugging and it seems that UIComponent.restoreState(FacesContext, Object) in 
second request obtains state array with disabled="false"

This happens with partial and server state saving and with myfaces 2.0.1 and 
trunk but not with current Mojarra. 


-- 
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