Foros de discusión
Friendly URL Mapping in JSF Portlet
Ahmad Heba Tul Baseet, modificado hace 12 años.
Friendly URL Mapping in JSF Portlet
Junior Member Mensajes: 71 Fecha de incorporación: 12/05/11 Mensajes recientes
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.
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>
David H Nebinger, modificado hace 12 años.
RE: Friendly URL Mapping in JSF Portlet
Liferay Legend Mensajes: 14917 Fecha de incorporación: 2/09/06 Mensajes recientes
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?
Ahmad Heba Tul Baseet, modificado hace 12 años.
RE: Friendly URL Mapping in JSF Portlet
Junior Member Mensajes: 71 Fecha de incorporación: 12/05/11 Mensajes recientes
sorry .. What do u mean exactly.. I can't understand. Which extension do you mean?
Leo PRATLONG, modificado hace 12 años.
RE: Friendly URL Mapping in JSF Portlet
Expert Mensajes: 363 Fecha de incorporación: 6/07/10 Mensajes recientes
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>
Ahmad Heba Tul Baseet, modificado hace 12 años.
RE: Friendly URL Mapping in JSF Portlet
Junior Member Mensajes: 71 Fecha de incorporación: 12/05/11 Mensajes recientes
no
archana thakur, modificado hace 11 años.
RE: Friendly URL Mapping in JSF Portlet
Junior Member Mensajes: 27 Fecha de incorporación: 13/03/12 Mensajes recientes
can you help me to implement friendly url in jsf primeface portlet?
Neil Griffin, modificado hace 11 años.
RE: Friendly URL Mapping in JSF Portlet
Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
There is a bug in Liferay Faces that might interfere with the ability to use Liferay friendly URLs. For more info, see: FACES-257