本文介绍了如何从portlet导航到portlet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我的问题是如何从一个portlet转到另一个portlet.

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

我的情况是这样的:

用户可以查看特定portlet的view.jsp.当他单击按钮时,页面将显示另一个portlet的view.jsp.也许这叫做Portlet重定向,但是我不知道如何实现.

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.

也许一个解决方案可能是在同一portlet中使用不同的jsp文件,但我想在portlet中导航而不是在jsps中浏览

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.

推荐答案

请参考以下链接,希望会对您有所帮助

Please refer to below link hope it will help

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

否则您可以这样创建.

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

这篇关于如何从portlet导航到portlet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 13:44