O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Why is Velocity for Liferay?

Velocity is the default engine for templates in Liferay. Why is this so?

Hot-deployable themes are themes that you deploy at runtime. The themes that you deploy from Eclipse in Plugins SDK are hot-deployable themes. These themes are deployed as a Web Application Archive (WAR) file, such as store-theme-${VERSION}.war, which has a .war extension. Such themes must use Velocity templates because they cannot access Liferay's classes.

Liferay placed its Java Archive (JAR) files in the shared class loader until Version 4.0.0. The intention was to allow all the applications in Liferay to use Liferay's classes because they were in the shared class directory. At that time, both JSP and Velocity templates were supported for themes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required