Thanks for the reponse, I did some research on Ajax frameworks but could not find any hint that AjaxTags support anything like Ajax Push.
However a framework called DWR seems to provide this functionality. An example is given here: http://java-x.blogspot.com/2007/03/reverse-ajax-with-direct-web-remoting.html I do not actually get how to integrate this code into my appfuse project. When I compare the code in the above mentioned example - how do I get the ServerContext there? Has anyone integrated DWR Reverse Ajax in an appfuse project? Maybe you can give me some code snippets? I also found out that appfuse already comes with the dwr library and dwr.xml. Is there already any dwr functionality in place? Cheers, Johannes Michael Horwitz wrote: > > 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] >> >> > > -- View this message in context: http://www.nabble.com/Triggering-a-page-refresh-from-the-server-side-tf4044648s2369.html#a11534917 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
