Re: page expire / ajax error
maybe the two tomcats are sharing a work dir so the two wicket apps might be sharing disk store files... -igor On Tue, Oct 18, 2011 at 7:35 AM, Jonathan Locke jonathan.lo...@gmail.com wrote: I have two wicket applications running on the same box (my laptop, for example) with one on port 8880 and one on port 8881. Each application does ajax-self-updating. Now, if I start the first application, all is well and will stay well forever as far as I can tell. But the exact moment i start up the second application, the first application suddenly gets either a page expired error (under wicket 1.4) or an error regarding behaviors (under wicket 1.5). I've tried this over and over and it's not a fluke. Anyone have any idea what's going on? My best guess is that somehow Tomcat is misconfigured (I'm starting it embedded)? But how might that be? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/page-expire-ajax-error-tp3915594p3915594.html Sent from the Users forum mailing list archive at Nabble.com. - 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: page expire / ajax error
For the problem with 1.5 see WICKET-4116. Will be better in 1.5.2 On Tue, Oct 18, 2011 at 5:35 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: I have two wicket applications running on the same box (my laptop, for example) with one on port 8880 and one on port 8881. Each application does ajax-self-updating. Now, if I start the first application, all is well and will stay well forever as far as I can tell. But the exact moment i start up the second application, the first application suddenly gets either a page expired error (under wicket 1.4) or an error regarding behaviors (under wicket 1.5). I've tried this over and over and it's not a fluke. Anyone have any idea what's going on? My best guess is that somehow Tomcat is misconfigured (I'm starting it embedded)? But how might that be? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/page-expire-ajax-error-tp3915594p3915594.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page expire / ajax error
it seems to be tomcat mixing/sharing user/session data/resources somewhere and reseting it on second start :? . On Tue, Oct 18, 2011 at 4:35 PM, Jonathan Locke jonathan.lo...@gmail.com wrote: I have two wicket applications running on the same box (my laptop, for example) with one on port 8880 and one on port 8881. Each application does ajax-self-updating. Now, if I start the first application, all is well and will stay well forever as far as I can tell. But the exact moment i start up the second application, the first application suddenly gets either a page expired error (under wicket 1.4) or an error regarding behaviors (under wicket 1.5). I've tried this over and over and it's not a fluke. Anyone have any idea what's going on? My best guess is that somehow Tomcat is misconfigured (I'm starting it embedded)? But how might that be? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/page-expire-ajax-error-tp3915594p3915594.html Sent from the Users forum mailing list archive at Nabble.com. - 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: page expire / ajax error
Yes, that's exactly it. Some weirdness with Tomcat sessions colliding (although not resetting). I have a workaround for now... I simply mount each application on a separate path and it all works. Strange. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/page-expire-ajax-error-tp3915594p3917439.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Page Expire
Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at ad...@sifycorp.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Expire
isn't it container specific ? On Tue, Jun 23, 2009 at 10:57 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at ad...@sifycorp.com - 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: Page Expire
You can specify session-timeout in web.xml . regards, vineet semwal On Tue, Jun 23, 2009 at 3:31 PM, Dipu dipu@googlemail.com wrote: isn't it container specific ? On Tue, Jun 23, 2009 at 10:57 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at ad...@sifycorp.com - 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: Page Expire
Hi, I am not asking about the session-timeout , i have given session-timeout as 30 mins in web.xml, But in wicket when i submit a form and after some time (10 mins) when i try to perform another operation i am getting the *Page Expired* error. Regards, Srinivasa Raju CH. vineet semwal wrote: You can specify session-timeout in web.xml . regards, vineet semwal On Tue, Jun 23, 2009 at 3:31 PM, Dipu dipu@googlemail.com wrote: isn't it container specific ? On Tue, Jun 23, 2009 at 10:57 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at ad...@sifycorp.com - 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: Page Expire
From what I have read on this forum, page expires and session expires can be two different things. Search in this forum for the message What does page expired mean?. The discussion talks about several issues not just session expiration. -Original Message- From: Dipu [mailto:dipu@googlemail.com] Sent: Tuesday, June 23, 2009 6:12 AM To: users@wicket.apache.org Subject: Re: Page Expire show your code or quickstart would be helpful On Tue, Jun 23, 2009 at 11:09 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, I am not asking about the session-timeout , i have given session-timeout as 30 mins in web.xml, But in wicket when i submit a form and after some time (10 mins) when i try to perform another operation i am getting the *Page Expired* error. Regards, Srinivasa Raju CH. vineet semwal wrote: You can specify session-timeout in web.xml . regards, vineet semwal On Tue, Jun 23, 2009 at 3:31 PM, Dipu dipu@googlemail.com wrote: isn't it container specific ? On Tue, Jun 23, 2009 at 10:57 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at ad...@sifycorp.com - 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 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page Expire
Have you checked your logs to see if there are serialization errors? -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jun 23, 2009 at 5:09 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, I am not asking about the session-timeout , i have given session-timeout as 30 mins in web.xml, But in wicket when i submit a form and after some time (10 mins) when i try to perform another operation i am getting the *Page Expired* error. Regards, Srinivasa Raju CH. vineet semwal wrote: You can specify session-timeout in web.xml . regards, vineet semwal On Tue, Jun 23, 2009 at 3:31 PM, Dipu dipu@googlemail.com wrote: isn't it container specific ? On Tue, Jun 23, 2009 at 10:57 AM, srinivassrinivas.r...@sifycorp.com wrote: Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at ad...@sifycorp.com - 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: Page Expire
Hello Srinivasa, You control the amount of storage that is available. Please look at the javadoc of DiskPageStore. Override the defaults by overriding WebApplication#newSessionStore(). Regards, Erik. srinivas wrote: Hi, After how much time will we get the page expire in wicket . Please give me the replay if any one know this . Thanks in advance. Regards, Srinivasa Raju CH. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
page expire
Hi, * How to make the page expire when the user click the browser back button in wicket.* Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail notify us immediately at ad...@sifycorp.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
page expire url
Hi all, Is there any way I can control the page expire url? I am using ajax self updating and when the page expire for some reason it turns into host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage I need it to be url that i can control depends on the pages I came from. Thanks in advance, Itay -- View this message in context: http://www.nabble.com/page-expire-url-tp20012692p20012692.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page expire url
I've the same requirement, and til now I didn't find any solution. PageExpired means the session is dead, so you have lost any information of the user. Maybe some core developpers may have a solution? itayh a écrit : Hi all, Is there any way I can control the page expire url? I am using ajax self updating and when the page expire for some reason it turns into host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage I need it to be url that i can control depends on the pages I came from. Thanks in advance, Itay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page expire url
getApplicationSettings().setPageExpiredErrorPage(Page.class); On Thu, Oct 16, 2008 at 3:33 PM, Piller Sébastien [EMAIL PROTECTED] wrote: I've the same requirement, and til now I didn't find any solution. PageExpired means the session is dead, so you have lost any information of the user. Maybe some core developpers may have a solution? itayh a écrit : Hi all, Is there any way I can control the page expire url? I am using ajax self updating and when the page expire for some reason it turns into host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage I need it to be url that i can control depends on the pages I came from. Thanks in advance, Itay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page expire url
yep, but it isn't dynamic... Francis De Brabandere a écrit : getApplicationSettings().setPageExpiredErrorPage(Page.class); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page expire url
we do not know the page you came from since the instance is gone. the container doesnt tell you the session is about to expire, it tells you it has - at which point you can no longer access it. -igor On Thu, Oct 16, 2008 at 5:27 AM, itayh [EMAIL PROTECTED] wrote: Hi all, Is there any way I can control the page expire url? I am using ajax self updating and when the page expire for some reason it turns into host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage I need it to be url that i can control depends on the pages I came from. Thanks in advance, Itay -- View this message in context: http://www.nabble.com/page-expire-url-tp20012692p20012692.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Page Expire
Hi, I'm using wicket and ext-js in a portlet style loading different wicket pages in. However, I face an issue when user did not touch a particular page for a while, it will get expired. What is the best way to work around this in ajax based web app in wicket? -- View this message in context: http://www.nabble.com/Page-Expire-tp16722304p16722304.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Expire
have an ajax behavior on the script that makes a callback every x minutes to keep the session alive -igor On Wed, Apr 16, 2008 at 7:13 AM, xdirewolfx [EMAIL PROTECTED] wrote: Hi, I'm using wicket and ext-js in a portlet style loading different wicket pages in. However, I face an issue when user did not touch a particular page for a while, it will get expired. What is the best way to work around this in ajax based web app in wicket? -- View this message in context: http://www.nabble.com/Page-Expire-tp16722304p16722304.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to redirect to the current page upon a page expire - how??
That would work, except the search results do contain some AJAX functionality, which of course result in a stateful page. Mr Mean wrote: how about using a stateless searchpage? that way you should not get a page expired. Maurice On Thu, Feb 21, 2008 at 1:14 AM, Chris Lintz [EMAIL PROTECTED] wrote: Hi, So i have searched the forums regarding overriding RequestCycle#onRuntimeException(Page page,RuntimeException e) . It seems we are completely stuck because there is no way to determine what page threw a PageExpiredException . What I want to do is this: When my SearchPage expires, and the user again clicks a button search, they are immediately returned to the SearchPage potentially with any request parameters the user searched on. It seems the only way to get a custom Page when an PageExpiredException is thrown is to override onRuntimeException and return the custom page. Unfortunately the page is null when passed into onRuntimeException (which makes sense because there is no longer a valid session). How can i accomplish this within the framework? I hope we can avoid a hack like setting a cookie that represents the current page upon every page request. (atleast it seems to me there should be a framework solution for this). thanks for any ideas chris -- View this message in context: http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15602103.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15613198.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to redirect to the current page upon a page expire - how??
once a page has expired there is really no way to know what it was..thats kinda the point of stateful components eg if you have created your page like this: setresponsepage(new userdetailspage(user, org)); and you get a page expired error, even if you somehow kept track of the fact that it was a userdetailspage you still wouldnt know what the user and org params it was created with... a compromise is a bookmarkable page mounted with a hybrid url coding strategy -igor On Thu, Feb 21, 2008 at 7:39 AM, Chris Lintz [EMAIL PROTECTED] wrote: That would work, except the search results do contain some AJAX functionality, which of course result in a stateful page. Mr Mean wrote: how about using a stateless searchpage? that way you should not get a page expired. Maurice On Thu, Feb 21, 2008 at 1:14 AM, Chris Lintz [EMAIL PROTECTED] wrote: Hi, So i have searched the forums regarding overriding RequestCycle#onRuntimeException(Page page,RuntimeException e) . It seems we are completely stuck because there is no way to determine what page threw a PageExpiredException . What I want to do is this: When my SearchPage expires, and the user again clicks a button search, they are immediately returned to the SearchPage potentially with any request parameters the user searched on. It seems the only way to get a custom Page when an PageExpiredException is thrown is to override onRuntimeException and return the custom page. Unfortunately the page is null when passed into onRuntimeException (which makes sense because there is no longer a valid session). How can i accomplish this within the framework? I hope we can avoid a hack like setting a cookie that represents the current page upon every page request. (atleast it seems to me there should be a framework solution for this). thanks for any ideas chris -- View this message in context: http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15602103.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15613198.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need to redirect to the current page upon a page expire - how??
Hi, So i have searched the forums regarding overriding RequestCycle#onRuntimeException(Page page,RuntimeException e) . It seems we are completely stuck because there is no way to determine what page threw a PageExpiredException . What I want to do is this: When my SearchPage expires, and the user again clicks a button search, they are immediately returned to the SearchPage potentially with any request parameters the user searched on. It seems the only way to get a custom Page when an PageExpiredException is thrown is to override onRuntimeException and return the custom page. Unfortunately the page is null when passed into onRuntimeException (which makes sense because there is no longer a valid session). How can i accomplish this within the framework? I hope we can avoid a hack like setting a cookie that represents the current page upon every page request. (atleast it seems to me there should be a framework solution for this). thanks for any ideas chris -- View this message in context: http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15602103.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need to redirect to the current page upon a page expire - how??
how about using a stateless searchpage? that way you should not get a page expired. Maurice On Thu, Feb 21, 2008 at 1:14 AM, Chris Lintz [EMAIL PROTECTED] wrote: Hi, So i have searched the forums regarding overriding RequestCycle#onRuntimeException(Page page,RuntimeException e) . It seems we are completely stuck because there is no way to determine what page threw a PageExpiredException . What I want to do is this: When my SearchPage expires, and the user again clicks a button search, they are immediately returned to the SearchPage potentially with any request parameters the user searched on. It seems the only way to get a custom Page when an PageExpiredException is thrown is to override onRuntimeException and return the custom page. Unfortunately the page is null when passed into onRuntimeException (which makes sense because there is no longer a valid session). How can i accomplish this within the framework? I hope we can avoid a hack like setting a cookie that represents the current page upon every page request. (atleast it seems to me there should be a framework solution for this). thanks for any ideas chris -- View this message in context: http://www.nabble.com/Need-to-redirect-to-the-current-page-upon-a-page-expire---how---tp15602103p15602103.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]