Foros de discusión

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

thumbnail
Eric Chow, modificado hace 12 años.

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

Junior Member Mensajes: 79 Fecha de incorporación: 25/02/05 Mensajes recientes
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, modificado hace 12 años.

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

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
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, modificado hace 11 años.

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

Junior Member Mensajes: 33 Fecha de incorporación: 19/05/10 Mensajes recientes
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, modificado hace 11 años.

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

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
That should be possible to implement. For now, I've created FACES-1437 in order to capture the requirements.