2 Replies Latest reply on Oct 30, 2009 1:18 AM by ashutoshdeora

    problem with rich:subDataTable - extra <th> still coming

    ashutoshdeora

      this issue have already been solved in JIRA
      https://jira.jboss.org/jira/browse/RF-3786

      there is still a problem with the extra th

      <rich:dataTable value="#{capitalsBean.capitals}" var="capital">
       <rich:column>
       <f:facet name="header">Capital Name</f:facet>
       </rich:column>
       <rich:column>
       <f:facet name="header">Property Name</f:facet>
       </rich:column>
       <rich:column>
       <f:facet name="header">Property Value</f:facet>
       </rich:column>
      
      
      
      <rich:subTable value="#{capital.detailList}" var="detail">
       <rich:column />
       <rich:column>
       <h:outputText value="#{detail.key}" />
       </rich:column>
       <rich:column>
       <h:outputText value="#{detail.value}" />
       </rich:column>
       </rich:subTable>
       </rich:dataTable>
      


      the example to this problem is in richfaces live demo as refered


      this dataTable in the above is using <rich:columnGroup>
      it is fine when using the property
      but the dataTable losses some of its property like ---- sortBy , which is one of the features in dataTable
      if this is the case then is there any solution to this that i will retain the like ---- sortBy and doesnot face the problem of of extra

      if <rich:columnGroup> is the only solution please comment on this
      and another way i can use <rich:subDataTable> and donot get the extra



      for the use i have taken a screen shot of the view and posting it here

      the screenshot is not releated to the example code i have given above but it follows the same pattern


      http://img35.imageshack.us/i/posted.png/
      please see the link for the screen shot