문제

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