2 Replies Latest reply on Feb 3, 2009 10:49 AM by nimo22

    rich:dataTable columns="2" for what?

    nimo22

      for what is the "columns"-property in rich:dataTable?

      When using something like this, all three rows are showed.
      Should I set the columns-property to "3". What is the sense for that?:



      <rich:dataTable columns="2" width="300">

      <rich:column width="1em">
      <f:facet name="header">
      <h:outputLabel value="a"/>
      </f:facet>
      <h:outputText value ="#{_a.1}"/>
      </rich:column>

      <rich:column width="10px">
      <f:facet name="header">
      <h:outputLabel value="b"/>
      </f:facet>
      <h:outputText value ="#{_a.b}"/>
      </rich:column>

      <rich:column width="10">
      <f:facet name="header">
      <h:outputLabel value="c"/>
      </f:facet>
      <h:outputText value ="#{_a.c}"/>
      </rich:column>

      </rich:dataTable>

      Another question: the width-property: how should I declare that? in percentage, em, px:

      width="1em"
      width="1px"
      width="1%"
      width="1"