How to navigate from portlet to portlet

自闭症网瘾萝莉.ら 提交于 2019-12-24 08:13:56

问题


My question is how can I go from one portlet to another.

My scenario is this:

The user can view a specific portlet's view.jsp. When he clicks on a button then the page will show the view.jsp of another portlet. Maybe this is called portlet redirection, but I have no idea how to implement this.

Maybe one solution could be different jsp files in the same portlet but I want to navigate through portlets not the jsps.

It would be useful if someone could provide me a sample of code or a reference to a literature that will help me find out how to implement this scenario.


回答1:


Please refer to below link hope it will help

http://www.liferay.com/community/forums/-/message_boards/message/8408006

or else you can create like this.

LiferayPortletURL anotherPortletURL = PortletURLFactoryUtil.create(request,portletName, 
plid, PortletRequest.RENDER_PHASE);


来源:https://stackoverflow.com/questions/21214967/how-to-navigate-from-portlet-to-portlet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!