Re: updating a zone from javascript

2012-09-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Sep 2012 15:51:50 -0300, sommeralex wrote: i know that the zone itself does not trigger events. the zone itself is just a HTML content. the question is, why zoneManager.update() is not enough. If i have zone already defined in my java/tml class, why then is it not possible to up

Re: updating a zone from javascript

2012-09-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Sep 2012 14:59:50 -0300, sommeralex wrote: function updatePage(response){ var zoneManager = Tapestry.findZoneManagerForZone(zoneId); zoneManager.updateFromURL(urlGetGroupsOnLocation); } but what i dont understand ist, why do i need an URL? why not just zoneManager.update()?

updating a zone from javascript

2012-09-21 Thread sommeralex
n("null"); return null; } private static int minutesDiff(Date earlierDate, Date laterDate) { if( earlierDate == null || laterDate == null ) return 0; return (int)((laterDate.getTime()/6) - (earlierDate.getTime()/6)