Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dipanjan Das
what is the best Approach to build a JSF 2.0 portlet ?
December 4, 2012 3:10 AM
Answer

Dipanjan Das

Rank: Junior Member

Posts: 30

Join Date: September 28, 2012

Recent Posts

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 ?
December 6, 2012 2:19 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2256

Join Date: July 26, 2005

Recent Posts

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 ?
December 20, 2012 1:27 AM
Answer

Dipanjan Das

Rank: Junior Member

Posts: 30

Join Date: September 28, 2012

Recent Posts

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 ?
December 20, 2012 9:57 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2256

Join Date: July 26, 2005

Recent Posts

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 ?
December 29, 2012 5:48 AM
Answer

Dipanjan Das

Rank: Junior Member

Posts: 30

Join Date: September 28, 2012

Recent Posts

Thanks lot Neil for your help.