Combination View Flat View Tree View
Threads [ Previous | Next ]
josmar javier Alarcon Bothia
of MVC liferay to JSF Liferay 6.2
September 27, 2017 12:17 PM

josmar javier Alarcon Bothia

Rank: New Member

Posts: 6

Join Date: February 11, 2013

Recent Posts

Greetings, I am looking for problems to understand the JSF strategy of liferay, I have come to handle the Liferay MVC, all the events of the life cycles (serverResource, doview, etc.) were the ones that used for each one the necessary operations in the portlet states, in JSF I use a @ManageBean which is the manager of the calls portlet request but I am not clear if in the JSF portlets also can use the MVCPORTLET extensions classes or handle another type, would appreciate any help for understand more of this topic since the words have been seen in a single resource.

Thanks in advance
Kyle Joseph Stiemann
RE: of MVC liferay to JSF Liferay 6.2
September 27, 2017 12:56 PM

Kyle Joseph Stiemann


Rank: Liferay Master

Posts: 606

Join Date: January 14, 2013

Recent Posts

Hi Josmar,
Rather than using the Liferay MVCPortlet, JSF portlets use GenericFacesPortlet which extends from GenericPortlet. When using JSF in portlets you can extend GenericFacesPortlet and override the functionality of certain methods (such as serveResource()) if necessary. For example, our JSF Showcase Portlet overrides processAction() and doView() to provide a demo of portlet:actionURL:

It's probably better or easier to use JSF functionality to accomplish your goal unless it requires using GenericPortlet functionality directly. We won't be able to tell though unless we know more about your use case, so feel free to add that information.

If you want to learn more about how the Liferay Faces Bridge works with JSF in portlets, I recommend reading the Understanding the Liferay Faces Bridge docs.

- Kyle

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!