留言板
how to create modal window for hook?
First I'm create file guest.jsp in tomcat-7.0.62/webapps/ROOT/html/portlet/login/
In the any portlet calling modal window.
Empty modal window
In the any portlet calling modal window.
var renderURL = Liferay.PortletURL.createRenderURL();
renderURL.setWindowState("<%=LiferayWindowState.POP_UP.toString()%>");
renderURL.setParameter("jspPage", "/html/portlet/login/guest.jsp");
Liferay.Util.openWindow(
{
dialog: {
height: 460,
width: 770
},
id: '<%= namespace %>signInDialog',
title: '<%= UnicodeLanguageUtil.get(pageContext, "sign-in") %>',
uri: renderURL
}
);
Empty modal window
Sushil Patidar,修改在7 年前。
RE: how to create modal window for hook?
Expert 帖子: 467 加入日期: 11-10-31 最近的帖子
Hi,
Seems problem at following line.
Try it as follows.
Regards
Seems problem at following line.
uri: renderURL
Try it as follows.
uri: renderURL.toString()
Regards
ildar sl,修改在7 年前。
RE: how to create modal window for hook?
Regular Member 帖子: 158 加入日期: 11-12-12 最近的帖子
did not help
Soumyashree Mishra,修改在7 年前。
RE: how to create modal window for hook?
Junior Member 帖子: 32 加入日期: 16-4-18 最近的帖子
Hi,
Is the portlet built on Liferay MVC or Spring MVC framework?
The jspPage param will work only for the liferay MVC framework. Refer below link for more details:
https://web.liferay.com/community/forums/-/message_boards/message/26306996
Is the portlet built on Liferay MVC or Spring MVC framework?
The jspPage param will work only for the liferay MVC framework. Refer below link for more details:
https://web.liferay.com/community/forums/-/message_boards/message/26306996