Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 2 Icefaces dataExporter不显示列的值_Jsf 2_Icefaces_Icefaces 3 - Fatal编程技术网

Jsf 2 Icefaces dataExporter不显示列的值

Jsf 2 Icefaces dataExporter不显示列的值,jsf-2,icefaces,icefaces-3,Jsf 2,Icefaces,Icefaces 3,我正在使用Icefaces 3.3和ice:dataExporter导出数据表的excel格式,但它不会在excel工作表中加载任何值。它只显示每列的标题。我认为是围绕列值的panelGroup导致了这个问题。有没有办法在不删除panelGroup的情况下解决此问题 <ice:dataExporter includeColumns="2,3,4,5,6,7,8,9" label="Export to Excel" id="iceDataExp_id_2" styleClass="iceDa

我正在使用Icefaces 3.3和
ice:dataExporter
导出数据表的excel格式,但它不会在excel工作表中加载任何值。它只显示每列的标题。我认为是围绕列值的panelGroup导致了这个问题。有没有办法在不删除panelGroup的情况下解决此问题

<ice:dataExporter includeColumns="2,3,4,5,6,7,8,9" label="Export to Excel" id="iceDataExp_id_2" styleClass="iceDataExp" for="carTable" type="excel"/>
<ice:dataTable id="carTable" value="#{carBean.carList}" var="car">
...<!-- Column 0 -->
...<!-- Column 1 -->
<!--Column 2 -->
<ice:column rowspan="2">
                <f:facet name="header">
                        <h:outputText value="Name"/>
                </f:facet>
                <ice:panelGroup contextValue="#{car.Id}"
                    menuPopup=":::myPopupmenu">
                    <ice:outputText value="#{car.carName}" />
                </ice:panelGroup>
</ice:column>
....
</ice:dataTable>

...
...
....
据我所知。。。 作为一种解决方法,您可以将其替换为“导出”链接。该链接将是触发导出的列中的commandLink。

据我所知不是。。。
作为一种解决方法,您可以将其替换为“导出”链接。该链接将是触发导出的列中的commandLink。

即使这是一个很老的问题。我只是遇到了同样的问题,并找到了以下解决方法:

<ice:column rowspan="2">
    <f:facet name="header">
            <h:outputText value="Name"/>
    </f:facet>
    <ice:panelGroup contextValue="#{car.Id}"
        menuPopup=":::myPopupmenu"
        value="">
        <ice:outputText value="#{car.carName}" />
    </ice:panelGroup>
</ice:column>


诀窍似乎是为panelGroup设置一个空字符串作为值。

即使这是一个很老的问题。我只是遇到了同样的问题,并找到了以下解决方法:

<ice:column rowspan="2">
    <f:facet name="header">
            <h:outputText value="Name"/>
    </f:facet>
    <ice:panelGroup contextValue="#{car.Id}"
        menuPopup=":::myPopupmenu"
        value="">
        <ice:outputText value="#{car.carName}" />
    </ice:panelGroup>
</ice:column>

技巧似乎是将一个空字符串设置为panelGroup的值