从其他Portlet打开Portlet

从其他Portlet打开Portlet

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

问题描述

限时删除!!

是否可以从一个包含其他Portlet的Portlet打开弹出窗口?

Is it possible to open pop up window from one portlet, that contains some other portlet ?

 <portlet:renderURL var="kategorijaSelectorURL" windowState="<%= LiferayWindowState.POP_UP.toString() %>">
       <portlet:param name="mvcPath" value="/html/kategorija/view.jsp" />
       <portlet:param name="struts_action" value="/html/kategorija/view.jsp" />
       <portlet:param name="tabs1" value="kategorije" />
       <portlet:param name="redirect" value="<%=redirect1 %>" />
 </portlet:renderURL>

推荐答案

是的.

var url;
function createRenderURL(portletId) {
    AUI().ready('liferay-portlet-url', function(A) {
        var renderURL = Liferay.PortletURL.createRenderURL();
        renderURL.setName("test");
        renderURL.setWindowState("pop_up");
        renderURL.setPortletId(portletId);
        url = renderURL.toString();
    });
}

您可以在下面的链接中查看更多详细信息在弹出式Liferay中显示portlet

You can check below link for more deatailsDisplay portlet in pop-up Liferay

想法是,创建要在弹出窗口中调用的portlet的URL,并将窗口状态设置为LiferayWindowState.POP_UP.toString()

The idea is, create a URL of portlet which you want to invoke in popup and set window state to LiferayWindowState.POP_UP.toString()

更新:

 AUI().use('aui-dialog', 'aui-io', 'event', 'event-custom', function(A) {
             dialog = new A.Dialog({
                    title: 'Title',
                    centered: true,
                    draggable: true,
                    resizable: false,
                    width: '980px',
                    height: '700px',
                    modal: true,
               destroyOnClose: true
                }).plug(A.Plugin.IO, {uri: '<%=urUrl%>'}).render();

                dialog.show();

          });

这篇关于从其他Portlet打开Portlet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 00:31