Category: Liferay Development

Easy way to create Liferay maven service builder

Service builder is one of the most useful tool provided by Liferay to generate service and persistence layer. It generate all boilerplate code automatically Starting from version 6.2 liferay supports creating plugin with Maven. Creating service builder with maven is not identical with how it was created with ANT. However it’s not that difficult though.…

create resource URL programmatically in Portlet class and JSP

Liferay provides PortletURLFactoryUtil class to create resource URL programmatically (Java API). You can call serveResource method by such resource URL of same portlet or different portlet kept on different page Liferay provides facility to create resource URL programatically through Java API. This is useful when you want to make a call to serveResource method of…

Create maven Spring MVC Portlet in Liferay

Liferay provides various framework to create plugins. Spring MVC is one of the most popular framework to create portlets on Liferay. In this article, I will be showing how to create Maven Spring MVC Portlet in liferay. Newer version of Liferay (6.2 & DXP) supports creating plugins with Maven. Pre-requisite Before starting further, I would recommend…

liferay maven plugin – Liferay MVC Portlet with Maven

Liferay supports maven to create various liferay maven plugin like portlets, hook, theme, layout and web plugins. Till version 6.1, ANT was the only way to build the portlet in Liferay out of the box. Starting with Liferay 6.2, Liferay starts providing support for Maven to build various liferay maven plugin. This is also reflected…

Resource URL by liferay-portlet:resourceURL Tag

liferay-portlet:resourceURL is a custom tag provided by Liferay to create resource URL in Portlet JSP liferay-portlet:resourceURL tag is used to create resource URL. It works similar to portlet:resourceURL but provides some extra feature. For example, if you wish to call resource URL of other portlet which is placed on different liferay page then you can use this tag.…

Resource URL by portlet tag portlet:resourceURL

portlet:resourceURL is one of the custom tag provided by default portlet implementation (resides in portlet.jar).This tag is used to create resource URL in portlet JSP. In this article, I will be showing you how to create resource URL by portlet tag. Sun provides implementation of portlet API which resides in portlet.jar file. This jar file contains…

Portlet serve resource phase / Lifecycle

Portlet can send dynamic content to client in serve resource phase. Portlets are used to generate aggregate response. Each portlet will generate small part of whole page. So far we seen, render phase is used to generate the content of portlet. Render and action are two phases originally defined by portlet specification 1.0 (JSR-168). But…