RE: Prevent SessionExpiredPage from opening in a modal window
I have an idea: in my every modal dialog will put a listener that checks if session.isExpired() on user interaction with the modal window. Can someone tell me please what's the event fired when a user makes some action on a page, like clicking a link or a button. I want to listen for this. Best, Martin -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Thursday, March 18, 2010 10:02 AM To: users@wicket.apache.org Subject: RE: Prevent SessionExpiredPage from opening in a modal window Unfortunately, the session expired page still opens in a modal window... Any further help will be appreciated. Best, Martin -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Wednesday, March 17, 2010 6:34 PM To: users@wicket.apache.org Subject: RE: Prevent SessionExpiredPage from opening in a modal window Thanks , Igor! I did it that way: function checkIfParentIsModal() { if (window.opener!=null) { window.opener.location=window.location; } } Hopefully that works! Best, Martin -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, March 17, 2010 5:45 PM To: users@wicket.apache.org Subject: Re: Prevent SessionExpiredPage from opening in a modal window you can add a bit of js to your custom pageexpiredpage, something that looks like this: if (window.opener!=null) { window.opener.location=window.location; } -igor On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov wrote: > Hello, guys! > > I'm, wondering if I could prevent my sessionExpiredPage from opening in a > modal window. In case the user opens a modal window and goes away for a while > and in the meantime the session gets expired, I don't want when he comes back > and clicks inside the modal window to see the session expired page with a > button 'Go to home page" in the modal. Afterwards, of course, if he clicks on > the link he'll get home page shown inside the modal. I want to prevent this. > > Any hints or ideas? > > Best, > Martin > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Prevent SessionExpiredPage from opening in a modal window
Unfortunately, the session expired page still opens in a modal window... Any further help will be appreciated. Best, Martin -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Wednesday, March 17, 2010 6:34 PM To: users@wicket.apache.org Subject: RE: Prevent SessionExpiredPage from opening in a modal window Thanks , Igor! I did it that way: function checkIfParentIsModal() { if (window.opener!=null) { window.opener.location=window.location; } } Hopefully that works! Best, Martin -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, March 17, 2010 5:45 PM To: users@wicket.apache.org Subject: Re: Prevent SessionExpiredPage from opening in a modal window you can add a bit of js to your custom pageexpiredpage, something that looks like this: if (window.opener!=null) { window.opener.location=window.location; } -igor On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov wrote: > Hello, guys! > > I'm, wondering if I could prevent my sessionExpiredPage from opening in a > modal window. In case the user opens a modal window and goes away for a while > and in the meantime the session gets expired, I don't want when he comes back > and clicks inside the modal window to see the session expired page with a > button 'Go to home page" in the modal. Afterwards, of course, if he clicks on > the link he'll get home page shown inside the modal. I want to prevent this. > > Any hints or ideas? > > Best, > Martin > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Prevent SessionExpiredPage from opening in a modal window
Thanks , Igor! I did it that way: function checkIfParentIsModal() { if (window.opener!=null) { window.opener.location=window.location; } } Hopefully that works! Best, Martin -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, March 17, 2010 5:45 PM To: users@wicket.apache.org Subject: Re: Prevent SessionExpiredPage from opening in a modal window you can add a bit of js to your custom pageexpiredpage, something that looks like this: if (window.opener!=null) { window.opener.location=window.location; } -igor On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov wrote: > Hello, guys! > > I'm, wondering if I could prevent my sessionExpiredPage from opening in a > modal window. In case the user opens a modal window and goes away for a while > and in the meantime the session gets expired, I don't want when he comes back > and clicks inside the modal window to see the session expired page with a > button 'Go to home page" in the modal. Afterwards, of course, if he clicks on > the link he'll get home page shown inside the modal. I want to prevent this. > > Any hints or ideas? > > Best, > Martin > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prevent SessionExpiredPage from opening in a modal window
you can add a bit of js to your custom pageexpiredpage, something that looks like this: if (window.opener!=null) { window.opener.location=window.location; } -igor On Wed, Mar 17, 2010 at 2:23 AM, Martin Asenov wrote: > Hello, guys! > > I'm, wondering if I could prevent my sessionExpiredPage from opening in a > modal window. In case the user opens a modal window and goes away for a while > and in the meantime the session gets expired, I don't want when he comes back > and clicks inside the modal window to see the session expired page with a > button 'Go to home page" in the modal. Afterwards, of course, if he clicks on > the link he'll get home page shown inside the modal. I want to prevent this. > > Any hints or ideas? > > Best, > Martin > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org