setRenderParameter is deprecated in liferay CE 7.3setRenderParameter is deprecated in liferay CE 7.3https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1207376312024-03-19T04:34:10Z2024-03-19T04:34:10ZRE: setRenderParameter is deprecated in liferay CE 7.3Ravinder karnatihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1208270602021-06-12T03:44:36Z2021-06-12T03:44:36Z<p>Hi Manoi,</p>
<p>You can do it in following way</p>
<p>response.getRenderParameters().setValue("mvcPath", "view.jsp");</p>
<p>response.getRenderParameters().setValue("param name",
"param value");</p>Ravinder karnati2021-06-12T03:44:36ZRE: RE: setRenderParameter is deprecated in liferay CE 7.3Olaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1208248202021-06-11T09:02:38Z2021-06-11T09:02:38Z<p>This looks like a new question, not like an answer to the question
that you answered to. Consider posting a new question, because your
question is not about a deprecated method - or is it?</p>
<p>Or if it is: Please describe your observations. The method is only
deprecated, not removed. I'd expect it to still work. Worst case, you
can also revert to portlet spec 2.0, JSR-286</p>Olaf Kock2021-06-11T09:02:38ZRE: RE: setRenderParameter is deprecated in liferay CE 7.3Kevin Neibargerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1208204212021-06-10T13:03:48Z2021-06-10T13:03:48Z<p>Hi Olaf, I have the same question as manoj. The link posted here is
broken. Maybe it's my firewall or security settings. </p>
<p>I did find the following for the Portlet API 3.0, JSR 362</p>
<p>
<img src="/documents/14/0/Screen+Shot+2021-06-10+at+8.59.44+AM.png/d864475e-6b18-6cbd-985d-efc682dc9399?t=1623330025189&imagePreview=1" /></p>
<p>This doesn't make sense to me, how do we replace a "set"
method with a "get" method?? I want to set the
"mvcPath" parameter to my JSP. There must be a different way
of doing this. I can still use it as it's simply deprecated, but when
they decide to completely remove it, we are screwed. </p>
<p>If there is an alternative to setting the renderParameter, let us know. </p>Kevin Neibarger2021-06-10T13:03:48ZRE: setRenderParameter is deprecated in liferay CE 7.3manoj kumarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1207551692021-05-05T12:10:30Z2021-05-05T10:38:17Z<p>Hi, I am new to liferay so may i know what function should i used to
achive things, which we were using liferay 7. </p>
<p> @SuppressWarnings("deprecation")<br /> public void
addBatch(ActionRequest actionrequest, ActionResponse actionresponse)
throws IOException, PortalException {<br /> ServiceContext
serviceContext =
ServiceContextFactory.getInstance(Batch.class.getName(),actionrequest);<br />
String name = ParamUtil.getString(actionrequest,
"batchname");<br /> String city =
ParamUtil.getString(actionrequest, "batchcity");<br />
long id = Long.valueOf((ParamUtil.getString(actionrequest,
"groupId")));<br />
BatchLocalServiceUtil.create_Batch(id, name, city,
serviceContext);<br /> actionresponse.setRenderParameter(
"mvcPath", "/batch_view.jsp");<br /> </p>
<p>I am calling this addBatch from front end using action url, now i
want to render to a specific page after doing some database operation,
may i know how to do that</p>manoj kumar2021-05-05T10:38:17ZRE: setRenderParameter is deprecated in liferay CE 7.3Olaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1207355142021-04-20T13:30:39Z2021-04-20T13:30:39Z<p>As this is in javax.portlet.ActionResponse, the deprecation is part
of the new Portlet API 3.0, JSR 362. See the specification, or its
javadoc (I found the <a
href="https://portals.apache.org/pluto/portlet-3.0-apidocs/javax/portlet/StateAwareResponse.html">first
one here</a> to a (new) superclass of ActionResponse)</p>Olaf Kock2021-04-20T13:30:39ZsetRenderParameter is deprecated in liferay CE 7.3manoj