<portlet:renderURL var="reportURL">
<portlet:param name="jspPage" value="/htmlreport/report.html" />
</portlet:renderURL>
above is my render portlet url .my question is how can i change the value=”/htmlreport/report.html” dynamically?
is there any way to do it?
createRenderURL() { alert("hiiii"); AUI().ready('liferay-portlet-url', function(A) { alert("hiiii"); var renderURL = Liferay.PortletURL.createRenderURL(); renderURL .setParameter("jspPage","/htmlreport/report.html"); renderURL .setPortletId("eMenuAdvertise_WAR_eMenuAdvertiseportlet"); alert(renderURL.toString()); $("#mydiv").load(renderURL.toString()); alert(""); }); }
you could generate the renderUrl using liferay javascript functions, like this: