RE: Liferay 7.4.1-GA2 ReactJS Portlet configuration could not persisted

Jamie Sammons, modified 4 Years ago. New Member Posts: 8 Join Date: 1/17/20 Recent Posts

Hey guys,

We have some ReactJS portlets which are generated with the 'generator-liferay-js' and our portlets has custom configurations.
In Liferay 7.3.7-GA8 the configurations are saved without any problems in database.
But, in Liferay 7.4.1 the configurations could not be persisted. Existing configurations of a ReactJS Portlet could be loaded.
We use the latest version of the 'generator-liferay-js'. Also we use version '2.26.0' of the 'liferay-npm-bundler' and 'liferay-npm-build-support'.

Is there any migration guide or workaround?

Note: If we generate a new 'testing-like' portlet by the 'generator-liferay-js' with sample code (it contains sample configuration) and deploy this portlet into Liferay 7.4.1, we are not able to save the configuration.

If we try to save the configuration (in Liferays page editor) the configuration modal calls the '/o/dynamic-data-mapping-form-context-provider' endpoint.
Only in the developer tools of the browser we get an error with the message: "TypeError: Cannot read property 'get' of undefined"

If we use a default widget of Liferay like 'IFrame' the configuration could be saved. 

Has anybody an idea?

Best regards

 

thumbnail
David H Nebinger, modified 4 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts

Hi Sascha, sorry to hear about your issue...

I haven't seen this issue myself, but I haven't been using 7.4 yet.

If you haven't already, I'd suggest posting a ticket to https://issues.liferay.com to document the issue.

Jamie Sammons, modified 3 Years ago. New Member Posts: 2 Join Date: 7/3/15 Recent Posts

I second that, the issue is in the file http://localhost:8080/src/main/resources/META-INF/resources/js/custom/form/FormView.es.js

at linenumber 68: const liferayForm = event.target.id && Liferay.Form.get(event.target.id);

PS: I used ? js_fast_load=0&css_fast_load=0& strip=0