Category: Liferay Development

action URL By Java Script (AUI module – Liferay.PortletURL)

Liferay.PortletURL.createActionURL will be used in liferay to create action URL in Javascript. liferay-portlet-url module of AUI (a JavaScript framework) provides Liferay.PortletURL object which is used to create action URL in Javascript. Liferay provides nice way (by Liferay.PortletURL.createActionURL) to create action URL in Javascript. Liferay (till liferay 6.2 version) ships with Java script framework called AUI (Alloy UI – http://alloyui.com). AUI…

create action URL By Liferay tag (liferay-portlet:actionURL) in JSP

liferay-portlet:actionURL is a custom tag provided by Liferay. This tag is used to create action URL. liferay-portlet:actionURL is one of the very useful tag provided by Liferay. In this article, I will be showing how this tag is used to create actionURL in JSP. Action URL created by this tag works similarly as action URL created by PortletURLFactoryUtil class Let’s see…

create action URL programatically in Portlet class and JSP

Liferay provides PortletURLFactoryUtil class to create action URL programatically (Java API). Such action URL can point to different portelt which is placed on either same or different page. Liferay provides facility to create action URL programatically through Java API. This is useful when you want to make a call to action method of portlet B from portlet A. action url can be…

Portlet Action method invocation in Liferay

Portlet action method executes action phase of portlet. It’s not required to override any method to define action method in portlet. Portlet action method is called by its super class (LiferayPortlet) through reflection. actionURL(in JSP) is used to call portlet action method. You can define multiple action methods in portlet. One actionURL can point only one portlet action method. To call…

create action URL by Portlet Tag (portlet:actionURL) in JSP

actionURL is used to call portlet’s action method. portlet:actionURL tag is a custom tag provided by default portlet implementation (resides in portlet.jar) to construct actionURL portlet:actionURL tag is used to call portlet action method which represents portlet action phase. In this article, we will see how to write portlet action method, how to call it and and how…

Portlet Action Phase / Lifecycle

portlet action phase is executed in portlet’s action method. It’s called by action URL. During action phase, user will interact with portlet. Portlet action phase is used to perform some action on portlet. Only one portlet on given page can execute action phase at a time. For example if there are 10 portlets on a page, then action phase can…

create render URL By Java Script (AUI module – Liferay.PortletURL)

Liferay provides nice way to create render URL in Javascript. Liferay ships with Java script framework called AUI (Alloy UI – http://alloyui.com). AUI is a modular framework and provides various modules to create components in Java script. In this article, we will see how to create render URL in Javascript. First you need to create LiferayMVC portlet with plugin project name as renderURL-by-JavaScritp and -portlet will be…

create render URL By Liferay tag (liferay-portlet:renderURL) in JSP

liferay-portlet:renderURL is a custom tag provided by Liferay. This tag is used to create render URL. In this article, I will be showing how to create render URL by liferay tag (liferay-portlet:renderURL). This tag works similarly as render URL by PortletURLFactoryUtil class.  First of all, you need to create LiferayMVC portlet. You can refer separate blog on Creating MVC Portlet in Liferay to create project…

create render URL by Portlet Tag (portlet:renderURL) in JSP

portlet:renderURL is one of the custom tag provided by default portlet implementation (resides in portlet.jar).This tag is used to create render URL. In this article, we will see how to create render URL by portlet tag. Sun provides implementation of portlet API in portlet.jar file. This jar file contains classes and interfaces under javax.portlet pacakage. This…