Hi George
did you try the bind mixin?

see documentation at http://tapestry5-jquery.com/mixins/docsbind

and test at

https://github.com/got5/tapestry5-jquery/blob/master/src/test/java/org/got5/tapestry5/jquery/pages/Bind.java

and

https://github.com/got5/tapestry5-jquery/blob/master/src/test/resources/org/got5/tapestry5/jquery/pages/Bind.tml

2012/3/2 George Christman <gchrist...@cardaddy.com>:
> Hello, I'm using Tapestry-Jquery and I'm trying to get the zone to reload.
> I'm able to get the request parameter values without issue, just won't
> reload the zone.
>
> I have the following method
>
>    @OnEvent(value = "mySubmit")
>    Object ajaxLink() {
>           value = request.getParameter("value");
>           System.out.println(value);
>           return zone.getBody();
>    }
>
>    void afterRender() {
>
>        Link link = resources.createEventLink("mySubmit");
>        JSONObject json = new JSONObject();
>        json.put("linkId", "ajaxLink");
>        json.put("idInput", "contactName");
>        json.put("zoneId", "vendorZone");
>        json.put("url", link.toAbsoluteURI());
>
>        js.addInitializerCall("mySubmit", json);
>    }
>
> I'm using the following script to handle the ajax
>
>        function init(spec) {
>            $("#" + spec.id).bind("click", function(){
>                $.ajax({
>                    url: spec.url,
>                    data: {value : $("#" + spec.idInput).val()}
>                });
>            });
>        }
>
> tml
>
> <input t:type="textfield" t:id="contactName"/>
> Test Link
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Reloading-zone-from-custom-event-handler-tp5531638p5531638.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to