Use $.ajax() in JSF -
Use $.ajax() in JSF -
is there way phone call method in java using $.ajax() without using f:ajax tag? i've seen many tutorials uses f:ajax tag i'd utilize pure ajax because need dynamically create dom , phone call ajax after that.
jquery
var url = "insert.jsf"; // assuming insert() action called. var info = {}; $.ajax({ url: url, data: data, success: function() { console.log("success"); }, error: function() { console.log("error"); } });
personcontroller.java
// think annotation should placed here. public void insert() { // something. }
ajax jsf
Comments
Post a Comment