Primefaces InputText; I want to set its value with jQuery. This is the input text in the xhtml page :
<p:inputText value="#{Bean.numOfVisibleRows}" id="hidNumOfVisibleRows" widgetVar="hidNumOfVisibleRows_WV" type="text">
And this is the javascript i tried to change its value:
var numOfVisibleRows = 10;
PF('hidNumOfVisibleRows_WV').setValue(numOfVisibleRows);
but I get an error : Uncaught TypeError: PF(...).setValue is not a function ...
How can i do that? thanks!