You can't verify for any IModel if it has been detached, but what works
fine is e.g. checking all LoadableDetachableModel subclasses.
You have to rely on specific IModel implementations that have some kind
of API to check if they have been detached, just like
LoadableDetachableModel#isAttached()

On Wed, Jan 27, 2010 at 3:51 PM, pieter claassen <pie...@claassen.co.uk> wrote:
> I want to test the following:
> 1. Whether I have any private members stored on my pages that are not
> a primitive java type, or IModel
> 2. If they are IModels, that I do call onDetach() on them.
>
> Reflection helps me to answer the 1st question but the second one baffles
> me. Any tips on how to verify that I am calling onDetach() on all privately
> stored  IModels?
>
> I notice that Martijn has a presentation on the subject here, but there is
> just not enough code in there for me to get to solution myself.
> http://www.slideshare.net/dashorst/keep-your-wicket-application-in-production
>
> Thanks,
> Pieter
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to