1

For e.g. If i am in the page: https://qa-some-server.net/miportal/group/pmas/my-business/accounts/holdings?categoryLevel=3

from one of the jsf portlet, if a link is clicked, it navigates to page a like below with parameters containing namespace :

https: //qa-some-server.net/miportal/group/pmas/my-business/accounts/holdings?_CustodianHoldings_WAR_pmasreportsportlet_categoryLevel=3

_CustodianHoldings_WAR_pmasreportsportlet_ - name space prepends to parameter name categoryLevel

But what i want is - https://qa-some-server.net/miportal/group/pmas/my-business/accounts/holdings?categoryLevel=2

How to hack and get this behaviour ?? ... (Please no alternate approaches. For my application design, this is the only way.) Please let me know if this url parameters can be modified through any means. I tried friendly url mapping, no luck. may be i did wrong. or can this be altered using liferay hook or ext plugin ?? if so pls give me some inputs, so that i can give it a try.

4

1 回答 1

0

您可以尝试按以下方式设置此参数 categoryLevel=3 并检查吗?

String yourRenderURL = yourRenderURL.toString();
HttpUtil.setParameter(yourRenderURL, categoryLevel, 3);

希望这有帮助!

于 2013-10-11T04:58:14.603 回答