Foros de discusión

how to create modal window for hook?

ildar sl, modificado hace 7 años.

how to create modal window for hook?

Regular Member Mensajes: 158 Fecha de incorporación: 12/12/11 Mensajes recientes
First I'm create file guest.jsp in tomcat-7.0.62/webapps/ROOT/html/portlet/login/
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 emoticon
thumbnail
Sushil Patidar, modificado hace 7 años.

RE: how to create modal window for hook?

Expert Mensajes: 467 Fecha de incorporación: 31/10/11 Mensajes recientes
Hi,

Seems problem at following line.
uri: renderURL


Try it as follows.
uri: renderURL.toString()


Regards
ildar sl, modificado hace 7 años.

RE: how to create modal window for hook?

Regular Member Mensajes: 158 Fecha de incorporación: 12/12/11 Mensajes recientes
did not help
Soumyashree Mishra, modificado hace 7 años.

RE: how to create modal window for hook?

Junior Member Mensajes: 32 Fecha de incorporación: 18/04/16 Mensajes recientes
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