【发布时间】:2011-10-18 21:11:14
【问题描述】:
我正在尝试使用richfaces 3.3.3 多文件上传功能。我在 JSF1.2 和 apache tomcat 服务器中成功使用它,但无法在 portlet 中实现它(在 IBM WebSphere 门户 6.1 服务器中)。
除了 lib:= 中的常规 jsf jar 之外,我还添加了以下 jar commons-beanutils-1.7.0.jar、commons-collections-3.2.jar、commons-digester-1.8.jar、commons-logging-1.0.4.jar、jhighlight-1.0.jar、richfaces-api-3.3.3。 Final.jar、richfaces-impl-3.3.3.Final.jar、richfaces-impl-jsf2-3.3.3.Final.jar、richfaces-ui-3.3.3.Final.jar。
在 web.xml 中添加了以下内容(额外):-
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<!-- Making the RichFaces skin spread to standard HTML controls -->
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<!-- Defining and mapping the RichFaces filter -->
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>createTempFiles</param-name>
<param-value>false</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
休息一切照常。有了这个,我就可以在 Tomcat 上毫无问题地使用它了。
但是当我尝试在 portlet 中实现这些配置时,这些配置会失败。 谷歌搜索和阅读其他博客表明 portletbridge 存在问题,我应该使用 jboss-portletbridge。尝试了许多人建议的各种组合。每次都会遇到不同的错误。
谁能帮我解决这个问题。任何见解都值得赞赏...
【问题讨论】:
-
还有其他像richfaces这样的用于多文件上传的api吗?
标签: jsf richfaces portlet websphere-portal