留言板

Friendly url mapper not working on <aui:form method="get">

thumbnail
Tejas Patel,修改在10 年前。

Friendly url mapper not working on <aui:form method="get">

Junior Member 帖子: 71 加入日期: 12-1-24 最近的帖子
Hello all,
I am developing one project in which my requirement is to use "get" method of form to submit the data to server,
In that the form fields are shown in url, but I would like to show only one or two parameter of form fields.
Is any one know how to achieve this using friendly url mapper.

Right now the genereated url is like this

http://localhost:8080/group/guest/test-friendly-url?
_friendlyurlmapper_WAR_friendlyurlexampleportlet_formDate=1367558682125&
_friendlyurlmapper_WAR_friendlyurlexampleportlet_proejectName=adfs
&_friendlyurlmapper_WAR_friendlyurlexampleportlet_clientName=asdf
&_friendlyurlmapper_WAR_friendlyurlexampleportlet_projectId=10196
&_friendlyurlmapper_WAR_friendlyurlexampleportlet_clientId=11122


and I want this url like under given url,

http://localhost:8080/group/guest/test-friendly-url/-/friendly-url/project/projectId/10196
thumbnail
Bart Simpson,修改在10 年前。

RE: Friendly url mapper not working on <aui:form method="get">

Liferay Master 帖子: 522 加入日期: 11-8-29 最近的帖子
If the rest of the parameters are constant you can set them as implicit variable in your portlet custom friendly-url routes.
How to create friendly url routes check out : http://www.liferay.com/community/wiki/-/wiki/Main/FriendlyURLMapper?_36_pageResourcePrimKey=1073068
thumbnail
Tejas Patel,修改在10 年前。

RE: Friendly url mapper not working on <aui:form method="get">

Junior Member 帖子: 71 加入日期: 12-1-24 最近的帖子
Thanks Bart for your quick reply,
Please give me example if you have.
I am not able to get the result using "get method of form".