6 Replies Latest reply on Feb 24, 2007 6:36 PM by Pete Muir

    problem with the <h:column> rendered attribute

    Saif KHan Newbie

      dear fellows,

      the problem is i am using nested dataTables. the outer data table is displaying the heading of category of users, and the inner dataTable is displaying the users in that category. Now the problem is the inner dataTable is not displaying the column headers given in the respective facet tag.

      when i remove the rendered attribute from the h:column It start working, but i need the rendered attribute because it has the condition that it displays the list of users according the category, otherwise it displays all the users list irrespective of the category displayed on the top.

      can anybody help me please, following is my code.

      thanks in advance

      
      <h:dataTable rows="5" value="#{List1}" var="list1" >
      
      <h:column>
      <h:outputText value="#{list[1]}"/><br></br>
      
      <h:dataTable rows="10" value="#{list2}" var="list2" >
      
      <h:column id="col1" rendered="#{list1[0] == list2[6]}">
       <f:facet name="header">
       <h:outputText value="name"/>
       </f:facet> <h:outputText value="#{list2[2]}"/>
       </h:column>
      
      <h:column id="col2" rendered="#{list1[0] == list2[6]}">
      
       <f:facet name="header">
       <h:outputText value="Address" />
       </f:facet>
       <h:outputText value="#{list2[3]}"/>
      </h:column>
      
      <h:column id="col3" rendered="#{list1[0] == list2[6]}">
      <f:facet name="header">
      <h:outputText value="Phone" />
      </f:facet>
       <h:outputText value="#{list2[4]}"/>
      </h:column>
      
       </h:dataTable>
      </h:column>
      </h:dataTable>
      
      


      thank for reading