<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to retain the portlet Id of a spring mvc based portlet during upgrade?</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121622483" />
  <subtitle>How to retain the portlet Id of a spring mvc based portlet during upgrade?</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121622483</id>
  <updated>2026-10-15T12:00:23Z</updated>
  <dc:date>2026-10-15T12:00:23Z</dc:date>
  <entry>
    <title>RE: RE: How to retain the portlet Id of a spring mvc based portlet during upgrade?</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121623158" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121623158</id>
    <updated>2023-01-02T09:25:16Z</updated>
    <published>2023-01-02T09:25:15Z</published>
    <summary type="html">&lt;p&gt;This &lt;em&gt;must&lt;/em&gt; be something that Liferay is doing all the time.
  I'm assuming that there's some reusable Upgrade-routine code that you
  can pass in the old and the new portlet-id. Technically that does the
  database change that you're looking to avoid, but as you don't have to
  do the work yourself, this might not be too bad (and you'll be in a
  somewhat standardized environment of generated portlet IDs)&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2023-01-02T09:25:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: How to retain the portlet Id of a spring mvc based portlet during upgrade?</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121622674" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121622674</id>
    <updated>2022-12-30T13:21:07Z</updated>
    <published>2022-12-30T13:16:51Z</published>
    <summary type="html">&lt;p&gt;Hi Olaf&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Since the portlets were bundled into another spring mvc portlet ,
  they had the container portlet mentioned in its portlet id for ex &lt;em&gt;
    &lt;strong&gt;knowledgecookiesnavigation_WAR_knowledgecookiesportlet 
    &lt;/strong&gt;is a &lt;strong&gt;knowledegcookies-navigation
  portlet &lt;/strong&gt;&lt;/em&gt;being contained under the main &lt;strong&gt;knowledgecookies-portlet.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I did use the portlet id that was there in the liferay-portlet.xml
  for the portlet ie&lt;em&gt; &lt;strong&gt;knowledgecookies-navigation
  &lt;/strong&gt;&lt;/em&gt;but the&lt;em&gt;

    &lt;strong&gt; knowledgecookiesnavigation_WAR_knowledgecookiesportlet &lt;/strong&gt;&lt;/em&gt; 
  as portlet wasn't generated in the process so this portlet didnt find
  placed on page on successful deployment.I had to forcibly add it to
  the page via add application but this thing I want to avoid.Since I am
  working on upgrading the code from 7.1 to 74 and wanted to maintain
  the portlet id references that database on 7.1 was having so that I
  dont have to alter the database tables like portlet table , layout
  table etc.&lt;/p&gt;</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2022-12-30T13:16:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to retain the portlet Id of a spring mvc based portlet during upgrade?</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121622633" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121622633</id>
    <updated>2022-12-30T12:20:10Z</updated>
    <published>2022-12-30T12:20:09Z</published>
    <summary type="html">&lt;p&gt;Have you tried using the old portlet id explicitly? What happens?
  What's the behavior? Is there some decoration going on that the portal
  does to those portlet ids? (I never look at them, thus I can't tell
  from the top of my head)&lt;/p&gt;
&lt;p&gt;Please describe what you observe, what you expect, and what you've tried&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2022-12-30T12:20:09Z</dc:date>
  </entry>
  <entry>
    <title>How to retain the portlet Id of a spring mvc based portlet during upgrade?</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121622482" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121622482</id>
    <updated>2022-12-30T03:36:51Z</updated>
    <published>2022-12-30T03:36:50Z</published>
    <summary type="html">&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;We had a portlet which was spring mvc based porltet , it was having
  21 spring mvc based portlets bundled into one mammoth war style portlet.&lt;/p&gt;
&lt;p&gt;We upgraded them to 7.4 from 7.1 and kept some of them as spring mvc
  based portlet as some of them were using lot of spring web / mvc based
  features so we kept them as it is to avoid doing lot of testing or
  migrating  them to Liferay MVC.We want that the portlet id to be the
  same as earlier.But in Spring MVC portlet we have to define the
  portlet id in xml config files like liferay-portlet.xml,portlet.xml,liferay-display.xml.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Old portlet id :&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;em&gt;knowledgecookiesnavigation_WAR_knowledgecookiesportlet&lt;/em&gt;&lt;/p&gt;</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2022-12-30T03:36:50Z</dc:date>
  </entry>
</feed>
