Message Boards

Liferay 7.3 - Portlet preferences not available and Publish button resets i

Michal Kormos, modified 3 Years ago.

Liferay 7.3 - Portlet preferences not available and Publish button resets i

New Member Post: 1 Join Date: 2/5/21 Recent Posts

Hello

I'm trying to migrate a JSF portlet from Liferay 6.2 to Liferay CE 7.3 (I need to reuse existing legacy JSF code). I tried to deploy the portlet on the latest Liferay CE 7.3 and found out that the portlet Preferences are not available.

I checked the older versions of Liferay and it seems that something has changed between Liferay CE 7.3.1-ga2 and 7.3.2-ga3 versions

  • In 7.3.1-ga2 the portlet works correctly
  • In 7.3.2-ga3 the portlet Preferences are missing and are not saved correctly (they get reset each time a page is edited and published)

Portlet Preferences are accessible in 7.3.1

In 7.3.1, there is the Plus button in the top right corner.

When I add the portlet on the page, I can access the portlet Preferences from the portlet menu.

 

Portlet Preferences are not available in 7.3.2

In 7.3.2 adding of widgets slightly changed. The Plus button was replaced with Edit and Publish buttons.

When I add the portlet on the page, I cannot access the portlet Preferences anymore in the menu.

 

Preferences in PrimeFaces Demo portlet are not saved correctly

Then, I downloaded and deployed an official demo portlet "PrimeFaces Applicant Portlet" from https://mvnrepository.com/artifact/com.liferay.faces.demo/com.liferay.faces.demo.primefaces.applicant.portlet/4.2.0 and deployed WAR on Liferay.

There is Edit button in the top right corner of the Portlet which seems to replace the missing Preferences menu.

 

The problem is that it does not work with the new Edit/Publish concept introduced in 7.3.2 (although it worked in 7.3.1).

I performed the following steps (I've recorded a video and uploaded it here for you to have a better picture)

  • Navigate to the portlet preferences screen

  • Edit and save the preferences

  • I can see that the preferences are saved

  • Click Edit button

  • Click Publish button

  • The portlet preferences are reset to default values (However, I did not do anything special in "Edit" mode, just clicked "Publish" immediately.

Is it a bug or am I missing something?