Use this #{b.listModel.wrappedData}
as opposed to #{b.listModel} Dennis Byrne >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Friday, June 2, 2006 12:54 PM >To: users@myfaces.apache.org >Subject: java.io.NotSerializableException: javax.faces.model.ListDataModel > > >Hi Guys! > > >Is it not possible to serialize a ListDataModel. I need to write a >ListDataModel to saveState, but it doesn't work... >I get the following stack: >java.io.NotSerializableException: javax.faces.model.ListDataModel > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) > at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050) > at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050) > at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) > at java.util.ArrayList.writeObject(ArrayList.java:531) > at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) > at > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) > at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1224) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050) > at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) > at java.util.ArrayList.writeObject(ArrayList.java:531) >... > > >Thx for help! > >Regards, >Andy > > > >This message is not legally binding upon our company! >This communication is confidential and is intended solely for the >addressee(s). If you are not the intended recipient(s), his/her assistant, or >authorized recipient, any form of disclosure, reproduction, distribution or >any use of this communication or the information in it, is strictly prohibited >and may be unlawful. In this case, please notify the sender immediately and >destroy the e-mail. Electronic communication via the Internet by e-mail may be >manipulated and/or read by third parties, thus we exclude any liability >whatsoever for this e-mail. > >