如何从我自己的portlet调用Liferay日历portlet

编程入门 行业动态 更新时间:2024-10-26 05:25:56
本文介绍了如何从我自己的portlet调用Liferay日历portlet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个要求,我必须从我的portlet调用liferay日历portlet。任何人都可以给我任何想法,如何可以实现? 我这样做我的view.jsp

< script src =http:// localhost:8080 /html/js/liferay/widget.jstype =text / javascript>< / script> < script type =text / javascript> Liferay.Widget({url:'http:// localhost:8080 / widget / web / guest / interview- availibility / - / calendar'}); < / script>

但不能正常工作。

使用

code> liferay-portlet:runtime

<%@ taglib uri =http ://liferay/tld/portletprefix =liferay-portlet%> < liferay-portlet:runtime name =8instance =xxxqueryString =/>

< liferay-portlet:runtime portletName =_ 1_WAR_calendarportlet_/>

使用 liferay-ui:calendar

< liferay-ui:calendar day =year =month =/> ;

参考文献: runtime-portlet liferay-ui

I have a requirement that i have to call the liferay calendar portlet from my portlet.Can anybody give me any idea that how it can be achieved? I am doing this to my view.jsp

<script src="localhost:8080/html/js/liferay/widget.js" type="text/javascript"></script> <script type="text/javascript"> Liferay.Widget({ url: 'localhost:8080/widget/web/guest/interview-availibility/-/calendar'}); </script>

but it is not working .Please somebody help

解决方案

There are two options available for adding a portlet into another portlet.

Using liferay-portlet:runtime

<%@ taglib uri="liferay/tld/portlet" prefix="liferay-portlet" %> <liferay-portlet:runtime name="8" instance="xxx" queryString="" />

OR

<liferay-portlet:runtime portletName="_1_WAR_calendarportlet_" />

Using liferay-ui:calendar

<liferay-ui:calendar day="" year="" month="" />

References: runtime-portlet liferay-ui

更多推荐

如何从我自己的portlet调用Liferay日历portlet

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

发布评论

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

>www.elefans.com

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