[ 
http://issues.apache.org/jira/browse/ADFFACES-209?page=comments#action_12438948 
] 
            
Arjuna Wijeyekoon commented on ADFFACES-209:
--------------------------------------------

unfortunately, calling restoreState on the sun RI UIViewRoot does not clear out 
the event list.
This is true for both 1.1_01 and 1.1_02.

specifically, if an error happens during processUpdateModel the event list is 
not cleared.
However, if the error happens during decode or validate, the event list is 
cleared.

So I cannot cache the UIViewRoot.  I will have to create a new one and copy 
over the state from the old one,
using save/restoreState().

> stateManagerImpl does not preserve state for UIViewRoot Correctly.
> ------------------------------------------------------------------
>
>                 Key: ADFFACES-209
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-209
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>            Reporter: Arjuna Wijeyekoon
>
> Currently, Trinidad's StateManagerImpl recreates the UIViewRoot component on 
> every request.
> This causes the following bugs:
> 1. not all state is copied from the old UIViewRoot to the new UIViewRoot, 
> specifically:
>  unique id counters and faces listeners, etc ...
> 2. If  the class for UIViewRoot component is redefined in faces-config.xml, 
> this will break after first the first restoreState call.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to