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?
> > >The default implementation of #sizeOf() uses Java Serialization to >calculate the size of an object, so it *must* be Serializable. >Please explain more about your concerns. > > >On Thu, Apr 4, 2013 at 11:46 PM, Frank Henningsen <frank@>wrote: > >> This behavior of "sizeOf()" would require detachable objects to be >> serializable, just to use the DebugPanel. I would like to avoid that. >> Would >> your suggestion (rendering the DebugPanel as last componen) be a good >> workaround? How can I guarantee that the DebugPanel is rendered as last >> component? E.g. over panels or inheritance? >> >> >> >It wouldn't be a problem if debug bar was the "last" component to be >> >rendered... I do agree information is misleading without detaching. >> > >> >On Tue, Nov 13, 2012 at 4:06 PM, Martin Grigorov >> <mgrigorov@>wrote: >> > >> >> Only if you use the debug bar. >> >> Currently the showed size is misleading IMO. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Devutils-sizeOf-tp4653827p4657909.html Sent from the Forum for Wicket Core developers mailing list archive at Nabble.com.
