it's been a few weeks since i really got my head inside the code, but i
don't think there's a supported way of doing this yet...
Igor Vaynberg wrote:
Jonathan,
There might be situations where you might want to clone a page and keep it
until the user needs it again. I am building a breadcrumbs system and this
is how I have achieved the functionality for my proof-of-concept. However,
when a user navigates to a cloned page I need a way to reassociate the
cloned page with the pagemap before the url for it is built, so that the url
has a new page id. I achived this before by calling
clonedPage.getPageMap().add(clonedPage). This way the page would be
reassociated with its old pagemap and get a new page id. Is there a better
way to do this without tinkering with pagemaps?
Thanks,
Igor
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Locke
Sent: Thursday, June 30, 2005 9:13 AM
To: [email protected]
Subject: Re: [Wicket-user] Specify pagemap for page class
i have reduced the visibility of PageMap as much as i can on HEAD so that
people won't try to use it directly.
it was not intended for this kind of use and bad things are likely to happen
if you use it this way (i think especially in replicated clusters).
so in your case the extra editpages are new browser sessions or something?
seems like we need a new feature that allows a page to be "pinned" into its
pagemap so that it is never discarded.
this seems like a good overall feature as certain pages might be considered
"precious" as your editpage is...
the changes to create this feature should be pretty simple (an overridable
method in Page like isExpirable() that returns true by default in
combination with a loop in PageMap ought to do the trick). maybe you can
write this up as a bug and the team can get to it soon?
Matej Knopp wrote:
What I wanted to do is having two pagemaps. The default one, for most
of pages and a second one, just for pages of a specific class (or
classes) - e.g. EditPage class. So that the lifecycle of EditPage
instances wouldn't be affected by the rest of application.
I don't want them to expire, if they are left on the background
meanwhile user works with the rest of application in different window
(not popup nor frame), because they will contain unsubmitted text,
which the user would lose (It's for a CMS).
I'm not using popup windows and frames. I just want certain pages to
persist, no matter what the user does with the rest of application.
Of course I'm aware that if he open 11 different EditPages (that would
be in their own pagemap), that the 1st one would expire, but that's
not a problem.
Jonathan Locke wrote:
yes, you should not call setPageMap. design of setPageMap is
currently that you set the page map once when you create a frame or
popup and then everything in that window passes the pageMap query
parameter along, causing new pages to be created in the same page
map. thus the frame/popup has its own set of pages that expire
relative to use in that window. if this usage doesn't work for you,
can you explain why?
Matej Knopp wrote:
Hi
Is there any way to specify the pagemap name for certain page
class/instance? I know there's a pageMap query parameter for
bookmarkable page but that does not seem sufficient for me.
I'd like to know if I can somehow specify, that for example all
pages of class EditPage would be placed in "edit" pagemap, white all
other pages would be placed in default pagemap.
The EditPage instances will not be created using bookmarkable links
so the pageMap attribute can't be used. The setPageMap function of
page is marked as internal (so I'm not supposed to use it).
Thank you.
-Matej Knopp
-------------------------------------------------------
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
-------------------------------------------------------
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
-------------------------------------------------------
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