留言板
RenderURL is not Working at PopUp
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
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
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
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
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
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