Re: Session Time-out
Sounds like a good case for a conversational page. Tynamo's tapestry-conversations (http://tynamo.org/tapestry-conversations+guide) allows you to set the max length of a conversation independent of the session timeout and a ajax keep-alive with a drop-in component. Kalle On Thu, Jun 2, 2011 at 7:08 AM, Andreas Andreou wrote: > Also, it's usual in such forms to do a "dummy" ajax request > from javascript every few minutes so that the session is extended > > On Thu, Jun 2, 2011 at 17:05, Taha Hafeez wrote: >> This is fully documented at >> http://tapestry.apache.org/overriding-exception-reporting.html >> >> I would use version 2 or 3 from that page >> >> <http://tapestry.apache.org/overriding-exception-reporting.html>regards >> Taha >> >> On Thu, Jun 2, 2011 at 7:19 PM, wrote: >> >>> I have a problem with Tapestry 5 when the session times out. >>> >>> There is a security policy on my system that requires a session time-out >>> after 30 minutes of non-use. >>> >>> I have a data entry page that can take a long time to complete with many >>> submits. If the session times out and a user then enters more data and >>> tries to submit they get this error. >>> >>> An unexpected application exception has occurred. >>> org.apache.tapestry5.ioc.internal.OperationException >>> Forms require that the request method be POST and that the t:formdata >>> query parameter have values. >>> >>> >>> >>> Now I understand this error but my users will not. Is there a way to catch >>> this exception so I can give them a more informative message. >>> >>> >>> Michael Williamson >>> Analyst Sr Applications Developer >>> Phone: 816/997-5994 >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >> > > > > -- > Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr > Apache Tapestry PMC / http://chesstu.be owner > Open Source / JEE Consulting > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Session Time-out
Also, it's usual in such forms to do a "dummy" ajax request from javascript every few minutes so that the session is extended On Thu, Jun 2, 2011 at 17:05, Taha Hafeez wrote: > This is fully documented at > http://tapestry.apache.org/overriding-exception-reporting.html > > I would use version 2 or 3 from that page > > <http://tapestry.apache.org/overriding-exception-reporting.html>regards > Taha > > On Thu, Jun 2, 2011 at 7:19 PM, wrote: > >> I have a problem with Tapestry 5 when the session times out. >> >> There is a security policy on my system that requires a session time-out >> after 30 minutes of non-use. >> >> I have a data entry page that can take a long time to complete with many >> submits. If the session times out and a user then enters more data and >> tries to submit they get this error. >> >> An unexpected application exception has occurred. >> org.apache.tapestry5.ioc.internal.OperationException >> Forms require that the request method be POST and that the t:formdata >> query parameter have values. >> >> >> >> Now I understand this error but my users will not. Is there a way to catch >> this exception so I can give them a more informative message. >> >> >> Michael Williamson >> Analyst Sr Applications Developer >> Phone: 816/997-5994 >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Apache Tapestry PMC / http://chesstu.be owner Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Session Time-out
This is fully documented at http://tapestry.apache.org/overriding-exception-reporting.html I would use version 2 or 3 from that page <http://tapestry.apache.org/overriding-exception-reporting.html>regards Taha On Thu, Jun 2, 2011 at 7:19 PM, wrote: > I have a problem with Tapestry 5 when the session times out. > > There is a security policy on my system that requires a session time-out > after 30 minutes of non-use. > > I have a data entry page that can take a long time to complete with many > submits. If the session times out and a user then enters more data and > tries to submit they get this error. > > An unexpected application exception has occurred. > org.apache.tapestry5.ioc.internal.OperationException > Forms require that the request method be POST and that the t:formdata > query parameter have values. > > > > Now I understand this error but my users will not. Is there a way to catch > this exception so I can give them a more informative message. > > > Michael Williamson > Analyst Sr Applications Developer > Phone: 816/997-5994 > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Session Time-out
I have a problem with Tapestry 5 when the session times out. There is a security policy on my system that requires a session time-out after 30 minutes of non-use. I have a data entry page that can take a long time to complete with many submits. If the session times out and a user then enters more data and tries to submit they get this error. An unexpected application exception has occurred. org.apache.tapestry5.ioc.internal.OperationException Forms require that the request method be POST and that the t:formdata query parameter have values. Now I understand this error but my users will not. Is there a way to catch this exception so I can give them a more informative message. Michael Williamson Analyst Sr Applications Developer Phone: 816/997-5994 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5: Handle session time out error on ExceptionReport
Hi all, How to inform end users that the session has expired? Can I do it in the ExceptionReport page? thx. Gajanan -- View this message in context: http://www.nabble.com/T5%3A-Handle-session-time-out-error-on-ExceptionReport-tp20070324p20070324.html Sent from the Tapestry - User mailing list archive at Nabble.com.
T5: Handle session time out error on ExceptionReport
Hi all, How to inform end users that the session has expired? Can I do it in the ExceptionReport page? Currently, when session expired and user try to submit a form or something (user has logged a while ago, and I use acegi), the server side will just throw a generic exception which will cause the default ExceptionReport.tml page to be displayed. I want that page to give more informative info, so if the exception is caused by session time out, I will display appropriate message. How should I do that?? thx. Ronald -- View this message in context: http://www.nabble.com/T5%3A-Handle-session-time-out-error-on-ExceptionReport-tp19167377p19167377.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session time out
Hi, I'm using tapestry-3.0.4. I have a logon page with username and password input fields. First time I submit form it works fine. If username and password are correct I go on to Welcome page, otherwise I'm redirect on my logon page with an error message. Second time i submit form, if I enter invalid username or password, I don't see my logon page, but I'm redirect to a page with message Your session has timed out. Why tapestry see that session is timed out? Here is my code: Login.java public abstract String getUserName(); public abstract String getPassword(); public abstract void setMessage(String message); public void onFormSubmit(IRequestCycle cycle) { MyVisit visit = (MyVisit) getVisit(); MyUserBean user = new MyUserBean(); if(my_Method_to_validate(getUserName(), getPassword())) { visit.setUser(user); cycle.activate("MainPage"); } else setMessage("invalid username or password"); } Home.page add a description Home.html Utente: Password: Thanks a lot -- View this message in context: http://www.nabble.com/session-time-out-tf4048284.html#a11498988 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NPE in DataSqueezer after session time out
I have a problem with session timeouts and my custom data squeezer implementation. When a user of my web application uses an external link after his session already expired, he ends up with a NPE emanating from my data squeezer (the squeezer makes use of an injected service, from which the exception ultimately originates). Shouldn't Tapestry directly detect the dead session prior to even executing the data squeezer and subsequently show the session expired page? Any suggestions what I could do to make the problem go away in a generic manner? I suppose I could add a workaround in the data squeezer impl itsself, but that's not completely straightforward either because the NPE occurs somewhere deep down in the bowels of the injected service the squeezer uses. Any help is greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]