Just for my understanding.... why would you actually want to nest pages in other pages instead of just nesting panels? Pages are meant for representing requests, and as you normally wouldn't nest requests, you don't nest pages either. The valid use case I see is when you want to work with (I)Frames (though a lot of people feel that is old-skool now). You should question why you want to use the frames at the first place... If it is page composition you want to achieve, I'd strongly oppose the idea of using frames for this. I mean, you could, if you want to compose your page of several completely independent components. In that case each component would be a bookmarkable page that, once created, will have it's own life cycle. BUT... that is certainly not the Wicket way. It would be one of the tricks you could use to circumvent the problems you encounter when working with e.g. Struts. But with Wicket you don't need that kind of tricks, as Wicket will handle your component state and you have components that act independently out-of-the-box.

I took a quick look at your example as well. I might have missed something, but I see nothing there which you couldn't do with 'normal' Wicket. Maybe you could clear us up a bit at what you want to accomplish?

Regards,

Eelco


Ralf Ebert wrote:

Hi,

Maybe just a method like Page.onExpired() that you can put code in? Then when a Page is expired from a PageMap, you could do something (like this) in terms of cleanup.

This would make it possible to get around these kinds of page expiration problems. If you say Wicket will never support using Page objects in the component hierarchy this seems to be reasonable solution for it. But I would prefer a way to say: don't store/expire/ manage this Page at all, so it gets cleaned up with my Component. If Wicket maybe could support Page objects in the component hierarchy (=nested pages), Wicket could expire nested pages in dependency of the containing component (by not expiring these Page objects at all because they should get cleaned up automatically).

Ralf


-------------------------------------------------------
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