Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Eric Chow
Add config page to JSF2 portlet with portletfaces-bridge in Liferay?
June 30, 2011 9:35 PM
Answer

Eric Chow

Rank: Junior Member

Posts: 79

Join Date: February 24, 2005

Recent Posts

Hello,

How can I add a config page to my portlet that read/write some preference values?

Would you please to teach me how can I do this in JSF2 portlet by using portletfaces-bridge in Liferay?


Best regards,
Eric
Neil Griffin
RE: Add config page to JSF2 portlet with portletfaces-bridge in Liferay?
July 1, 2011 7:31 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2378

Join Date: July 26, 2005

Recent Posts

I think the question you are asking is answered by using portlet EDIT mode. The example JSF2 portlet provides an example of how to do this. You can download a binary WAR as well as the source code from here: http://www.liferay.com/community/liferay-projects/liferay-faces/demos#jsf2-portlet

If you want to checkout the source from the source repository, you can get it from here: https://github.com/liferay/liferay-faces/blob/master/demos/bridge/jsf2-portlet/tags/1.0.0/

There are two ways to get to EDIT mode:
1) The main view provides an "Edit Preferences" button
2) When deployed within Liferay, the theme provides a preferences icon (looks like a paper with pencil) under the wrench icon in the upper right hand corner

Note that in order to get EDIT mode to work, you have to specify that the portlet supports EDIT mode in the WEB-INF/portlet.xml file.
Kirk Stork
RE: Add config page to JSF2 portlet with portletfaces-bridge in Liferay?
October 2, 2012 8:19 AM
Answer

Kirk Stork

Rank: Junior Member

Posts: 29

Join Date: May 19, 2010

Recent Posts

How about for Liferay's configure mode?

http://www.liferay.com/community/wiki/-/wiki/tag/configuration+action/maximized

explains how to do it with JSP, but it would be nice to avoid JSP in JSF portlets.
Neil Griffin
RE: Add config page to JSF2 portlet with portletfaces-bridge in Liferay?
October 5, 2012 9:08 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2378

Join Date: July 26, 2005

Recent Posts

That should be possible to implement. For now, I've created FACES-1437 in order to capture the requirements.