Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Dipanjan Das
what is the best Approach to build a JSF 2.0 portlet ?
4 dicembre 2012 3.10
Risposta

Dipanjan Das

Punteggio: Junior Member

Messaggi: 30

Data di Iscrizione: 28 settembre 2012

Messaggi recenti

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 dicembre 2012 14.19
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2369

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

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 dicembre 2012 1.27
Risposta

Dipanjan Das

Punteggio: Junior Member

Messaggi: 30

Data di Iscrizione: 28 settembre 2012

Messaggi recenti

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 dicembre 2012 9.57
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2369

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

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 dicembre 2012 5.48
Risposta

Dipanjan Das

Punteggio: Junior Member

Messaggi: 30

Data di Iscrizione: 28 settembre 2012

Messaggi recenti

Thanks lot Neil for your help.