How to call java script method from JSF Managed Beans?

Generally java script methods are invoked from client side to execute the task but there are certain condition we might need to call java scripts methods from server side. These events are triggered from either ajax events or form submit. Now lets see how can we call the method from server side in JSF. In below example userInfo is the javascript method which we are calling from serverside with passing boolean value as argument.

Server Side:

Client Side:
<html lang="en">
function userInfo(isExist){


Post a Comment

Powered by Blogger.