I'm assuming you want to push from the server side rather than having the client poll the server for updates?
Bit of a hot topic this one. Just google "Ajax push" or "Ajax Comet" for tons of stuff on the subject. One example: http://ajaxian.com/archives/comet-a-new-approach-to-ajax-applications At the moment the only real way to do the above and still let the user interact with the webpage while it waits for updates is to use long-lived Ajax requests. Any of the Ajax javascript frameworks should support this - your choice is largely going to be based on what you need to update on the page as a result of the notification, and in what format you want to return the update content/notification. One of the simplest approaches if you are using AppFuse is to use Ajaxtags to drive the Ajax bit: http://ajaxtags.sourceforge.net simply because it is based on Scriptaculous/prototype which are already included in AppFuse. The tricky bit is the server side. The servlet spec dictates one thread per request which assumes that requests are relatively short lived. Once the threads start hanging around for ages waiting for updates, you can quickly run into trouble. Jetty has come up with a solution, but it is not yet part of the servlet specification: http://docs.codehaus.org/display/JETTY/Continuations Not sure if there is anything out there yet to automatically handle the wait/updates on the server side - if you find anything please let us know! Mike On 7/9/07, cdtm <[EMAIL PROTECTED]> wrote:
We are using appfuse 2.0 and Spring MVC. Thanks in advance mraible wrote: > > Which web framework are you using? Which version of AppFuse are you using? > > Matt > > On 7/8/07, cdtm <[EMAIL PROTECTED]> wrote: >> >> Hi! >> >> We are having a hard time figuring out how to trigger a page refresh from >> the server side every few seconds when a server-side event is created. >> >> We would prefer a rather simple and straightforward solution. >> >> Maybe you have some ideas on how to use DWR library (or any other) for >> this >> purpose? >> >> Any hint is appreciated.. >> Thanks a lot! >> >> mda >> -- >> View this message in context: >> http://www.nabble.com/Triggering-a-page-refresh-from-the-server-side-tf4044648s2369.html#a11489083 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Triggering-a-page-refresh-from-the-server-side-tf4044648s2369.html#a11497993 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]