[
https://issues.apache.org/jira/browse/MYFACES-3200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058093#comment-13058093
]
Leonardo Uribe commented on MYFACES-3200:
-----------------------------------------
Thanks for the example. It helped a lot to find out the problem
To reproduce it properly it is necessary to set this param:
<context-param>
<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
<param-value>-1</param-value>
</context-param>
There are two small bugs:
1. We don't enable PSS when faces-config version is 2.1, only when 2.0 is set.
We need to add that check too.
2. There are some wrappers for ValueExpression/MethodExpression that requires
to implement Externalizable, to be saved and restored correctly.
The good news are if you add this on your web.xml:
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>true</param-value>
</context-param>
PSS will be enabled and everything will work well. Thanks a lot for the
examples, they were very useful solving this issue.
> All values of self-defined composite-component attributes disappear
> unexpected.
> -------------------------------------------------------------------------------
>
> Key: MYFACES-3200
> URL: https://issues.apache.org/jira/browse/MYFACES-3200
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.1.2-SNAPSHOT
> Environment: Java 6, Tomcat 6, latest SNAPSHOT of myfaces-2.1.2
> (30.06.2011)
> Reporter: Rene O
> Attachments: jsf2testcase.war, jsf2testcasewithoutrichfaces.war
>
>
> A testcase to reproduce this issue is attached.
> Steps to reproduce this issue:
> 1. http://localhost:8080/jsf2testcase/components.jsf
> 2. you can see the value of one of the attributes of the self-defined
> composite component at 'Panel1'
> 2. click 'Panel2'
> 3. click 'Panel1'
> 4. value at 'Panel1' is not shown anymore. (if you refresh the page with 'F5'
> after that, the value is there again)
> Note:
> This behaviour occurs with the latest myfaces-2.1.2-SNAPSHOT (30.06.2011)
> With an older version of myfaces-2.1.2-SNAPSHOT (22.06.2011) and with
> myfaces-2.1.1 everything works as expected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira