我使用 JSF 2.1 应用程序作为 Apache Pluto 容器的 portlet 模块。作为一个 portlet 桥,我使用 Jboss portlet bridge 3.2 Final 。我在我的 portlet.xml 中声明了它
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/index.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.preserveActionParams</name>
<value>true</value>
</init-param>
<init-param>
<name>javax.portlet.faces.autoDispatchEvents</name>
<value>true</value>
</init-param>
当我在服务器上运行我的应用程序(已修补 Tomee)时,第一页(index.xhtml)看起来正确,但是当我尝试通过单击转发到另一个页面时<h:commandButton>
,容器找不到所需的页面。您能帮我解决这个问题或建议另一种创建 portlet 桥的方法吗?