Foren

Add config page to JSF2 portlet with portletfaces-bridge in Liferay?

thumbnail
Eric Chow, geändert vor 12 Jahren.

Add config page to JSF2 portlet with portletfaces-bridge in Liferay?

Junior Member Beiträge: 79 Beitrittsdatum: 25.02.05 Neueste Beiträge
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
thumbnail
Neil Griffin, geändert vor 12 Jahren.

RE: Add config page to JSF2 portlet with portletfaces-bridge in Liferay?

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: Add config page to JSF2 portlet with portletfaces-bridge in Liferay?

Junior Member Beiträge: 33 Beitrittsdatum: 19.05.10 Neueste Beiträge
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.
thumbnail
Neil Griffin, geändert vor 11 Jahren.

RE: Add config page to JSF2 portlet with portletfaces-bridge in Liferay?

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
That should be possible to implement. For now, I've created FACES-1437 in order to capture the requirements.