Re: [5.4] update zone with javascript

2013-12-11 Thread Geoff Callender
This should give you the clues you need: it's the ZoneUpdater mixin from the upcoming preview of JumpStart 7. It uses a dependency on "t5/core/zone". Example usage: ZoneUpdater.java: /** * A simple mixin for attaching javascript that updates a zone on any client-side event. * Based on htt

Re: Tapestry 5.1 and ajax callback

2013-12-11 Thread Jon Williams
Servlets are so 1997. http://en.wikipedia.org/wiki/Java_Servlet On Wed, Dec 11, 2013 at 2:47 AM, Lance Java wrote: > In a tapestry app, you should NEVER need a servlet (unless integrating a > servlet based 3rd party library). > > There are far better solutions provided out of the box by Tape

[5.4] update zone with javascript

2013-12-11 Thread Matthias
Hi, I'd like to update a zone with a simple ajax call and I'm not sure how its done: Javascript require([ "jquery", "myController"], function($, myController) { $(myController).on("myEvent", function(e) { // here i'd like to fire an ajax call that should update my zone }); });

Re: Custom Validator for Date field not working.

2013-12-11 Thread George Christman
All set, thanks Thiago. On Wed, Dec 11, 2013 at 12:43 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > File a JIRA please and I'll take a look later. > > > On Wed, 11 Dec 2013 14:24:54 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > On Wed, Dec 11, 2013 at 9:04 AM

Re: Custom Validator for Date field not working.

2013-12-11 Thread Thiago H de Paula Figueiredo
File a JIRA please and I'll take a look later. On Wed, 11 Dec 2013 14:24:54 -0200, George Christman wrote: On Wed, Dec 11, 2013 at 9:04 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: Did you notice you use "min-date" in some places and "minDate" in others? They should all

Re: Custom Validator for Date field not working.

2013-12-11 Thread George Christman
On Wed, Dec 11, 2013 at 9:04 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > Did you notice you use "min-date" in some places and "minDate" in others? > They should all match. > > > On Wed, 11 Dec 2013 11:49:22 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > > public

Re: Custom Validator for Date field not working.

2013-12-11 Thread Thiago H de Paula Figueiredo
Did you notice you use "min-date" in some places and "minDate" in others? They should all match. On Wed, 11 Dec 2013 11:49:22 -0200, George Christman wrote: public static void contributeFieldValidatorSource(MappedConfiguration configuration, JavaScriptSupport js) { configuration.a

Re: Custom Validator for Date field not working.

2013-12-11 Thread George Christman
Thiago, below is the complete code base AppModule.class @SuppressWarnings("rawtypes") public static void contributeFieldValidatorSource(MappedConfiguration configuration, JavaScriptSupport js) { configuration.add("minDate", new MinDate(js)); } Validator MinDate.class public clas

Re: Tapestry 5.1 and ajax callback

2013-12-11 Thread Lance Java
In a tapestry app, you should NEVER need a servlet (unless integrating a servlet based 3rd party library). There are far better solutions provided out of the box by Tapestry. As Thiago has said, servlets are so 2000.

Re: Tapestry 5.1 and ajax callback

2013-12-11 Thread Javier Val Lista
Thank you very much for your responses!!! Lance: very very interesting the onEvent mixin from tapestry-stitch! Thiago: I just learned something new. Thank you very much for your time! Finally what happened was that I needed to add the following to my AppModule.java and Tapestry not intercepting