A Soy portlet is an extension of Liferay’s MVC portlet framework. This gives you access to all the MVC Portlet functionality you are familiar with, plus the added bonus of using Soy templates for writing your front-end. Soy templates use an easy templating language that also lets you use MetalJS components. With all these benefits and more, Soy portlets can be a good front-end tool to have in your utility belt.

You can learn about Liferay MVC portlets in the Creating an MVC Portlet tutorial.

This section covers how to implement a Soy portlet.

Creating a Soy Portlet

To create a Soy portlet, you’ll need these key components: A module that publishes a portlet component with the necessary properties Controller code to handle the request and response Soy templates...

Leer más

The State Object

MetalJS’s component class, which your view component extends, extends MetalJS’s state class. The state class provides a STATE object that contains state properties, as well as watches these...

Leer más
0 (0 Votos)
MVC Resource Command Anterior