I'm trying to call JSF controller method using jquery ajax But I'm getting 404 error. Please help. getTest() jsf method returning string .
$.ajax({
url: '/SpaceDataController/getTest',
type: 'GET',
dataType: 'json',
success: function () {
alert("success");
},
error: function () {
alert('error');
}
});