p:rowExpansion每次按下扩展箭头都会重复该组件

时间:2019-03-07 19:44:42

标签: java primefaces primeng-datatable primefaces-extensions

按箭头展开该行会多次重复该元素。

         <p:dataTable id="#{cc.attrs.dataTableId}"
                     value="#{cc.attrs.lazyDataModel}" var="value" lazy="#{cc.attrs.isLazy}" rowIndexVar="rowIndex"
                     scrollable="true" tableStyle="width:100%" rowKey="#{solicitud.id}"
                     paginator="true" paginatorPosition="bottom" rowsPerPageTemplate="10,20,30" rows="10">
            <p:column style="width:20px">
                <p:rowToggler/>
            </p:column>
            <!-- table content -->
            <p:rowExpansion >
                <p:dataTable value="#{value.items}" var="items" tableStyle="width:100%"
                             emptyMessage="#{i18n.label_datatable_noregistros}" >
                    <!--subtable content-->
                </p:dataTable>
            </p:rowExpansion>
        </p:dataTable>

enter image description here

0 个答案:

没有答案