我正在尝试使用richfaces 3.3.3 多文件上传功能。我在 JSF1.2 和 apache tomcat 服务器中成功使用它,但无法在 portlet 中实现它(在 IBM WebSphere 门户 6.1 服务器中)。
除了 lib:= commons-beanutils-1.7.0.jar、commons-collections-3.2.jar、commons-digester-1.8.jar、commons-logging-1.0.4 中的常规 jsf jar 之外,我还添加了以下 jar。 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。尝试了许多人建议的各种组合。每次得到不同的错误。
谁可以帮我这个事。任何见解表示赞赏...