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]> 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]> 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]> 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