Blog Tag Search

Entries tagged [liferay]

...

Tables in Liferay Application Display Templates (ADT)

In one of my previous articles AlloyUI tables in Liferay Application Display Templates (ADT) I wrote about table creation in Liferay ADT using AlloyUI. In this article I’ll demonstrate how to do it via liferay-ui (http://liferay.com/tld/ui) and liferay-portlet (http://java.sun.com/portlet) tag libraries (tlds). The usage of tag libraries instead of AlloyUI javascript library gives a more elegant way to define tables.

Read More

Comments (0)

Tags: liferay

...

New taglib (tld) in Liferay Portlet

Sometimes in Liferay there is a necessity to implement your own jsp taglib (tld) for some portlets. At first sight this issue might seem trivial (just to follow a standard jsp tag library development process), in Liferay context it becomes not so easy. By default all Liferay jsp tags extend Liferay TagSupport class which keeps servletContext variable. The thing here is that this servletContext is a context of ROOT application. This means that all resources required for new taglib will be searched at ROOT application directory of your application container. Yes, we can store all needed resources at ROOT app, but this is a bad practice while Liferay core (ROOT app) should be always separate from customizations. In this article there is an approach and an example to overcome this issue.

Read More

Comments (0)

Tags: liferay

...

Build a Liferay portlet war via Maven

Most posts on the internet regarding "How to build a war file of Liferay portlet" topic, cover only Ant tool. I find Maven as a next-gen project build tool and in this post I'll show how to use it to build Liferay portlet war.

Read More

Comments (4)

Tags: liferay maven

...

AlloyUI tables in Liferay Application Display Templates (ADT)

The application display template (ADT) framework allows portal administrators to change portlet’s GUI by means of freemarker/velocity template engine on-the-fly, without portlet restart. Template engine can use standard liferay AlloyUI taglib (http://liferay.com/tld/aui) to define visual representation. That is great for sure, but current taglib does not include all often used user components. For example, there is no support of tables. In this article I’ll show how to define a table in Freemarker template using AlloyUI library and put it to portlet.

Read More

Comments (0)

Tags: alloyui liferay