Fórum

Friendly URL Mapping in JSF Portlet

thumbnail
Ahmad Heba Tul Baseet, modificado 12 Anos atrás.

Friendly URL Mapping in JSF Portlet

Junior Member Postagens: 71 Data de Entrada: 12/05/11 Postagens Recentes
Hi there,
I created a Portlet in JSF 2. Now I want to use the Friendly Mapping for the Portlet. I followed what written in http://www.liferay.com/de/documentation/liferay-portal/6.0/development/-/ai/optional%3A-adding-friendly-url-mapping-to-the-portlet, but still its not working. may be its because the generated parameter. Instead of jspPage, I wrote xhtml. Is that correct? Thanks.

<route>
        <pattern>/index.xhtml</pattern>
        <generated-parameter name="xhtmlPage">/index.xhtml</generated-parameter>
    </route> 
thumbnail
David H Nebinger, modificado 12 Anos atrás.

RE: Friendly URL Mapping in JSF Portlet

Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Normally for jsf, the extension is ".faces" (or whatever is defined in your web.xml file), even though the actual extension is .xhtml. Have you tried that?
thumbnail
Ahmad Heba Tul Baseet, modificado 12 Anos atrás.

RE: Friendly URL Mapping in JSF Portlet

Junior Member Postagens: 71 Data de Entrada: 12/05/11 Postagens Recentes
sorry .. What do u mean exactly.. I can't understand. Which extension do you mean?
thumbnail
Leo PRATLONG, modificado 12 Anos atrás.

RE: Friendly URL Mapping in JSF Portlet

Expert Postagens: 363 Data de Entrada: 06/07/10 Postagens Recentes
Do you have this statement in your web.xml ?

<context-param>
        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
        <param-value>.xhtml</param-value>
    </context-param>
thumbnail
Ahmad Heba Tul Baseet, modificado 12 Anos atrás.

RE: Friendly URL Mapping in JSF Portlet

Junior Member Postagens: 71 Data de Entrada: 12/05/11 Postagens Recentes
no
thumbnail
archana thakur, modificado 11 Anos atrás.

RE: Friendly URL Mapping in JSF Portlet

Junior Member Postagens: 27 Data de Entrada: 13/03/12 Postagens Recentes
can you help me to implement friendly url in jsf primeface portlet?
thumbnail
Neil Griffin, modificado 11 Anos atrás.

RE: Friendly URL Mapping in JSF Portlet

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
There is a bug in Liferay Faces that might interfere with the ability to use Liferay friendly URLs. For more info, see: FACES-257