留言板

RenderURL is not Working at PopUp

Razaq S,修改在10 年前。

RenderURL is not Working at PopUp

Junior Member 帖子: 33 加入日期: 12-3-1 最近的帖子
Hi All,

I am using the search container in liferay EE 6.2.

Tag:
<liferay-ui:search-container-column-text name="Subject" property="messageSubject" href="javascript: showApprovePopup('<%=approveRequestURL%>');" cssClass="messageSubject" />

In above tag I am calling the java script function showApprovePopup('<%=approveRequestURL%>');, the javascript function will be given below

window.showApprovePopup = function (url)
{
var A = AUI();
var dialog = new A.Dialog({
title: 'New Message',
centered: true,
modal: true,
width: 700,
height: 425
}).plug(A.Plugin.IO, {
uri: url
}).render();
};


Here the issues the renderUrl is not working here when I pass from liferay search container javascript method.

For normal jsp tags its working fine.

the value inside javascript in not getting exact value with http...................\\\

Then how I can pass the render url in serach container text tag.

Thanks,
Razaq. s
thumbnail
Ahmed Hasan,修改在10 年前。

RE: RenderURL is not Working at PopUp

Expert 帖子: 306 加入日期: 07-4-13 最近的帖子
Dear Mr.Razaq,

I have covered this aspect quite well in my FREE eBook on Liferay Portlet Development. You can download a copy of the book and refer to chapters 4 and 5 to get the correct implementation for getting the popup.

Yours truly,
Ahamed Hasan
Author, Liferay Portlet Cookbook
Razaq S,修改在10 年前。

RE: RenderURL is not Working at PopUp

Junior Member 帖子: 33 加入日期: 12-3-1 最近的帖子
Hi All,
Now its working Fine

I changed the liferay search container tag.

<liferay-ui:search-container-column-text name="Subject" cssClass="messageSubject">
<a href="javascript: showApprovePopup('<%=approveRequestURL.toString()%>');"><%= myMsg.getMessageSubject() %></a>
</liferay-ui:search-container-column-text>


Thanks All