简体   繁体   中英

Richfaces ExtendedDataTable

Is it possible to achieve grouped headers in RichFaces ExtendedDataTable, as it does not support rowbreakbefore.

I have tried the following

<rich:extendedDataTable id="pivotTable" rowIndexVar="rowIndex">
        <c:forEach items="#{richPivotBean.headerRows}" var="columnObject">
            <rich:column breakrowbefore="#{columnobject.startone}"
                colspan="#{columnobject.colspan}" rowspan="#{columnobject.rowspan}">
                <f:facet name="header">
                    <h:outputText value="#{columnobject.colheadertext}" />
                </f:facet>
            </rich:column>
        </c:forEach>
    </rich:extendedDataTable>

I'm afraid the answer is a simple "no", you need to use rich:dataTable to get this functionality. Why are you using extendedDataTable rather than dataTable, normally this would be for scrolling or row selection but I see no evidence of this in your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM