[ 
https://issues.apache.org/jira/browse/MYFACES-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668067#action_12668067
 ] 

Simon Kitching commented on MYFACES-2141:
-----------------------------------------

Ah - I thought you had written a component that has inherited from 
HtmlInputDate.

Binding should *never* be used for objects that have anything other than 
request scope. There are a number of horrible consequences otherwise.

This is weird anyway - if you just have a bean that has a member of type 
HtmlInputDate, then I don't see why changing the SERIALIZE_STATE_IN_SESSION 
setting would do anything. It would make a difference if you had written a 
custom component that didn't implement StateHolder (my original 
misunderstanding). But serializing the tree shouldn't cause your backing beans 
to be serialized.

Are you perhaps also using tomahawk's t:saveState (which saves beans into the 
component tree)?

Anyway, this is almost certainly NOT a bug in myfaces - components are not 
required to implement java.io.Serializable. So please close this as INVALID 
then subscribe to the myfaces user list and post your question there.

> NotSerializable Component: HtmlInputDate
> ----------------------------------------
>
>                 Key: MYFACES-2141
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2141
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.2.5
>         Environment: tomcat 6.0.18, myfaces 1.2.5, tomahawk 1.1.8 for jsf1.2
>            Reporter: Andrej Konkow
>
> When changing the config in web.xml from
>       <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
>       <param-value>false</param-value>
> to
>       <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
>       <param-value>true</param-value>
> my pages don't get rendered properly any more. One exception is:
> [2009-01-26 20:14:25,968] [http-8080-2] [ERROR] 
> javax.faces.webapp._ErrorPageWriter - An exception occurred
> javax.faces.FacesException: java.io.NotSerializableException: 
> org.apache.myfaces.custom.date.HtmlInputDate
> Hint: 
> My java-class is inheriting from another class in which an attribute is 
> existing of type org.apache.myfaces.custom.date.HtmlInputDate

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