Ok nevermind, I fixed my problem :) !

Some simplified code of what I've done:

@Inject
private Request request; // to access GET and/or POST variables

// Event handler method which returns the JSON based on request parameters 
StreamResponse onGetData() {    
        return new TextStreamResponse("text/json", buildJson(request));
}

// to retrieve an url to the event handler
public String getDataEventLink() {
     return resources.createEventLink("getData").toURI();
} 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Call-event-from-javascript-tp5096654p5096844.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