11 Replies Latest reply on Feb 9, 2011 10:17 AM by Leo K

    no header visible in rich:scrollableDataTable

    nimo stephan Master

      I use RichFaces 3.3.0

      I use a rich:scrollableDataTable with headers,
      but no header are visible (!):

      <rich:scrollableDataTable value="#{allSubjects}" var="s" >
      
      <rich:column>
      <f:facet name="header">
       <h:outputLabel value="name"/>
      </f:facet>
      <h:outputText value ="#{s.name}"/>
      </rich:column>
      
      <rich:column >
      <f:facet name="header">
      <h:outputLabel value="age"/>
      </f:facet>
      <h:outputText value ="#{s.age}"/>
      </rich:column>
      
      </rich:scrollableDataTable>


      What is wrong?

      The same is working by using rich:dataTable (rich:extendedDataTable) instead of rich:scrollableDataTable. Then all headers are visible:

      <rich:dataTable value="#{allSubjects}" var="s" >
      
      <rich:column>
      <f:facet name="header">
       <h:outputLabel value="name"/>
      </f:facet>
      <h:outputText value ="#{s.name}"/>
      </rich:column>
      
      <rich:column >
      <f:facet name="header">
      <h:outputLabel value="age"/>
      </f:facet>
      <h:outputText value ="#{s.age}"/>
      </rich:column>
      
      </rich:dataTable>


      What is wrong?