Thanks Guys, I was able to combine a little from the both of you to come up
with a solution. I'd like to start by saying, I was completely unaware of
t:type="any" , what a life saver. I manage to find that within the bind
code. 

Anyhow I developed a simple mixin enabling you to submit a single value to
the backend. Works like so. 

Once again, thanks. 

         Display Addresses 

the mixin

    public void afterRender() {
        Link link = resources.createEventLink("inPlace");

        JSONObject json = new JSONObject();

        json.put("id", element.getClientId());
        json.put("idInput", idInput);
        json.put("zoneId", zone);
        json.put("url", link.toAbsoluteURI());

        js.addInitializerCall("inPlace", json);
    }

this js

(function( $ ) {
    T5.extendInitializers(function(){
    
        function init(spec) {
            
            $("#" + spec.id).bind("click", function(){
                var specs = {
                    url: spec.url,
                    params : {value : $("#" + spec.idInput).val()}
                };
                
                $("#" + spec.zoneId).tapestryZone("update", specs);
            });
        }
        return {
            mySubmit: init
        };

    });
    
}) ( jQuery );

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Reloading-zone-from-custom-event-handler-tp5531638p5532289.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