<?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>Message Board portal_header.jsp override liferay 7.1</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111958720" />
  <subtitle>Message Board portal_header.jsp override liferay 7.1</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111958720</id>
  <updated>2026-04-04T18:50:31Z</updated>
  <dc:date>2026-04-04T18:50:31Z</dc:date>
  <entry>
    <title>RE: Message Board portal_header.jsp override liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111972573" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111972573</id>
    <updated>2019-01-09T15:18:40Z</updated>
    <published>2019-01-09T15:18:40Z</published>
    <summary type="html">&lt;p&gt;Hi Nikhil,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If all you want to do is hide the search field, why don't you just
  taget the node with css and set the disply to be hidden? &lt;/p&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-01-09T15:18:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Message Board portal_header.jsp override liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111966403" />
    <author>
      <name>Nikhil Kapoor</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111966403</id>
    <updated>2019-01-09T10:14:50Z</updated>
    <published>2019-01-09T10:14:50Z</published>
    <summary type="html">&lt;h5 title="Andrew Jardine modified on 1/8/19 11:47 AM."&gt;Hello Andrew Jardine &lt;/h5&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks for the response. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I will try and will let you know if it works.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Yes actually I want to hide the search bar coming in message board
  portlet header which is in portlet_header.jsp file. Somehow directly
  creating a jsp fragment is not working. I will try with jsp bag now.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Nikhil Kapoor&lt;/p&gt;</summary>
    <dc:creator>Nikhil Kapoor</dc:creator>
    <dc:date>2019-01-09T10:14:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Message Board portal_header.jsp override liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111963173" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111963173</id>
    <updated>2019-01-08T19:47:53Z</updated>
    <published>2019-01-08T19:47:53Z</published>
    <summary type="html">&lt;p&gt;Hi Nikhil,&lt;/p&gt;
&lt;p&gt;Looking at the class, I beleive you can override it if you want to --
  after all, it is an OSGI Service.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;pre&gt;
@Component(immediate = true, service = DynamicInclude.class)
public class MBPortletHeaderJSPDynamicInclude extends BaseJSPDynamicInclude {
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;.. but, being an internal class, unless you do some OSGI tickery as
  David has blogged about &lt;a
  href="https://community.liferay.com/blogs/-/blogs/fixing-module-package-access-modifiers"&gt;https://community.liferay.com/blogs/-/blogs/fixing-module-package-access-modifiers&lt;/a&gt; you
  would be stuck having to make a copy of the class. It's not an ideal
  solution because it means that you would miss out on any future
  updates without manually checking for changes. &lt;/p&gt;
&lt;p&gt;I am confused though -- you said that you can't override the jsp with
  a fragment. I think you might be mistaken on that point. You should be
  able to, but there are two types of fragments. There is a simpler one
  with just the bnd references, which I presume you have tried. That
  will not work, as you say.&lt;/p&gt;
&lt;p&gt;The other is overriding a portal core JSP which is used for just this
  type of scenario: &lt;a href="https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/7-0/overriding-core-jsps"&gt;https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/7-0/overriding-core-jsps&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I've done this a handful of times so that should get you what you need.&lt;/p&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-01-08T19:47:53Z</dc:date>
  </entry>
  <entry>
    <title>Message Board portal_header.jsp override liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111958719" />
    <author>
      <name>Nikhil Kapoor</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111958719</id>
    <updated>2019-01-08T12:45:47Z</updated>
    <published>2019-01-08T12:45:47Z</published>
    <summary type="html">&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I want to overrride portal_header.jsp in message board. Tried
  creating jsp fragment but it isnt working. On further analysis I found
  that this jsp is loaded using MBPortletHeaderJSPDynamicInclude.java.
  Can I override this service?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Note: portal_header.jsp is loaded in portlet head and not in portlet
  body content. Can I change it?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Nikhil Kapoor&lt;/p&gt;</summary>
    <dc:creator>Nikhil Kapoor</dc:creator>
    <dc:date>2019-01-08T12:45:47Z</dc:date>
  </entry>
</feed>
