Foros de discusión

what is the best Approach to build a JSF 2.0 portlet ?

Mac D, modificado hace 11 años.

what is the best Approach to build a JSF 2.0 portlet ?

Junior Member Mensajes: 30 Fecha de incorporación: 29/09/12 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 ?
thumbnail
Neil Griffin, modificado hace 11 años.

RE: what is the best Approach to build a JSF 2.0 portlet ?

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 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.
Mac D, modificado hace 11 años.

RE: what is the best Approach to build a JSF 2.0 portlet ?

Junior Member Mensajes: 30 Fecha de incorporación: 29/09/12 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?
thumbnail
Neil Griffin, modificado hace 11 años.

RE: what is the best Approach to build a JSF 2.0 portlet ?

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 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).
Mac D, modificado hace 11 años.

RE: what is the best Approach to build a JSF 2.0 portlet ?

Junior Member Mensajes: 30 Fecha de incorporación: 29/09/12 Mensajes recientes
Thanks lot Neil for your help.