Saturday, February 25, 2017

Resource URL in Instantiable portlet

When ever we are using the Resource URL in Instantiable portlet, we face an issue that the parameters of  resource URL will be overrided that means last loaded portlet parameters will be overrides in all the portlets (Instantiable portlets)  to avoid this issue the below code will be help full for you.

Code :-

<portlet:resourceURL id="loadValues" var="myReourceURL" cacheability="cacheLevelPortlet" />

Below are the parameter for cacheability :-

FULL – The resource URL does not need to contain the current state of the page or the current render parameters, portlet mode, or window state of the portlet. Thus the portlet should not access the portlet mode, window state, or render parameters in the serveResource call.URLs of the type FULL have the highest cacheability in the browser as they do not depend on any state of the portlet or page.

PORTLET – The serveResource call triggered by a PORTLET resource URL does have access to the portlet state consisting of the render parameters, portlet mode and window state.URLs of the type PORTLET are cacheable on the portlet level in the browser and can be served from the browser cache for as long as the state of this portlet does not change

PAGE – The resource URL may contain artifacts that require knowledge of the state of the complete page, like PortletURLs, or resource URLs of type PAGE. The markup returned by such a resource URL may contain any portlet URL. Resource URLs of the type PAGE are only cacheable on the page level and can only be served from the browser cache as long as no state on the page changes.

Liferay DXP JNDI Data Source Cofiguration

 This Blog will help us to learn about the JNDI Data Source Configuration in Liferay DXP. We have tested this with Liferay 7.3 with Tomcat. ...