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

Reply via email to