Graphical exporter doesn't work inside c: forEach

I need to create tables with a list <List <Params →. When I use <ui: repeat> the Primefaces exporter works fine, but panelGrid doesn't work as expected. And, when I use c: forEach, the Grid panel works, but the Primefaces exporter doesn't. How can I use ui: repeat and panelGrid? Or c: forEach with Primefaces exporter? Can anyone help me? Thank.

<h:panelGrid columns="2" id="myPanelGrid">
<c:forEach varStatus="status_loop" items="#{ManagedBean.report}" var="params">
    <h:form id="form_tbl_#{status_loop.index}">
        <p:panel id="myPanel_#{status_loop.index}" > 
                <p:dataTable id="tbl_ativ_#{status_loop.index}"
                             value="#{params}"
                             var="p"
                             scrollHeight="80"
                             scrollable="true">
                    <p:column headerText="Name" >
                        <p:outputLabel value="#{p.name}" />
                    </p:column>

                    <f:facet name="footer">
                        <h:commandLink id="cmd_link" class="ui-right">
                            <p:graphicImage library="default" name="img/excel.png" width="24"/>
                            <p:dataExporter type="xls" target="tbl_ativ_#{status_loop.index}" fileName="excel_report" />
                        </h:commandLink>
                    </f:facet>
                </p:dataTable>
        </p:panel>
    </h:form>
  </c:forEach>
</h:panelGrid>

      

+3


source to share





All Articles