如何从portlet导航到portlet

编程入门 行业动态 更新时间:2024-10-14 04:30:26
本文介绍了如何从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

www.liferay/community/forums/-/message_boards/message/8408006

否则您可以这样创建.

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

更多推荐

如何从portlet导航到portlet

本文发布于:2023-07-17 02:50:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1128644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:portlet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!