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
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
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 })
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