you could extend the serializerchecker to check for underached models. We did something similar checking for non-transient Entity objects. Iirc the code is either on my blog or Eelco's blog.
Martijn On 8/28/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > no, there is no easy way to "assert" that any model has been detached, > because they do not keep a flag. > > in 1.5 we will implement it so that all fields of a component that > implement idetachable are detached in the end of request via > reflection, so that should help somewhat. > > -igor > > On Thu, Aug 28, 2008 at 1:57 PM, Kaspar Fischer <[EMAIL PROTECTED]> > wrote: >> Is there an easy way to assert that all models are detached at the end of >> the >> request? >> >> It does not look so easy to check this as models do not have common base >> class >> where one could register them for a check... >> >> I often use an additional model in a component and store it as a member >> field; >> if I forgot to detach() this model in the onDetach() handler, I would have >> a >> "dangling" model. That caused me quite some trouble once and I want to >> avoid >> it in the future. >> >> Thanks, >> Kaspar >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
