1 Reply Latest reply on Oct 24, 2008 7:55 PM by venugopal Devarapalli

    <a4j:poll> is not working

    venugopal Devarapalli Newbie

      Hi

      In jsp Screen i am Displaying updated time ..

      I used <a4j:poll> tag to display updated time in seconds..

      But the seconds are not updating ..

      Here is Code..

      JSP CODE.....

      <h:form>
      <a4j:poll id="poll" interval="1000" enabled="true" reRender="serverDate"/>
      </h:form>



      <h:outputText id="serverDate" styleClass="FrmItalTypeForPopup" style="font-size: 7pt"
      value="updated #{utilityBean.dateTime} pst" />



      JAVA CODE.....

      public String getDateTime(){
      DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss a");
      Date date = new Date();
      return dateFormat.format(date);

      }



      Please Help me ..........

      Thanks

      Bill

        • 1. Re: <a4j:poll> is not working
          venugopal Devarapalli Newbie

          Hi

          In jsp Screen i am Displaying updated time ..

          I used <a4j:poll> tag to display updated time in seconds..

          But the seconds are not updating ..

          Here is Code..

          JSP CODE.....

          <h:form>
          <a4j:poll id="poll" interval="1000" enabled="true" reRender="serverDate"/>
          </h:form>


          <h:outputText id="serverDate" styleClass="FrmItalTypeForPopup" style="font-size: 7pt"
          value="updated #{utilityBean.dateTime} pst" />
          JAVA CODE.....

          public String getDateTime(){
          DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss a");
          Date date = new Date();
          return dateFormat.format(date);

          }



          Please Help me ..........

          Thanks

          Bill