I put a breakpoint on the detach method of my model and had a look at the Components whose detach methods were called higher up in the stack trace. It looks like the detach method on the model is being called for every component on the page. All the components link to the same underlying model via a CompoundPropertyModel, so I guess lots of calls to the detach method of the model should be expected?
Ian. On Fri, Jul 10, 2009 at 5:17 PM, Eelco Hillenius<eelco.hillen...@gmail.com> wrote: > It's fine if a model if detached multiple times in a request, but > hundreds for a single model sounds suspicious. Try to trace what > components fire the detach method and see if there's anything weird > with that. > > Eelco > > On Thu, Jul 9, 2009 at 11:21 PM, Ian MacLarty<ian.macla...@gmail.com> wrote: >> Hi, >> >> I noticed that my IDetachable model is being detached many times >> (hundreds) for each request. Is that something to worry about, or is >> it just because the detach method is called for each component that >> points to this model? >> >> Ian. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org