I thought so as well.  And I've never shared a model across multiple pages.


On 12/6/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:

From the gotchas page on our wiki:

The other thing to avoid is anonymous or nested instances of IModel.
Usually you share an instance of a model between two page instances.
If you create an anonymous or nested instance of IModel, then you
automatically get a 'this' reference to the class that surrounds it.
This will usually be the page, but can also be the form or a listview.
Anyway, because the reference is /final/, you will copy that reference
to the old page, with the model to the new page, thus duplicating the
component tree (it gets versioned etc.). This will eventually lead to
OutOfMemoryError.

Does this still hold? I thought we did something to remedy this?

Martijn
--
<a href="http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote</a>
for <a href="http://www.thebeststuffintheworld.com/stuff/wicket
">Wicket</a>
at the <a href="http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!</a>

Reply via email to