我正在使用JSF 2.0
与tomahawk 2.0
和websphere v8.5
。当我从数据库填充值时,我收到t:dataTable
的错误,它会抛出异常java.io.NotSerializableException: org.apache.myfaces.component.html.ext.HtmlDataTable
我的支持bean implements serialization
,它是@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>