I think that functions by loading the page entirely without data and then firing off an ajax request to get the data. I'm seriously considering reworkgin my pages in a manner that alows this. By default, the page renders a page that does no work, including populating models and such. The content area gets wrapped in a great big div that can be replaced by an ajax request. When the ajax request fires, I can then populate the models, knowing that a please wait dialog is visible. The trick will be in ensuring that all the models are instantiated with at least enough data to rewind correctly during the ajax request - I'm concerned that doing that will be very labour intensive and may well require lots of custom code on every page, to take into account that page's particular requirements.
I'm thinking I need to get really sneaky and do something with a servlet filter, such as intercepting all incoming requests, instantiating a new Request object which tells tapestry to render a page that does nothing but display a please wait dialog before sending an ajax request with a particular identifier in it. When the filter sees that identifier, it can replace the incoming Request object with the original Request object, allowing the page to render correctly. I have no idea whether this is truly feasible, but I suspect it is the only truly viable solution that works in all cases (except file upload, I imagine, which is a shame, cause that'd be a real handy place to have a pleae wait dialog). --sam On 12/6/06, Firas Adiler <[EMAIL PROTECTED]> wrote:
Check the Panel component, from the YUI Library: http://developer.yahoo.com/yui/examples/container/panelwait/2.html Regards, </Firas> -----Original Message----- From: Sam Gendler [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 10:07 PM To: Tapestry users Subject: need "please wait" notice for slow loading pages Does anyone have a mechanism for displaying some kind of please wait mechanism while waiting for a slow loading page to be rendered? I can think of a couple of potential solutions: ... Thanks --sam --------------------------------------------------------------------- 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]