如何从我自己的portlet调用Liferay日历portlet [英] How to call a Liferay calendar portlet from my own portlet

查看:178
本文介绍了如何从我自己的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.com/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="http://localhost:8080/html/js/liferay/widget.js" type="text/javascript"></script>
<script type="text/javascript">
Liferay.Widget({ url: 'http://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="http://liferay.com/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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