Forums de discussion

Friendly-URL for JSF + liferay6.1

thumbnail
shanky karachiwala, modifié il y a 11 années.

Friendly-URL for JSF + liferay6.1

New Member Publications: 3 Date d'inscription: 09/05/12 Publications récentes
Hi
I am trying to implement friendly-URL for my portal.But some how it is not working,Can some body help me with some thing if I m missing with!!
This is my content in xml files.
1. web.xml
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>

2. liferay-portlet.xml
<portlet>
<portlet-name>ThoughtLeader</portlet-name>
<friendly-url-mapper-class>com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper</friendly-url-mapper-class>
<friendly-url-mapping>thoughtleader</friendly-url-mapping>
<friendly-url-routes>thoughtleader-friendly-url-routes.xml</friendly-url-routes>
<instanceable>false</instanceable>
</portlet>
3.thoughtleader-friendly-url-routes.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE routes PUBLIC "-//Liferay//DTD Friendly URL Routes 6.1.0//EN"
"http://www.liferay.com/dtd/liferay-friendly-url-routes_6_1_0.dtd">
<routes>
<route>
<pattern>/Insights37-portlet/docroot/xhtml/thought-leader/add/{programId:\d+}</pattern>
<implicit-parameter name="p_p_lifecycle">0</implicit-parameter>
<implicit-parameter name="xhtmlPage">/xhtml/thoughtleader/addThoughtLeader.xhtml</implicit-parameter>
</route>

<route>
<pattern>/Insights37-portlet/docroot/xhtml/thought-leader/edit/{programId:\d+}</pattern>
<implicit-parameter name="p_p_lifecycle">0</implicit-parameter>
<implicit-parameter name="xhtmlPage">/xhtml/thoughtleader/editThoughtLeader.xhtml</implicit-parameter>
</route>

<route>
<pattern>/Insights37-portlet/docroot/xhtml/thought-leader/view/{programId:\d+}</pattern>
<implicit-parameter name="p_p_lifecycle">0</implicit-parameter>
<implicit-parameter name="xhtmlPage">/xhtml/thoughtleader/portletViewMode.xhtml</implicit-parameter>
</route>
</routes>
The path where this file is placed is directly into my src folder like this
...\tomcat-7.0.23\webapps\******-portlet\WEB-INF\src\thoughtleader-friendly-url-routes.xml

This is needed to be fixed urgently so please any body can help me for this .Thanks !!!!!!!
thumbnail
Neil Griffin, modifié il y a 11 années.

RE: Friendly-URL for JSF + liferay6.1

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
There is an issue with friendly URLs in Liferay Faces Bridge: FACES-257

Also, see related forum post.
thumbnail
shanky karachiwala, modifié il y a 11 années.

RE: Friendly-URL for JSF + liferay6.1

New Member Publications: 3 Date d'inscription: 09/05/12 Publications récentes
Thanks for the reply.
Do we have any alternative to it. If you can suggest. To seek the target as close as possible.
thumbnail
Neil Griffin, modifié il y a 11 années.

RE: Friendly-URL for JSF + liferay6.1

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
The fix for supporting Liferay Friendly URLs has been committed to Git and backported to all branches. See FACES-257 for more info. Prior to the official release, you can try SNAPSHOT versions of the Liferay Faces JAR artifacts from the snapshot repository.