1 Reply Latest reply on Dec 10, 2008 5:55 PM by mail.micke

    how to set column width for rich datatable

    bala.bala_kuppuraj.yahoo.com
      Hi
       
        How to set width for each column.
        <h:column>
            <h:outputText value="#{clickthru[1]}"/>
        </h:column>
         Above code which display the long url content in a column.
      I want to set width for each column content.


      This is the code:

      <rich:dataTable id="clickthrusummary" headerClass="headerStyle"
      rowClasses="oddRow, evenRow" value="#{campaignsummaryreport.forwardDetails}" var="clickthru">
      <f:facet name="header">
        <rich:columnGroup>
        <h:column>
            <h:outputText styleClass="headerText" value="URL" />
        </h:column>
        <h:column>
         <h:outputText styleClass="headerText" value="Unique Clicks" />
        </h:column>
        <h:column>
          <h:outputText styleClass="headerText" value="Total Clicks" />
        </h:column>
      </rich:columnGroup>
         </f:facet>
         <h:column>
            <h:outputText value="#{clickthru[1]}"/>
         </h:column>
         <h:column>
            <h:outputText value="#{clickthru[2]}"/>
         </h:column>
         <h:column>
           <h:outputText value="#{clickthru[3]}" rendered="#{clickthru[3] == 0}"/>
         <a4j:commandLink action="#{campaignsummaryreport.initializeMemberClickTrackReport(clickthru[0])}" ajaxSingle="true" reRender="mbrtrackgrid" oncomplete="show_div('mbrtrackdiv')">
         <h:outputText value="#{clickthru[3]}" rendered="#{clickthru[3] gt 0}"/>
         </a4j:commandLink>              
         </h:column>  
      </rich:dataTable>