I want to submit some value to server on some client side event which i am not able to get with server side events.
(1) Primefaces.ab(formName,methodName,parameter)
Wanted to do something like above mentioned code. Actually i am trying to save Rows per page event in primefaces but following event:
do not returns current rows per page that’s why i am getting value with help of Jquery and css class of Row per page template and i need to submit that value to server side method.
Any help is appreciated.
For that, the
<p:remoteCommand>component is intented. Basically, it allows you to let PrimeFaces generate a JS function reference with the desired function name which in turn invokes the desired backing bean action method.E.g.:
Which is then to be invoked as:
You can use a JS object as argument in order to pass request parameters:
Which is then available in action method as: