subTable in dataTable adds additional <th>
------------------------------------------

                 Key: RF-3786
                 URL: http://jira.jboss.com/jira/browse/RF-3786
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.2.1, 3.2.0.SR1
         Environment: RF-3.2.[01], JSF-RI implementation
            Reporter: Andreas Heiduk


As soon as a dataTable contains both subTable and a column "header" facet an 
additional <th> element is rendered.

Example:

<rich:dataTable value="#{capitalsBean.capitals}" var="capital">
        <rich:column>
                <f:facet name="header">Capital Name</f:facet>
                <h:outputText value="#{capital.name}" />
        </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>

Now <thead> contains *four* <th> elements instead of three. The last <th> 
element looks like this:

        <th class="dr-table-subheadercell rich-table-subheadercell" 
scope="col"/>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to