This content has been marked as final.
Show 2 replies
-
1. Re: Data Model Problem
seto.kaibaseto.gmail.com Feb 25, 2008 4:40 PM (in response to seto.kaibaseto.gmail.com)SerializableDataModel dataModel = (SerializableDataModel) getValue("#{userDataModel}"); assertEquals(dataModel.getRowCount(), 2);
It will cause ClassCastException. But my userDataModel is a session bean extending SerializableDataModel. So I think the problem is the session bean could be only accessed as the Local interface. So it couldn't be cast as SerializableDataModel. When I changed the session bean into POJO. The problem doesn't exist. But to be uniform, all class should be EJB. So any solution to this?
-
2. Re: Data Model Problem
pmuir Feb 29, 2008 11:32 AM (in response to seto.kaibaseto.gmail.com)Not really, assuming there is no interface that represents your DataModel that the interface can extend. Just use a POJO. Or write your own DataBinder.