Hi Jonny,

yes, it works exactly like you described it.

Sven

jwray wrote:
Hi Sven,

Thanks for your reply. Since I sent the original question I ended up doing
what you suggested and now I'm wondering why I ever used the id projection
approach. Habit I guess, formed with previous frameworks.
Just to make sure I've got this right, as long as I use a DetachableModel as
a return from model method, the domain objects aren't stored in the session
even if they are returned from the iterator. Am I correct in this?

Jonny


svenmeier wrote:
Hi John,

I believe the consensus on this list is that you should change your approach:

Why don't you just iterate over your domain objects in the first place? They will be loaded anyway to be displayed on your component. So your approach triggers 1+n selects instead of 1 select for all required objects at once.

Sven




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

Reply via email to