5 Replies Latest reply on Jul 28, 2009 2:45 PM by nbelaevski

    ExtendedDataTable column width policy

    prabhat.jha

      Following is how I am using ExtendedDataTable:

      <rich:extendedDataTable value="#{bean.messages}" var="msgs" id="table">
       <rich:column label="Name">
       <f:facet name="header">
       <h:outputText value="Name" />
       </f:facet>
       <h:outputText value="#{msgs.senderScreenName}" />
       </rich:column>
       <rich:column label="Message">
       <f:facet name="header">
       <h:outputText value="Message" />
       </f:facet>
       <h:outputText value="#{msgs.text}" />
       </rich:column>
       </rich:extendedDataTable>


      Ideally this should be rendered as table with 2 columns. Please note that I have not explicitly specified any default dimension.

      This table is rendered as table with three columns out of which 2 columns have data and third one is empty. Looks like default width specified by renderer does not split available spaces equally. Of course, column separator is draggable so you could drag it to fix your need.

      I have discussed this with Nick and he thinks this can be treated as a bug. I wanted to throw it out in the wild before I create a jira.