1 Reply Latest reply on Oct 24, 2008 5:20 PM by Nick Belaevski

    <a4j:poll>

    k dcosta Newbie

      hi

      in our application upon click of a a4j:commandButton, its calls a action method which reads a set of files in a folder. each file is read and some data are stored into the database. it all works fine.

      but sometimes if the files are larger enough, it would take more time to complete analyzing it. so it would be better if user knows which file is being analyzed now. so i used one h:ouputText with value binded to current analyzing file name. but this output text need to be rendered each time. so i used a a4j:poll.

      it is not working for me. is it because there is already a request being sent to the server(i mean the command button request);

      i did like this

      <a4j:region>
      <h:form>
       <a4j:poll id="poll" interval="1000" reRender="poll,analysisFileName" enabled="true" />
      </h:form>
      
      
       </a4j:region>
       <h:outputText id="analysisFileName" value="#{analysisAction.analysingFileName}"></h:outputText>


      is there any way to do my requirment.
      plz help me with this.