掲示板

Friendly URL Mapping in JSF Portlet

thumbnail
12年前 に Ahmad Heba Tul Baseet によって更新されました。

Friendly URL Mapping in JSF Portlet

Junior Member 投稿: 71 参加年月日: 11/05/12 最新の投稿
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
12年前 に David H Nebinger によって更新されました。

RE: Friendly URL Mapping in JSF Portlet

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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
12年前 に Ahmad Heba Tul Baseet によって更新されました。

RE: Friendly URL Mapping in JSF Portlet

Junior Member 投稿: 71 参加年月日: 11/05/12 最新の投稿
sorry .. What do u mean exactly.. I can't understand. Which extension do you mean?
thumbnail
12年前 に Leo PRATLONG によって更新されました。

RE: Friendly URL Mapping in JSF Portlet

Expert 投稿: 363 参加年月日: 10/07/06 最新の投稿
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
12年前 に Ahmad Heba Tul Baseet によって更新されました。

RE: Friendly URL Mapping in JSF Portlet

Junior Member 投稿: 71 参加年月日: 11/05/12 最新の投稿
no
thumbnail
11年前 に archana thakur によって更新されました。

RE: Friendly URL Mapping in JSF Portlet

Junior Member 投稿: 27 参加年月日: 12/03/13 最新の投稿
can you help me to implement friendly url in jsf primeface portlet?
thumbnail
11年前 に Neil Griffin によって更新されました。

RE: Friendly URL Mapping in JSF Portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
There is a bug in Liferay Faces that might interfere with the ability to use Liferay friendly URLs. For more info, see: FACES-257