Am Mittwoch, den 26.08.2009, 21:29 +0200 schrieb Bas Gooren:
> Hi all,
> 
> My problem is as follows: I use LoadableDetachableModels throughout my 
> application, and have made sure I never use a model without it being attached 
> to a component to prevent models which never get their detach() method called.
> Nonetheless, after hitting two fairly simple pages which list some database 
> data in my application, I get a 100kb session which is filled with literal 
> strings from model objects.
> 
> I've fired up my (Eclipse) debugger and have stepped through all models on 
> one of the pages after setting a breakpoint on the pages onDetach() method. I 
> see all LoadableDetachableModels are detached, so I have no idea what's 
> causing this.
> 
> What would be a good strategy for finding the source of this problem?

IMHO this could be a solution to your problem:

http://www.wicket-praxis.de/blog/2009/01/03/modell-referenzen/

CascadingLoadableDetachableModel will detach it's child so that for any
used model detach will be called.

mm:)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to