RE: Invoking JSF page from a Liferay class ?

3684694, modified 16 Years ago. New Member Posts: 2 Join Date: 7/30/09 Recent Posts
Hi,

I am using Liferay 5.2.2

Invoking a JSP page from Liferay code works fine but Invoking a XHtml page from Liferay code does not work.


What is the way to do it?

For e.g.
public class ActionImpl implements ConfigurationAction {

	  public void processAction(PortletConfig arg0, ActionRequest arg1,
			  ActionResponse arg2) throws Exception {
        	}

	  public String render(PortletConfig arg0, RenderRequest arg1,
			 RenderResponse arg2) throws Exception {

		  return "/pages/some.jsp";         [b] // works fine[/b]
		  return "/pages/some.xhtml";     [b] // does not work ( as the request  does not pass through the FacesServlet )[/b]

	 }


How can I return an .XHtml page from a class that implements Liferay's ConfigurationAction class ?
4420239, modified 16 Years ago. New Member Post: 1 Join Date: 1/6/10 Recent Posts
Hi,

I have quite similar question. Is it possible to integrate JSF with portlet configuration page?

Thanks,
Paweł Zięba
thumbnail
Neil Griffin, modified 6 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
We don't have any examples -- but I would recommend that you use GenericLiferayFacesPortlet instead of GenericFacesPortlet in the <portlet-class> of your portlet.xml descriptor.