0

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!

afterbit
  • 383
  • 7
  • 20

0 Answers0