Thanks Martin. I used this page to developed my application. The problem is that this page do not show how to handle the response returned by the link. I also tried this, and see the errors:
------- MyPage.html --------------- Wicket.Event.add(window, 'domready', function(event) { Wicket.Ajax.get({'u': 'http://localhost:8080/mgm/JSONOffice', 'c': 'ajaxLink', 'e': 'click'}); }); -------- Fireforx Console, after click the link --------------- [15:00:08.086] GET http://localhost:8080/mgm/JSONOffice?_=1361977208007 [HTTP/1.1 200 OK 1318ms] [15:00:09.368] Wicket.Ajax: Wicket.Ajax.Call.failure: Error while parsing response: Error: Invalid XML: {"offices":[{"phone":"+1 650 219 4782","officeCode":"1","territory":"NA","postalCode":"94080","state":"CA","addressLine2":"Suite 300","addressLine1":"100 Market Street","country":"USA","city":"San Francisco"},{"phone":"+1 215 837 0825","officeCode":"2","territory":"NA","postalCode":"02107","state":"MA","addressLine2":"Suite 102","addressLine1":"1550 Court Place","country":"USA","city":"Boston"}]} [15:00:09.462] GET http://localhost:8080/myajax/?0-1.IBehaviorListener.0-ajaxLink&_=1361977209389 [HTTP/1.1 200 OK 72ms] [15:00:09.561] Wicket.Ajax: Wicket.Ajax.Call.failure: Error while parsing response: SyntaxError: JSON.parse: unexpected character How you can see, there where two requests. I need that the link do only ONE request to my URL that returns JSON response and i need handle the content of the response to show it in a div. Thanks, Anderson -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Handle-JSON-response-tp4656838p4656865.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org