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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -