Yes, that is a good idea. But the object I would need to make transient is passed into the panel as a parameter and then put into a detachable model. Any chance to make a method parameter transient? (Sounds like a contradiction in itself...)
>Hi, > > >On Fri, Apr 12, 2013 at 1:03 AM, Frank Henningsen <frank@>wrote: > >> In a Panel I use a detachable model: I implement an IModel that retrieves >> and >> detaches an object that is not serializable. That works fine. >> If I add the DebugPanel to the WebPage containing my Panel the DebugPanel >> calculates the page size using #sizeOf(). This method requires also my >> non-serializable object to be serializable and hence throws a >> notserializableexception. I do not want to make the object serializable >> just >> because of the DebugPanel. Is there an easy way to avoit that? >> >> >Can't you make this field 'transient' ? >This way it will be excluded in serialization process. > > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Devutils-sizeOf-tp4653827p4658051.html Sent from the Forum for Wicket Core developers mailing list archive at Nabble.com.
