ICEfaces dataExporter无法导出文件

时间:2014-07-16 13:31:08

标签: jsf liferay portlet icefaces

我有一个非常简单的例子,使用ace:dataTable和ace:dataExporter组件,其中ace:dataExporter在单击时不会将表导出到可下载文件。我在具有ICEfaces 3.3.0 P02的Liferay 6.2 + Tomcat 7 JSF portlet环境中使用这些组件。

我的tomcat日志中的错误:

14:10:46,669 ERROR [MissingResourceImpl:78] Resource handler=[com.liferay.faces.
bridge.application.ResourceHandlerOuterImpl@66e6676f] was unable to create a res
ource for resourceName=[s4107aa8f-7a4e-4dd3-a2fc-8a18aa77ecb8] libraryName=[null
] contentType=[null]
14:10:46,670 ERROR [MissingResourceImpl:136] Resource handler=[com.liferay.faces
.bridge.application.ResourceHandlerOuterImpl@66e6676f] was unable to create a re
source for resourceName=[s4107aa8f-7a4e-4dd3-a2fc-8a18aa77ecb8] libraryName=[nul
l] contentType=[null]
14:10:46,671 WARN [ResourceImpl:166] Unable to determine if user agent needs up
date because resource URL was null for resourceName=[s4107aa8f-7a4e-4dd3-a2fc-8a
18aa77ecb8]. 

我的view.xhtml的相关部分:

<ace:dataExporter id="dataExportExample" fileName="identities" target="identityData" type="csv" />
<ace:dataTable id="identityData"
               value="#{simpleTableBean.identities}"
               var="identity"
               paginator="true"
               rows="15">
    <ace:column headerText="id">
        <h:outputText value="#{identity.id}" />
    </ace:column>
    <ace:column headerText="name">
        <h:outputText value="#{identity.name}" />
    </ace:column>
</ace:dataTable>

1 个答案:

答案 0 :(得分:1)

问题是由于缺少依赖liferay-faces-1917-lsv-5-patch版本3.2.4-ga5。它是通过添加

来修复的
<dependency>
    <groupId>com.liferay.faces.patches</groupId>
    <artifactId>liferay-faces-1917-lsv-5-patch</artifactId>
    <version>3.2.4-ga5</version>
</dependency>

到我的专家pom.xml