Bryan Lewis wrote: > > This tutorial might be helpful. It shows a page being periodically > updated. > > http://blog.bolkey.com/2010/05/creating-a-news-feed-in-tapestry-5/ > > > On Thu, Oct 14, 2010 at 7:04 AM, LLTYK <ll...@mailinator.com> wrote: > >> >> I don't think there's an existing howto floating around so you're gonna >> have >> to put something together. >> >> This jumpstart demo (that does something completely irrelevant) should >> give >> you an idea of how to use the t5 ajax integration (ignore 90% of it, just >> see how to create a zone and how to update a zone from js with >> zoneManager.updateFromURL(url)): >> >> >> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/ajaxonevent >> >> You'd create a <t:zone> tag with the date in it, then reference it in >> your >> java class (like _nameZone in the demo). Then you create an event method >> the >> returns the zone for when you refresh it (like onFirstNameChanged, but >> only >> with the returning zone part). Then you'd generate the url for the event >> method (resources.createEventLink("FirstNameChanged").toAbsoluteURI()), >> and >> pass it to the js using renderSupport.addScript. Your js would just be a >> standard window.setTimeout or something, that calls the zone manager >> code. >> >> -- >> View this message in context: >> http://tapestry-users.832.n2.nabble.com/T5-Refresh-1-second-Ajax-method-tp5630159p5634559.html >> Sent from the Tapestry Users mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > >
Thank you very much for the response REgards -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Refresh-1-second-Ajax-method-tp3210194p3213192.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org