ICEfaces dataExporter无法导出文件

克里斯蒂安·威尔基(Christian Wilkie)

我有一个使用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>
克里斯蒂安·威尔基(Christian Wilkie)

该问题是由于缺少依赖项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

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章