留言板

Crear Dynamic Web Project Portlet con Velocity

thumbnail
Aldo de Feo Martínez,修改在15 年前。

Crear Dynamic Web Project Portlet con Velocity

New Member 帖子: 17 加入日期: 09-2-20 最近的帖子
Hola,
Estoy encantado de entrar en esta gran comunidad.
Tengo una duda existencial, y mi petición es recaudar la mayor información relacionada con duda.
Mi duda se parece a la de este señor:


Trying to create a velocity portlet
12/16/08 1:42 PM
Hi All,

I have been trying to create a velocity portlet, but without success. All I have done is create a portlet with the create.bat command and then instead of the view.jsp file, I am calling in a view.vm file. This file has the following code in it:

#set( $name = "Tom" ) Hello $name

However, all that gets printed on the screen is that exact line [#set( $name = "Tom" ) Hello $name], instead of Hello Tom.

I am guessing that I need to import something to make Liferay interpret my velocity code, but I have no idea what that is. I also tried looking at the "Hello_Velocity" portlet, but that didn't help any.

Any help would be greatly appreciated.

Thanks.


Si alguien me puede decir, en 4 pasos como se realizar un porlet, que al llamar al view.vm, me ejecute el codigo Velocity que este tiene dentro, ya estaré contento.

Gracias por adelantado.

PD: Yo uso Eclipse, y tengo montado el EXT y el portal corriendo, como los tutoriales que hay en el Wiki de Liferay.
thumbnail
Alberto Montero,修改在15 年前。

RE: Crear Dynamic Web Project Portlet con Velocity

Expert 帖子: 357 加入日期: 08-1-13 最近的帖子
Hola Adolfo.

En Liferay hay un portlet de ejemplo de velocity. Puedes echarle un vistazo a la clase VelocityPortlet.java .

Un saludo
Alberto Montero
Liferay España
thumbnail
Apoorva Prakash,修改在12 年前。

RE: Crear Dynamic Web Project Portlet con Velocity

Liferay Master 帖子: 658 加入日期: 10-6-15 最近的帖子
Aldo de Feo Martínez:
Hola,
Estoy encantado de entrar en esta gran comunidad.
Tengo una duda existencial, y mi petición es recaudar la mayor información relacionada con duda.
Mi duda se parece a la de este señor:


Trying to create a velocity portlet
12/16/08 1:42 PM
Hi All,

I have been trying to create a velocity portlet, but without success. All I have done is create a portlet with the create.bat command and then instead of the view.jsp file, I am calling in a view.vm file. This file has the following code in it:

#set( $name = "Tom" ) Hello $name

However, all that gets printed on the screen is that exact line [#set( $name = "Tom" ) Hello $name], instead of Hello Tom.

I am guessing that I need to import something to make Liferay interpret my velocity code, but I have no idea what that is. I also tried looking at the "Hello_Velocity" portlet, but that didn't help any.

Any help would be greatly appreciated.

Thanks.


Si alguien me puede decir, en 4 pasos como se realizar un porlet, que al llamar al view.vm, me ejecute el codigo Velocity que este tiene dentro, ya estaré contento.

Gracias por adelantado.

PD: Yo uso Eclipse, y tengo montado el EXT y el portal corriendo, como los tutoriales que hay en el Wiki de Liferay.


Hi all,
I hope this link can help you in this regard...

Thanks and regards...
Apoorva Prakash