You can control the maximum number of pages in each pagemap in the
session (before they start expiring in LRU order) with
ApplicationSettings.setMaxPages(). The default is probably 10.
I don't know that there is a way to do something right now when a Page
is expired. That might be nice for this frames problem because you
could remove any extra page maps there. 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.
Ralf Ebert wrote:
Hi,
it sounds like iframes are like frames. if that's the case, eelco
has described what you should do.
yes, iframes are almost like frames, except there is a normal page
around them. Eelco suggested being careful about the expiration of
pages and how to get around this using PageMaps. Got that. But this
doesn't help a lot with using iframes in a component oriented way.
Maybe it's a bit hard to imagine why I want to do this. Please have a
look at the static html mock-up (works in firefox/safari with js only):
http://www.dreivier.net/columns/
(I know this is a mean example, but I thought I should choose
something tricky for trying out a new web component framework :)
If it is a "link" to another page, why not just use a wicket Link
component?
I tried that and it works very well. I just took the Link/PageLink
class and created a Frame class using ILinkListener for handling the
iframe request. I added a third constructor for passing a Page object
instead of a Class so I get the same Page when called from the same
Page instance every time. I don't know if this gets me into trouble
later on (because it's somehow like embedding a WebPage), but for now
this seems to be fine.
The only thing bugging me is the page expiration when having more
than 10 pages. I know, PageMaps. But is there maybe another way to
control the page expiration? In my case I would like to have these
Pages expiring only and exactly when the containing page expires - a
behavior which can be achieved hardly with PageMaps...
Regards,
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