掲示板

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

thumbnail
12年前 に Eric Chow によって更新されました。

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

Junior Member 投稿: 79 参加年月日: 05/02/25 最新の投稿
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
12年前 に Neil Griffin によって更新されました。

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

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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.
11年前 に Kirk Stork によって更新されました。

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

Junior Member 投稿: 33 参加年月日: 10/05/19 最新の投稿
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
11年前 に Neil Griffin によって更新されました。

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

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
That should be possible to implement. For now, I've created FACES-1437 in order to capture the requirements.