title: How to update the page regularly in jsf2.0?
body: <p>My JSF 2.0 page is contains some data, which is dynamic hence needs automatic refresh in some predefined time interval(say every 10 seconds). 
  I am using PrimeFaces 3.5 as a powerful component suite. Below is the managed bean-</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public Monitor implements Serializable {
  
      //max,min,avg,stdDev,reason are caluclated based on some dynamic data
      private int max;
      private int min;
      private double avg;
      private double stdDev;
      private String reason;
  
      public int getMax() {
              //Here before returning I am calling some methods to get the max from dynamic data
          return max;
      }
  
      public int getMin() {
              //Here before returning I am calling some methods to get the min from dynamic data
          return min;
      }
  
      public double getAvg() {
              //Here before returning I am calling some methods to get the avg from dynamic data
          return avg;
      }
  
      public String getReason() {
              //Here before returning I am calling some methods to get the reason from dynamic data
          return reason;
      }
  
      public double getStdDev() {
              //Here before returning I am calling some methods to get the stdDev from dynamic data
          return stdDev;
      }
  
      public void setMax(int max) {
          this.max = max;
      }
  
      public void setMin(int min) {
          this.min = min;
      }
  
      public void setAvg(double avg) {
          this.avg = avg;
      }
  
      public void setStdDev(double stdDev) {
          this.stdDev = stdDev;
      }
  
      public void setReason(String reason) {
          this.reason = reason;
      }
  }
  </code></pre>
  
  <p>I haven't finalize the layout till now however i would be like this-</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en" xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"&gt;
      &lt;h:head&gt;
          &lt;title&gt;Insert title here&lt;/title&gt;
      &lt;/h:head&gt;
      &lt;h:body&gt;
          &lt;p:panel&gt;
              &lt;h:outputLabel value="#{monitor.min}" /&gt;
              &lt;h:outputLabel value="#{monitor.max}" /&gt;
              &lt;h:outputLabel value="#{monitor.avg}" /&gt;
              &lt;h:outputLabel value="#{monitor.stdDev}" /&gt;
              &lt;h:outputLabel value="#{monitor.reason}" /&gt;
          &lt;/p:panel&gt;
      &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I update the page regularly in JSF 2.0?</p>