I am using JSF 2.0 with tomahawk 2.0 and websphere v8.5. I am getting an error with t:dataTable when ever i fill values from database it throws an exception java.io.NotSerializableException: org.apache.myfaces.component.html.ext.HtmlDataTable my backing beans implements serialization and it is @ViewScope

public class Templates implements Serializable
{
... 
}

faces-config.xml

<managed-bean>
        <managed-bean-name>templates </managed-bean-name>
        <managed-bean-class>cms.Templates</managed-bean-class>
        <managed-bean-scope>view</managed-bean-scope>
</managed-bean>
有帮助吗?

解决方案

I solved this problem ref : here, Since the class was serialized and HtmlDataTable is variable of class that should not be serialized so just i have to make this transient

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top