Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Dipanjan Das
what is the best Approach to build a JSF 2.0 portlet ?
4 de diciembre de 2012 3:10
Respuesta

Dipanjan Das

Ranking: Junior Member

Mensajes: 30

Fecha de incorporación: 28 de septiembre de 2012

Mensajes recientes

1. What are the different approach to build a JSF 2.0 portlet ?
2. What is the best approach among them ?
3. With bridge or without bridge ?
Neil Griffin
RE: what is the best Approach to build a JSF 2.0 portlet ?
6 de diciembre de 2012 14:19
Respuesta

Neil Griffin

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2056

Fecha de incorporación: 26 de julio de 2005

Mensajes recientes

In order to deploy a JSF web application within Liferay Portal, you have two choices:

1) Deploy the web application as a portlet using Liferay Faces Bridge.

2) Use an <iframe> portlet to point to the web application.

There are many benefits to #1 -- First is that the rendered markup is actually part of the portal page, and can be styled by the portal theme. It also has the benefit of participating on the portlet lifecycle, so that you can access things like ThemeDisplay.getUser() in order to programmatically find out the current user. It can also participate in the Liferay security/permission system and invoke Liferay Services.
Dipanjan Das
RE: what is the best Approach to build a JSF 2.0 portlet ?
20 de diciembre de 2012 1:27
Respuesta

Dipanjan Das

Ranking: Junior Member

Mensajes: 30

Fecha de incorporación: 28 de septiembre de 2012

Mensajes recientes

Thanks a lot Neil for your support. Now my question is : If I want to build a new JSF2.0 portlet in Liferay, should I
a) Create a JSF2.0 web application and then transfer it to a portlet by bridge ? (just like a JSF2.0 legacy code transffered in portlet)
OR
b) Create a portlet using JSF and portlet technolgy?
What should be the best approach to build the a new portlet?
Neil Griffin
RE: what is the best Approach to build a JSF 2.0 portlet ?
20 de diciembre de 2012 9:57
Respuesta

Neil Griffin

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 2056

Fecha de incorporación: 26 de julio de 2005

Mensajes recientes

Either approach (a) or (b) is fine I think. The only benefit to (a) that I can think of is that you can use the WAR in either a web application or in a portlet. It might be easier to just do (b).
Dipanjan Das
RE: what is the best Approach to build a JSF 2.0 portlet ?
29 de diciembre de 2012 5:48
Respuesta

Dipanjan Das

Ranking: Junior Member

Mensajes: 30

Fecha de incorporación: 28 de septiembre de 2012

Mensajes recientes

Thanks lot Neil for your help.