Wicket and ajax with Rest service

79 Views Asked by At

Is it possible with Wicket to use AJAX but invoking a webservice from a different domain from the one serving the original page?

1

There are 1 best solutions below

0
martin-g On BEST ANSWER

Sure! You can do anything in your code.

There is no need to use Wicket Ajax APIs for this. You can use plain Javascript APIs or jQuery, or any other JS library.

Just make sure the REST service defines proper CORS headers, otherwise you won't be able to reach it via Ajax.