AJAX server calls on a JSF-centric app
Posted
by Konrad Garus
on Stack Overflow
See other posts from Stack Overflow
or by Konrad Garus
Published on 2010-04-08T18:46:51Z
Indexed on
2010/05/10
14:24 UTC
Read the original article
Hit count: 250
I'm building a JSF 2 application. I wanted to integrate it with jQuery, e.g.:
$.getJSON(contextPath + '/something', function(data) {
// ...
});
I need contextPath/something
to return data in JSON. How can I do it?
I know I can assign another servlet to this URL, but this approach does not seem to scale well. One could use a more scalable approach with a front end controller (e.g. Spring Web MVC), but I really wanted to write this in Java Enterprise stack. What other options are there?
© Stack Overflow or respective owner