Re: Event to trigger zone refresh

2018-12-14 Thread Thiago H. de Paula Figueiredo
You can have it easier in Tapestry 5.4.2+, not having to pass the event URL from Java to JavaScript. From the example at tapestry.apache.org/ajax-and-zones.html#AjaxandZones-Invokingserver-sideeventhandlermethodsfromJavaScript, supposing you want to trigger a server-side event when clicking the el

Re: Event to trigger zone refresh

2018-12-14 Thread Thiago H. de Paula Figueiredo
On Thu, Dec 13, 2018 at 11:04 PM Christopher Dodunski < chrisfromtapes...@christopher.net.nz> wrote: > Hi all, > Hello! > I had mistakenly thought that any event handler method could render a > response through return type, whereas seemingly this is unique to events > triggered by Tapestry's ac

Re: Event to trigger zone refresh

2018-12-14 Thread Ilya Obshadko
That's actually quite easy: define(["jquery", "t5/core/utils", "t5/core/ajax", "t5/core/events"], function($, utils, ajax, events) { return function(spec) { var $zoneElement = $('#' + spec.zoneElementId) $zoneElement.trigger(events.zone.refresh, { url: spec.zoneRefreshUrl })

Re: DateField behaviour when within a zone

2018-12-14 Thread Thiago H. de Paula Figueiredo
On Fri, Dec 14, 2018 at 3:57 AM Christopher Dodunski < chrisfromtapes...@christopher.net.nz> wrote: > Hi Thiago, > Hello, Christopher! > Yes, I'll certainly use your Html5DateField wherever I can, in preference > to the WebFX based DateField component, whenever just a date is required. > Good e