myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kočí (JIRA) <...@myfaces.apache.org>
Subject [jira] Resolved: (MYFACES-2877) State of component is lost when combination of two forms, ajax request and full request is used
Date Sun, 15 Aug 2010 12:15:17 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Kočí resolved MYFACES-2877.
----------------------------------

    Resolution: Duplicate

> 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
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> 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.


Mime
View raw message