[
https://issues.apache.org/jira/browse/MYFACES-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667814#action_12667814
]
Simon Kitching commented on MYFACES-2141:
-----------------------------------------
JSF has its own custom serialization approach : the
"javax.faces.component.StateHolder" interface. Components implement this
interface instead of implementing java.io.Serializable.
Your component should also implement the StateHolder interface; your exception
should then go away.
> 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.