1 Reply Latest reply on Dec 23, 2009 11:36 AM by Edilmar Alves

    How to align a footer from dataTable

    Edilmar Alves Expert

      Hi,

       

      I have a rich:dataTable with many columns.

      One column is the "Money Value", where I align at right.

      Then, I have a footer to sum this column, but the footer always shows the total value aligned at left.


      Here is my code:

      <rich:column width="70px" id="valorPagto" style="text-align:right;">
           <f:facet name="header"><h:outputText styleClass="headerText" value="#{msgCliente['consTitulos.table.labelValorPagto']}" /></f:facet>
           <h:outputText value="#{item.valorPagto}"><f:convertNumber minFractionDigits="2"/></h:outputText>
           <f:facet name="footer"><h:outputText style="text-align:right;" value="#{consTitulosCliente.somaValorPagto}"><f:convertNumber minFractionDigits="2"/></h:outputText></f:facet>
      </rich:column>
      

       

      I put style="text-align:right" both in rich:column and footer's outputText. But footer's outputText doesn't work.