Hi Angelo, > Often I have to process something for a while before returning a new page, > I'd like to inform users to wait for a while, any easy way to do this? > thanks.
Idea 1: Use a page redirect Page.onSubmit -> RedirectToLoadingPage -> LoadingPage displays -> RedirectToAnswerPage (The AnswerPage (or the page doing the actual work) will finish its processing and will magically replace the loading page). I am a bit out of date of simple http redirects. But as far as I can remember while waiting for a page you redirect to the body content of the page forcing the redirect is still displayed. If you might want to use a more simplier (and natural) approach use java script. 1. When user clicks the link -> Show a ProcessingMessage (gray out form or whole page) 2. When the current page is being replaced -> Stop the ProcessingMessage (remove it) 3. The browser displays the next page. This works since tapestry blocks until the onSubmit (or whatever) is finished so nothing is send unless the whole page (in case of submit a simple redirect) is completed. Think that will solve your problem! :-) Cheers, Martin (Kersten) A.C. -- View this message in context: http://www.nabble.com/T5%3A-Please-wait-before-I-show-you-next-page-tp16 000636p16000636.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]