Hi,
On Wed, Apr 17, 2013 at 1:11 AM, Frank Henningsen <[email protected]>wrote: > 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. > If you use LoadableDetachableModel(T object) then the passed 'object' is assigned to a transient member field. You can write your own Model that does the same if you like. > 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. > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
