You might have seen below error message in your browser console while including any of the Liferay page url in iframe. Refused to display 'liferay-url' in a frame because it set 'X-Frame-Options' to 'sameorigin'. Liferay does not allow access to any of its url using iframe if the request is coming f...
Posted on 14 June 2017 | 12:34 am
Read postIn case if you are using portlet.properties file in Osgi module then using below snippet you can read property specified in portlet.properties file. private static final Configuration _configuration = ConfigurationFactoryUtil .getConfiguration(ReportUtil.class.getClassLoader(), "portlet"); String fr...
Posted on 5 March 2017 | 3:39 am
Read postAs you know development approach has been completely changed with Liferay DXP. In older version of Liferay it was easy to include static resource like CSS , JS and Images as part of portlet but with Liferay DXP you have to do few additional changes to include them. First of all you need to add webco...
Posted on 5 March 2017 | 3:31 am
Read post