Reputation: 127
I am using Wicket 7.x in an Eclipse IDE Maven Project (the Quickstart project from the Wicket website) and deploying it on a localhost Tomcat server. Basically I want to send HTTP GET and POST requests to a specified URL (a REST service) in order to create a simple CRUD for my Java2EE framework homework. I mostly work with AngularJS and there you just need to use one command:
$http.get('/someUrl', config).then(successCallback, errorCallback);
$http.post('/someUrl', data, config).then(successCallback, errorCallback);
Are there any structures that perform similarly in wicket? I have seen some jQuery AJAX examples, but none of them seemed to fully explain how to make the request (input the URL etc). So if you have any ideas, please throw them my way. All of this just seems so needlessly complicated. Also if this was easier in any previous versions, I can probably downgrade.
Upvotes: 1
Views: 878
Reputation: 1554
There are no opportunity to perform this operations via Wicket's tools I suppose.
Try to use Apache's HttpClient library.
Upvotes: 4