Forums

Home » Liferay Portal » Español » 3. Desarrollo

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Aldo de Feo Martínez
Crear Dynamic Web Project Portlet con Velocity
February 25, 2009 3:13 AM
Answer

Aldo de Feo Martínez

Rank: New Member

Posts: 17

Join Date: February 20, 2009

Recent Posts

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.
Alberto Montero
RE: Crear Dynamic Web Project Portlet con Velocity
February 26, 2009 6:38 AM
Answer

Alberto Montero

LIFERAY STAFF

Rank: Expert

Posts: 357

Join Date: January 13, 2008

Recent Posts

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
Apoorva Prakash
RE: Crear Dynamic Web Project Portlet con Velocity
April 3, 2012 12:08 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

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