Fórumok

Friendly URL Mapping in JSF Portlet

thumbnail
Ahmad Heba Tul Baseet, módosítva 12 év-val korábban

Friendly URL Mapping in JSF Portlet

Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2011.05.12. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Friendly URL Mapping in JSF Portlet

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Friendly URL Mapping in JSF Portlet

Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2011.05.12. Legújabb bejegyzések
sorry .. What do u mean exactly.. I can't understand. Which extension do you mean?
thumbnail
Leo PRATLONG, módosítva 12 év-val korábban

RE: Friendly URL Mapping in JSF Portlet

Expert Bejegyzések: 363 Csatlakozás dátuma: 2010.07.06. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Friendly URL Mapping in JSF Portlet

Junior Member Bejegyzések: 71 Csatlakozás dátuma: 2011.05.12. Legújabb bejegyzések
no
thumbnail
archana thakur, módosítva 11 év-val korábban

RE: Friendly URL Mapping in JSF Portlet

Junior Member Bejegyzések: 27 Csatlakozás dátuma: 2012.03.13. Legújabb bejegyzések
can you help me to implement friendly url in jsf primeface portlet?
thumbnail
Neil Griffin, módosítva 11 év-val korábban

RE: Friendly URL Mapping in JSF Portlet

Liferay Legend Bejegyzések: 2655 Csatlakozás dátuma: 2005.07.27. Legújabb bejegyzések
There is a bug in Liferay Faces that might interfere with the ability to use Liferay friendly URLs. For more info, see: FACES-257