<?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>Spring portlet in Control Panel.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=5361387" />
  <subtitle>Spring portlet in Control Panel.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=5361387</id>
  <updated>2026-06-12T14:25:37Z</updated>
  <dc:date>2026-06-12T14:25:37Z</dc:date>
  <entry>
    <title>RE: Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5394815" />
    <author>
      <name>Tina Agrawal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5394815</id>
    <updated>2010-07-23T10:17:50Z</updated>
    <published>2010-07-23T10:17:50Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;You need to override the ControlPanelEntry interface only when you want to change the permissions to whom your portlet is visible.&lt;br&gt;&lt;br&gt;Otherwise just having these entries in your liferay-portlet.xml is sufficient.&lt;br&gt;&lt;pre&gt;&lt;code&gt;
&amp;lt;control-panel-entry-category&amp;gt;content&amp;lt;/control-panel-entry-category&amp;gt;
&amp;lt;control-panel-entry-weight&amp;gt;1.5&amp;lt;/control-panel-entry-weight&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Tina&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Tina Agrawal</dc:creator>
    <dc:date>2010-07-23T10:17:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5392859" />
    <author>
      <name>kehsihba eejrenab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5392859</id>
    <updated>2010-07-23T06:57:06Z</updated>
    <published>2010-07-23T06:57:06Z</published>
    <summary type="html">http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Control%20Panel&lt;br /&gt;check once</summary>
    <dc:creator>kehsihba eejrenab</dc:creator>
    <dc:date>2010-07-23T06:57:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5378366" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5378366</id>
    <updated>2010-07-22T03:18:45Z</updated>
    <published>2010-07-22T03:18:45Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;kehsihba eejrenab:&lt;/div&gt;&lt;blockquote&gt;http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Sample+Spring+Portlet&lt;br /&gt;&lt;br /&gt;http://www.blokefood.com/liferay-portal-4.2.1/web/blokefood/&lt;br /&gt;&lt;br /&gt;check these.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I am still not able to figure out how this example related to my question?&lt;br /&gt;My original question is &amp;#34;how to add a Spring portlet into Control Panel&amp;#34;, rather than &amp;#34;how to write a Spring portlet for liferay&amp;#34;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Sam</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-22T03:18:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5378162" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5378162</id>
    <updated>2010-07-22T02:30:47Z</updated>
    <published>2010-07-22T02:30:47Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I think I should put the following code in my name-portlet.xml file:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;

    &amp;lt;!-- Handler Mapping --&amp;gt;
                                                                                                        
        &amp;lt;bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping"&amp;gt;
                &amp;lt;property name="portletModeMap"&amp;gt;
                        &amp;lt;map&amp;gt;
                                &amp;lt;entry key="view"&amp;gt;&amp;lt;ref bean="helloWorldPortlet" /&amp;gt;&amp;lt;/entry&amp;gt;
                        &amp;lt;/map&amp;gt;
                &amp;lt;/property&amp;gt;
        &amp;lt;/bean&amp;gt;
                                                                                                        
        &amp;lt;!-- Exceptions Handler --&amp;gt;
                                                                                                        
        &amp;lt;bean id="defaultExceptionHandler" parent="defaultExceptionHandlerTemplate" /&amp;gt;
 
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;But the eclipse editor complains,&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;The value 'portletModeHandlerMapping' of attribute 'id' on element 'bean' is not valid 
 with respect to its type, 'ID'.&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Should I ignore this error?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Sam&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-22T02:30:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5372340" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5372340</id>
    <updated>2010-07-21T13:44:55Z</updated>
    <published>2010-07-21T13:44:55Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;kehsihba eejrenab:&lt;/div&gt;&lt;blockquote&gt;http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Sample+Spring+Portlet&lt;br /&gt;&lt;br /&gt;http://www.blokefood.com/liferay-portal-4.2.1/web/blokefood/&lt;br /&gt;&lt;br /&gt;check these.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Hi I understand the first link, but not quite understand the second.&lt;br /&gt;Do I have to create a mapping between my ControlPanelEntry class with my Controller class?&lt;br /&gt;To this extend, this is probably not a liferay question, but I still hope someone whom have done this development can explain to me the basic for linking the ControlPanelEntry class with custom defined Spring portlet.&lt;br /&gt;&lt;br /&gt;Thank you in advance for any suggestion and help.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Sam</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-21T13:44:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5363019" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5363019</id>
    <updated>2010-07-20T14:25:12Z</updated>
    <published>2010-07-20T14:25:12Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div class="quote-title"&gt;kehsihba eejrenab:&lt;/div&gt;&lt;blockquote&gt;http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Sample+Spring+Portlet&lt;br&gt;&lt;br&gt;http://www.blokefood.com/liferay-portal-4.2.1/web/blokefood/&lt;br&gt;&lt;br&gt;check these.&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;Thank you very much for the example. &lt;br&gt;With example in the second link, I understand that:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;control-panel-entry-category: The 'category' where your portlet will appear. There are currently 4 valid values for this element: 'my', 'content', 'portal', and 'server'.
control-panel-entry-weight: Determines the relative ordering for your portlet within a given category. The higher the number, the lower in the list your portlet will appear within that category.
control-panel-entry-class: The name of a class that implements the ControlPanelEntry interface which determines who can see the portlet in the control panel via an isVisible method.&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;But with Spring portlet, how to do you leveraged the control panel and spring protlet configuration in order to add the spring portlet onto the contro panel.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Sam&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-20T14:25:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5361793" />
    <author>
      <name>kehsihba eejrenab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5361793</id>
    <updated>2010-07-20T12:19:07Z</updated>
    <published>2010-07-20T12:19:07Z</published>
    <summary type="html">http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Sample+Spring+Portlet&lt;br /&gt;&lt;br /&gt;http://www.blokefood.com/liferay-portal-4.2.1/web/blokefood/&lt;br /&gt;&lt;br /&gt;check these.</summary>
    <dc:creator>kehsihba eejrenab</dc:creator>
    <dc:date>2010-07-20T12:19:07Z</dc:date>
  </entry>
  <entry>
    <title>Spring portlet in Control Panel.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5361386" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5361386</id>
    <updated>2010-07-20T11:14:28Z</updated>
    <published>2010-07-20T11:14:28Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;Can anyone tell me how to setup a Spring portlet in the Control Panel?&lt;br /&gt;I know I how to setup a Struts base portlet for the control panel, just simply create a class inherit from ControlPanelEntry class and insert it into the liferay-portlet.xml file -- this is for Struts Portlet, how about Spring portlet?&lt;br /&gt;&lt;br /&gt;Very appreciate for  any suggestion and a simple example will be great too.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Sam</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-20T11:14:28Z</dc:date>
  </entry>
</feed>
