Skip to content
Advertisement

Replacement of renderRequest.getParameter(“param”) in Liferay 7.x

When I’m using below code getting warning that it’s deprecated

JavaScript

Then I used

JavaScript

as this was suggested by v3.0. But after that getting bellow error at run time

JavaScript

Advertisement

Answer

This issue was because my portlet module was using portlet API v2.0 by default and getRenderParameters() is available since v3.0. So, when explicitly I mentioned in component class to use v3.0 and did Gradle refresh the issue got fix.

I could fix this issue by adding

JavaScript

in portlet’s component class.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement