Si creamos un servicio en un portlet y necesitamos invocar a sus métodos desde una plantilla de Velocity, podemos utilizar lo siguiente:
#set ($customPortletLocalService = $serviceLocator.findService("custom-portlet", "com.liferay.custom.service.CustomPortletLocalService"))
Parámetros:
[bra_list style=’arrow-list’]
- Contexto del portlet
- Clase del servicio a invocar
[/bra_list]
Nada más por hoy, otro día más y mejor!