1

I have an inputText area and the value attribute of the inputTextArea changes from time to time.How Can I call the METHOD on REGULAR INTERVALS so that the VALUE associated that component is always the latest.

Praveen V
  • 267
  • 3
  • 7
  • 22
  • Possible duplicate: http://stackoverflow.com/questions/10632830/how-to-trigger-component-refresh-from-javascript-in-primefaces and http://stackoverflow.com/questions/11228198/jsf-refresh-periodically-a-component-with-ajax – dShringi Apr 16 '13 at 07:38

1 Answers1

1

Using Poll will be the best bet for you.

 <h:inputTextarea id="autoUpdate" value="#{...}" />  
 <p:poll interval="4" listener="#{...}"  update="autoUpdate" autoStart="true"/>

Primefaces vdl description:

Poll is an ajax component that has the ability to send periodical ajax requests and execute listeners on JSF backing beans

dShringi
  • 1,497
  • 2
  • 22
  • 36