Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ahmad Heba Tul Baseet
Friendly URL Mapping in JSF Portlet
July 25, 2011 2:02 AM
Answer

Ahmad Heba Tul Baseet

Rank: Junior Member

Posts: 68

Join Date: May 12, 2011

Recent Posts

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.

1<route>
2        <pattern>/index.xhtml</pattern>
3        <generated-parameter name="xhtmlPage">/index.xhtml</generated-parameter>
4    </route>
David H Nebinger
RE: Friendly URL Mapping in JSF Portlet
July 25, 2011 5:39 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 9496

Join Date: September 1, 2006

Recent Posts

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
RE: Friendly URL Mapping in JSF Portlet
July 25, 2011 7:11 AM
Answer

Ahmad Heba Tul Baseet

Rank: Junior Member

Posts: 68

Join Date: May 12, 2011

Recent Posts

sorry .. What do u mean exactly.. I can't understand. Which extension do you mean?
Leo Pratlong
RE: Friendly URL Mapping in JSF Portlet
July 25, 2011 7:47 AM
Answer

Leo Pratlong

Rank: Expert

Posts: 362

Join Date: July 6, 2010

Recent Posts

Do you have this statement in your web.xml ?

1<context-param>
2        <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
3        <param-value>.xhtml</param-value>
4    </context-param>
Ahmad Heba Tul Baseet
RE: Friendly URL Mapping in JSF Portlet
July 25, 2011 9:10 AM
Answer

Ahmad Heba Tul Baseet

Rank: Junior Member

Posts: 68

Join Date: May 12, 2011

Recent Posts

no
archana thakur
RE: Friendly URL Mapping in JSF Portlet
February 16, 2013 9:02 AM
Answer

archana thakur

Rank: New Member

Posts: 21

Join Date: March 12, 2012

Recent Posts

can you help me to implement friendly url in jsf primeface portlet?
Neil Griffin
RE: Friendly URL Mapping in JSF Portlet
February 19, 2013 9:48 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2256

Join Date: July 26, 2005

Recent Posts

There is a bug in Liferay Faces that might interfere with the ability to use Liferay friendly URLs. For more info, see: FACES-257