【问题标题】:Icefaces dataExporter does not display value of a columnIcefaces dataExporter 不显示列的值
【发布时间】:2013-09-02 04:29:46
【问题描述】:

我正在使用 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>

【问题讨论】:

    标签: jsf-2 icefaces icefaces-3


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      <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 的值。

      【讨论】:

        猜你喜欢
        • 2014-09-07
        • 2012-09-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-12-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多