<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>JSF navigation triggered from the GenericFacesPortlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=13290987" />
  <subtitle>JSF navigation triggered from the GenericFacesPortlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=13290987</id>
  <updated>2026-06-07T16:09:29Z</updated>
  <dc:date>2026-06-07T16:09:29Z</dc:date>
  <entry>
    <title>RE: JSF navigation triggered from the GenericFacesPortlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13857808" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13857808</id>
    <updated>2012-05-09T16:18:40Z</updated>
    <published>2012-05-09T16:18:40Z</published>
    <summary type="html">FYI, WSRP is now supported in Liferay Portal. See: &lt;a href="http://issues.liferay.com/browse/FACES-1181"&gt;FACES-1181&lt;/a&gt; for more info.</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2012-05-09T16:18:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: JSF navigation triggered from the GenericFacesPortlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13290989" />
    <author>
      <name>PortletFaces Community Member</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13290989</id>
    <updated>2012-02-02T08:29:38Z</updated>
    <published>2012-02-02T08:29:38Z</published>
    <summary type="html">To answer my own question in the hope that maybe it will help someone in the future - it is enough to provide in your actionURL a parameter with the name _facesViewId and a value relative to your application context path&lt;br /&gt;&lt;br /&gt;- java code approach : &lt;br /&gt;&lt;br /&gt;FacesContext fctx = FacesContext.getCurrentInstance();&lt;br /&gt;RenderResponse rresponse = (RenderResponse) fctx.getExternalContext().getResponse();&lt;br /&gt;PortletURL actionURL = rresponse.createActionURL();&lt;br /&gt;actionURL.setParameter(&amp;#34;_facesViewId&amp;#34;, &amp;#34;/xhtml/somePage.xhtml&amp;#34;);&lt;br /&gt;String url = actionURL.toString();&lt;br /&gt;&lt;br /&gt;- or using the portlet tags : &lt;br /&gt;&lt;br /&gt;&amp;lt;portlet:actionURL var=&amp;#34;myLink&amp;#34;&amp;gt;&lt;br /&gt;	&amp;lt;portlet:param name=&amp;#39;_facesViewId&amp;#39; value=&amp;#39;/xhtml/somePage.xhtml&amp;#39;/&amp;gt;&lt;br /&gt;&amp;lt;/portlet:actionURL&amp;gt;&lt;br /&gt;		&lt;br /&gt;&amp;lt;a href=&amp;#34;#{myLink}&amp;#34;&amp;gt;My Link&amp;lt;/a&amp;gt;</summary>
    <dc:creator>PortletFaces Community Member</dc:creator>
    <dc:date>2012-02-02T08:29:38Z</dc:date>
  </entry>
  <entry>
    <title>JSF navigation triggered from the GenericFacesPortlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13290986" />
    <author>
      <name>PortletFaces Community Member</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13290986</id>
    <updated>2012-02-01T14:16:58Z</updated>
    <published>2012-02-01T14:16:58Z</published>
    <summary type="html">Hi, &lt;br /&gt;&lt;br /&gt;Is there a way to trigger the JSF navigation from the GenericFacesPortlet ? Or  is there a way to change the current portlet displayed page like index.xhtml to somethingElse.xhtml from the GenericFacesPortlet ?&lt;br /&gt;&lt;br /&gt;In an older IBM JSF 1.2 bridge i noticed that you could use:&lt;br /&gt;request.getPortletSession().setAttribute(&amp;#34;com.ibm.faces.portlet.page.view&amp;#34;, &amp;#34;/MyPage.jsp&amp;#34;); &lt;br /&gt;in the doView method.  &lt;br /&gt;&lt;br /&gt;I wonder if there is a such option for the portletfaces bridge.&lt;br /&gt;&lt;br /&gt;I have a JSF2 portlet running in a Liferay portal via an IBM WAS7 WSRP. The navigation for my portlet should be done trough a portal menu which is dynamically build based on some XML code passed inside my .xhtml pages where I can provide any kind of portlet specific URL like action/render etc. The problem is that once inside in the doView() , processAction() methods triggered by the links I provide I can&amp;#39;t find a way to navigate to the xhtml page I want. I tried to use a PortletRequestDispatcher and include the request, response but it takes me out of the portlet context in to trying to run the portlet as a servlet.  &lt;br /&gt;&lt;br /&gt;Any ideas would be helpful.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;Mihai</summary>
    <dc:creator>PortletFaces Community Member</dc:creator>
    <dc:date>2012-02-01T14:16:58Z</dc:date>
  </entry>
</feed>
