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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -