Vjeran Marcinko wrote:


OK, I understand that.
I wanted to ask following - When I have
add(new PageLink("homeLink", Home.class);
in some page, this link will on click instantiate Home page object and store it in my session, right?

And now, when I have this same piece of code (link to Home page) somewhere else again, and upon new click, new Home page object will get instantiated and placed in session *beside or over* previous Home instance ? If it is beside old one, that means that session will grow although by clicking on same link ?


Beside. The session grows, but only until the limit - that you can configure but defaults to ten instances - is set. The most recently accessed is allways put at front. Storing multiple instance sounds expensive, but it is not too bad actually. Especially not when you work with detachable models and try not too put too many large objects in your page and work with models where you can.

Eelco


-Vjeran


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to