JSP fragment module and patches installationJSP fragment module and patches installationhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1117789082024-03-29T02:12:58Z2024-03-29T02:12:58ZRE: JSP fragment module and patches installationSamuel Konghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117946302018-12-13T01:47:33Z2018-12-13T01:47:33ZWhat do you mean by it's still working? I'm guessing that it may be
running, but it's not making and changes to the Message Boards.Samuel Kong2018-12-13T01:47:33ZRE: JSP fragment module and patches installationP Ghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117836032018-12-12T09:46:12Z2018-12-12T09:46:12Z<p>Thanks for you answer. </p>
<p>This is weird. After some checks I realized that my custom JSP
fragment is still working. </p>
<p>How is this possible? </p>
<p> </p>
<p>It refers to the
<strong>com.liferay.message.boards.web </strong>1.2.35 bundle-version
but that version is not installed in my osgi container.</p>
<pre>
g! headers 78
message-boards-fragment (78)
--------------------------------
Manifest-Version = 1.0
Bnd-LastModified = 1544010732253
Bundle-ManifestVersion = 2
Bundle-Name = message-boards-fragment
Bundle-SymbolicName = message-boards-fragment
Bundle-Version = 1.0.0
Created-By = 1.8.0_144 (Oracle Corporation)
<strong>Fragment-Host = com.liferay.message.boards.web;bundle-version="1.2.35"</strong>
Import-Package = com.liferay.message.boards.kernel.model,com.liferay.message.boards.kernel.service,com.liferay.portal.kernel.dao.orm,com.liferay.portal.kernel.model,com.liferay.portal.kernel.portlet,com.liferay.portal.kernel.service,com.liferay.portal.kernel.theme,com.liferay.portal.kernel.util,javax.servlet,javax.servlet.http
Javac-Debug = on
Javac-Deprecation = off
Javac-Encoding = UTF-8
Tool = Bnd-3.2.0.201605172007
</pre>P G2018-12-12T09:46:12ZRE: JSP fragment module and patches installationSamuel Konghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117818632018-12-12T07:02:11Z2018-12-12T07:02:11Z<p>From the <a href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/jsp-overrides-using-osgi-fragments">documentation</a>:</p>
<p> </p>
<p style="margin-left: 40.0px;">
<cite>Fragments are tied to a specific host module version. If the
host module is upgraded, the fragment detaches from it. In this
scenario, the original JSPs are still available and the module is
functional (but lacks your JSP enhancements).</cite></p>
<p> </p>
<p>So, yes, you will need to update the version. You'll probably also
want to check the JSP in version 1.3.17 to make sure your JSP
customization will still work.</p>Samuel Kong2018-12-12T07:02:11ZJSP fragment module and patches installationP Ghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1117789072018-12-12T00:36:19Z2018-12-12T00:36:19Z<p>Hello.</p>
<p> </p>
<p>Some months ago I overrided the
jsp <strong>message_boards/view_thread_message.jsp </strong>of the
bundle <strong>com.liferay.message.boards.web </strong>using a JSP
fragment module.</p>
<p>At that time the version of the com.liferay.message.boards.web bundle
was 1.2.35 infact in my bnd.bnd I'm able to see:<br />
<br /> Fragment-Host: com.liferay.message.boards.web;<strong>bundle-version="1.2.35"</strong></p>
<p> </p>
<p>Today using the GOGO shell, randomly, I realize that the actual
version of com.liferay.message.boards.web bundle is the 1.3.17,
because due to some DXP bugs I installed some Liferay patches (it's
possible that the version number of the bundle has increased over time).</p>
<p>