title: cant display static int variable in primefaces datatable
body: <p>im using primefaces datatable to display my data
  here is my code:</p>
  
  <pre><code>&lt;p:dataTable id="tab6" var="comp" value="#{excelReport.report6}" rendered="#{excelReport.date != null}"&gt;
                      &lt;f:facet name="header"&gt;  
                          &lt;h:outputText value="heading text"/&gt; 
                      &lt;/f:facet&gt;
                      &lt;p:columnGroup type="header"&gt;
                          &lt;p:row&gt;
                              &lt;p:column headerText="Sr No" /&gt;
                              &lt;p:column headerText="Years" /&gt;
                              &lt;p:column headerText="Quarter no." /&gt;
                              &lt;p:column headerText="POL" /&gt;
                              &lt;p:column headerText="LPG" /&gt;
                              &lt;p:column headerText="AVIATION" /&gt;
                              &lt;p:column headerText="LUBES" /&gt;
                              &lt;p:column headerText="OTHERS" /&gt;
                          &lt;/p:row&gt;
                      &lt;/p:columnGroup&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.serialNo}" /&gt; &lt;/p:column&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.quarterRange}" /&gt;&lt;/p:column&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.quarterNumber}" /&gt;&lt;/p:column&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.pol}" /&gt;&lt;/p:column&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.lpg}" /&gt;&lt;/p:column&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.aviation}" /&gt;&lt;/p:column&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.lubes}" /&gt;&lt;/p:column&gt;
                      &lt;p:column&gt;&lt;h:outputText value="#{comp.others}" /&gt;&lt;/p:column&gt;    
                      &lt;p:columnGroup type="footer"&gt;
                          &lt;p:row&gt;
                              &lt;p:column footerText="Total" colspan="3"/&gt;
                              &lt;p:column footerText="#{comp.polTotal}"/&gt;
                              &lt;p:column footerText="#{comp.lpgTotal}"/&gt;
                              &lt;p:column footerText="#{comp.aviationTotal}"/&gt;
                              &lt;p:column footerText="#{comp.lubesTotal}"/&gt;
                              &lt;p:column footerText="#{comp.othersTotal}"/&gt;
                          &lt;/p:row&gt;
                      &lt;/p:columnGroup&gt;
                  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>Every thing is working fine except i'm not getting any data in my footer row.
  i'm trying to display the static variable of int type in my footerText.</p>
  
  <p>here is by bean :</p>
  
  <pre><code>package dao;
  
  import java.io.Serializable;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.ViewScoped;
  
  @ManagedBean
  @ViewScoped
  public class Excel_Target_Compliance implements Serializable {
  
      public Excel_Target_Compliance() {
      }
      private String quarterRange;
      private String quarterNumber;
      private int pol;
      private int lpg;
      private int aviation;
      private int lubes;
      private int others;
      private int serialNo;
      static int polTotal;
      static int lpgTotal;
      static int aviationTotal;
      static int lubesTotal;
      static int othersTotal;
  
      public static int getPolTotal() {
          return polTotal;
      }
  
      public static int getLpgTotal() {
          return lpgTotal;
      }
  
      public static int getAviationTotal() {
          return aviationTotal;
      }
  
      public static int getLubesTotal() {
          return lubesTotal;
      }
  
      public static int getOthersTotal() {
          return othersTotal;
      }
  
      public int getSerialNo() {
          return serialNo;
      }
  
      public void setSerialNo(int serialNo) {
          this.serialNo = serialNo;
      }
  
      public String getQuarterRange() {
          return quarterRange;
      }
  
      public void setQuarterRange(String quarterRange) {
          this.quarterRange = quarterRange;
      }
  
      public String getQuarterNumber() {
          return quarterNumber;
      }
  
      public void setQuarterNumber(String quarterNumber) {
          this.quarterNumber = quarterNumber;
      }
  
      public int getPol() {
          return pol;
      }
  
      public void setPol(int pol) {
          polTotal = polTotal + pol;
          this.pol = pol;
      }
  
      public int getLpg() {
          return lpg;
      }
  
      public void setLpg(int lpg) {
          lpgTotal = lpgTotal + lpg;
          this.lpg = lpg;
      }
  
      public int getAviation() {
          return aviation;
      }
  
      public void setAviation(int aviation) {
          aviationTotal = aviationTotal + aviation;
          this.aviation = aviation;
      }
  
      public int getLubes() {
          return lubes;
      }
  
      public void setLubes(int lubes) {
          lubesTotal = lubesTotal + lubes;
          this.lubes = lubes;
      }
  
      public int getOthers() {
          return others;
      }
  
      public void setOthers(int others) {
          othersTotal = othersTotal + others;
          this.others = others;
      }
  }
  </code></pre>