Hmm I seem to be lost too. We "JUST" used the page map to give us previous
pages by having a back button, that worked fine.
But if we clear the pagemap and request the previous page that will give and
page expired exception.
Hmm In order to track expired sessions you could attach a logger and catch all
expired exceptions at least that will give you an idea of if its only a single
page that causes the problem.
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle
Sent: 15. januar 2007 22:05
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Tracking session expire exception
Let's make a demo of what I presently don't understand :
In a quickstart, have a page that only do this :
System.out.println ("index Page map is :" + getPageMap
().getName ());
add(new Link("page2")
{
public void onClick ()
{
setResponsePage(Page2.class);
}
});
In the page 2, the only thing you do is :
System.out.println ("Page 2 map is :" + getPageMap ().getName ());
Now, the output look like this :
I access the index page first time :
index Page map is :null
I access the index page from another tab :
index Page map is :null
index Page map is :wicket-0
I access Page2 from the whatever link (I mean, the two tabs have the same
result :
Page 2 map is :null
So, now, I confused, what is this PageMap suppose to say in this case? Two
window, same Pagemap and than, same window.name (Always this same problem about
window name in the pop up!)...
Sorry, I feel like being an asshole always asking for the same thing. If I'm
not getting it with this, I just tell my boss to put this feature up is ass and
I'll do a search result ala google! :)
Marc
On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote:
I don't understand how this can help. Can you give me an example?
And BTW, is there somewhere documentation on PageMap. I'm not sure I really
grasp all the concept aroud this. I tough that page map made sure that in one
instance in your application server, you have only one name/session pair. In
my application, if I create new firefox tabs, it will have the same page map
name (which is "null"). Also, I though that the window.name value was always
synced with the pagemap name.
In fact, more I advance, less I'm sure to know.... :)
Marc
On 1/15/07, Nick Heudecker <[EMAIL PROTECTED]> wrote:
You can subclass HttpSessionStore and provide your own implementation of
onUnbind(String). Then, use your new HttpSessionStore from your application
subclass:
public ISessionStore newSessionStore() {
return new MySessionStore();
}
On 1/15/07, Marc-Andre Houle < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:
I think I found something.
first of all : Pop-up communication with pagemap is a nightmare. I think the
problem was that it loaded using a specific pagemap in the correct window but
when trying to use ajaxLink, it didn't use the correct page map and then failed
to find the associated session. (Not sure at all...)
The solution I found presently to avoid the session expire is to use the
bookmarkable link without passing to it a pagemap and just setting the target
field of the link to the pagemap name.
Now, the problem is : when using the same instance of Firefox, every time I
load the application, it always use the same window name, which is
wicket:default. Is it possible to set a particular pagemap when the user login
or set a window.name when the user log in?
Marc
On 1/15/07, Marc-Andre Houle <[EMAIL PROTECTED] > wrote:
Damn It, I forgot to past thing in the post !!!!
Before loading the pop up :
2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session
] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap,
access=[]]
2007-01-15 10:36:51,586 DEBUG ( http-0.0.0.0-18080-3) [Session
] updateSession(): Attaching session to PageMap [PageMap name=null,
access=[[Access id=0, version=0], [Access id=1, version=0]]]
After loading the pop-up :
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session
] updateSession(): Attaching session to PageMap [PageMap name=popuppagemap,
access=[]]
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4) [Session
] updateSession(): Attaching session to PageMap [PageMap name=null,
access=[[Access id=0, version=0], [Access id=1, version=0]]]
2007-01-15 10:37:21,493 DEBUG ( http-0.0.0.0-18080-4 ) [Session
] updateSession(): Attaching session to PageMap [PageMap
name=wicket:default, access=[]]
I think my problem is about page-map and session, but I'm not sure of
anything....
Marc
On 1/15/07, Marc-Andre Houle < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote:
While asking this, I found maybe why the page expire, but not sure. It is due
to the use of pagemap to communicate from a pop-up to the current window. I'll
try to explain what is happening :
I log in my application, I click the link to open the pop-up. When clicking on
the link, I'm tring to add a pageparameters to the pop-up to pass the pagemap
name.
Presently, the log say that about updating pagemap :
In the pop up, I add a link to update the main window to display something
different. I get the page map from parameters. If page map is null, it is
because this session currently does not have a name and by default, the first
name used by wicket is : wicket-default. If there is nothing, this is what I
enter.
Then, when I click this link, it load the page in the correct window. This is
what is printed in the log file when updating page map :
Then, if I click on normal bookmarkable link, it work, but the first ajaxlink I
click will made the session to expire. Nothing can be done, it even didn't
pass in the onClick method of the ajaxLink. There is no other error in the
log, only loadingthe expired page....
Marc
On 1/15/07, Nino Wael < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:
Hmm, we had to track something similar. Could you describe what happens?
Our thing was something that was caused by clearing the pagemap and the
same time referencing to the cleared page. Also we have a problem where we
loose our session's id.
Regards Nino
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Marc-Andre Houle
Sent: 15. januar 2007 15:35
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Tracking session expire exception
Is there somebody here that had to track in his application why the
session expire? I'm in need of some "hint" on how to efficiently find the damn
thing that have made the session expire abruptly.
Surely somebody have done something about that! :)
Marc
-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user