如何从portlet导航到portlet [英] How to navigate from portlet to portlet

查看:74
本文介绍了如何从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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆