3 Replies Latest reply on Jun 24, 2009 7:32 AM by ramy Hassan

    problem  in ..Data Table Header when the table is Empty.?

    ramy Hassan Novice

      Hello ,

      I've a problem in data Table Header when there are no data in the table the header stretch to take along height
      this is my Code :

      <rich:dataTable height="100px" width="122px"
       id="mandatoryServicesDataTable" rows="3"
       value="#{OptionalServicesManagedBean.optionalServicesCollBean.mandatoryServicesList}"
       var="MandSrv" reRender="ds">
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column colspan="1">
       <h:outputText value="Mandatory Services" styleClass="tableHeaderLabel" />
       </rich:column>
       <rich:column breakBefore="true">
       <h:outputText value="Service Name" styleClass="tableHeaderLabel" />
       </rich:column>
      
       </rich:columnGroup>
       </f:facet>
       <rich:column>
      
       <h:outputText id="serviceNameTxt" value="#{MandSrv}" />
       </rich:column>
      
       <f:facet name="footer">
       <rich:datascroller id="ds" renderIfSinglePage="false"></rich:datascroller>
       </f:facet>
       </rich:dataTable>


      so i need to make header with fixed height , i've tried styles of rich table header but nothing change when table is empty the same problem

      so what shall i do ?

      Thanks