Thank you for your answer! I will see that information.
But what is your opinion about the error message "This application is out of date, please click the refresh button on your browser." . I would like to know why I'm receveing that message. Thank you! On 12 Jan, 15:14, "ganesh machkure" <gmachk...@gmail.com> wrote: > Hi, > > I would suggest you to go through Pro web 2.0 GWT Book. There author has > given possible solution for PersistentSet, PersistenMap and others > serialization issue with GWT using HibernateFilter and writing a different > ServerStreamSerializer class for that. > > -Ganesh > > > > On Mon, Jan 12, 2009 at 3:33 AM, huma <hugo.m.marcel...@gmail.com> wrote: > > > Hi people. > > > I've been developing an application with hibernate + spring + gwt, and > > i've come to a point where i need some help from you! > > > I know that hibernate generates PersistentBag for Lists ( Hibernate > > implementation of List), and I need to serialize this lists. But I > > know that GWT doesn't support PersistentBag. > > > So, and because i've read that we can implement a custom field > > serializer, i developed a PersistentBag_CustomFieldSerializer, like > > this: > > > package org.hibernate.collection; > > > import com.google.gwt.user.client.rpc.SerializationException; > > import com.google.gwt.user.client.rpc.SerializationStreamReader; > > import com.google.gwt.user.client.rpc.SerializationStreamWriter; > > > /** > > * Custom field serializer for {...@link > > org.hibernate.collection.PersistentBag}. > > */ > > public final class PersistentBag_CustomFieldSerializer { > > > public static void deserialize(SerializationStreamReader > > streamReader, PersistentBag instance) throws SerializationException { > > int size = streamReader.readInt(); > > for (int i = 0; i < size; ++i) { > > Object obj = streamReader.readObject(); > > instance.add(obj); > > } > > } > > > public static void serialize(SerializationStreamWriter > > streamWriter, PersistentBag instance) throws SerializationException { > > int size = instance.size(); > > streamWriter.writeInt(size); > > for (Object o : instance) { > > streamWriter.writeObject(o); > > } > > } > > > } > > > With this development, the server serializes the instance, with no > > error, but the client return's a message saying > > "This application is out of date, please click the refresh button on > > your browser." > > > Could anyone provide with possible hints to solve this error. > > > Best regards > > > Hugo Marcelino > > -- > Thanks N Regards > Ganesh Machkure --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---