it sounds like iframes are like frames. if that's the case, eelco has described what you should do.

Ralf Ebert wrote:

Hi,

i'm not really following the iframes thing (maybe partly because i don't know what one is), but pages were certainly not designed to be nested. pages are containers and so you might be able to nest them, but i've never tried this and i don't think should be supported behavior. instead, why not make your own "page" class that inherits from WebMarkupContainer called something like MyPage or something and then you can nest these anyway you like. when you have one at the top level, you can put it inside a WebPage. otherwise you can do this iframe

iframes are used for showing pages as part of other pages. The contents of iframes are loaded by a separate request done by the web browser. This doesn't mean nesting in all cases, because an iframe can show things not related to the main page. But it can be used to build nested pages as well, where the embedded pages are managed by and nested in the containing page. This is what I want to achieve. It seems as this could work without any major troubles right now, if Page/WebPage could be given a custom id and thus could act like a WebComponent. It could add a src attribute to iframe-tags with matching wicket:id. This would get the browser loading the page from the right location without any need to bother about the urls involved to view the nested page. Unfortunately this can't be achieved easily by subclassing WebPage, because the id-constructor is gone with Page and doRender() is final for WebPage. Subclassing WebMarkupContainer doesn't feel right as well, because this means losing all of the Page/WebPage behavior.

I don't know if this is worth of being supported behavior. But iframes/frames are a common web technique. They are a bit despised, but there are a lot of reasonable use cases for them. So maybe it would be worth supporting them in a way which feels more like Wicket :)

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