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
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
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
});
});
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
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
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
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
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
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.
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
10 matches
Mail list logo