pp refer to page parameters that I get in the pop up....
Here is the context :
The bookmarkable page link will be open in the window that open the pop up.
This code is in the pop-up.
The problem is when I have done that :
bpl.setPageMap (PageMap.forName (parentPageMap));
It will create a new page map "wicket:default". This will lead the main
window to reload correctly with the correct page class, but it will be
linked with the new page map named : "wicket:default".
So, the correct way of doing this, it is that when the pagemap name is null,
fetch the pagemap using null, but window.name value will be wicket:default,
so, we have to set the target value to something else than the pagemap name
which is null.
It is hard to explain the why of that, but that is the problem I got. Sorry
for being unclear.
Marc
On 1/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
On 1/24/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
>
> Ok, I got news about the first page expired problem. Problems with page
> map that I said before and in the JIRA issue are still there, but the page
> expire is gone. Here is why :
> In the pop up, I created a bookmarkable page link like this :
>
> String parentPageMap = "wicket:default";
> if(pp !=
> null)
> {
> parentPageMap = (String)pp.get ("parent_page_map"
> );
> }
> Class
> pageClass = SomePage.class;
> BookmarkablePageLink bpl = new BookmarkablePageLink("link", pageClass);
> bpl.setPageMap (PageMap.forName (parentPageMap));
>
> bpl.add(new
> SimpleAttributeModifier("target", parentPageMap));
> add(bpl);
>
> The problem with this, it is that it create a new page map. So, because
> there is a new pagemap, the session expire when I try to access things from
> the session.
i am lost with that last sentence, what do you mean with this? When does
the session expire?
and what is this code:
if(pp !=
null)
{
parentPageMap = (
String)pp.get ("parent_page_map");
}
johan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user