Why Aren't JSP overrides I Made Using Fragments Showing?

The fragment module must specify the exact version of the host module. A Liferay DXP upgrade might have changed some JSPs in the host module, prompting a version update. If this occurs, check that your JSP customizations are compatible with the updated host JSPs and then update your fragment module’s targeted version to match the host module.

For example, this bnd.bnd file from a fragment module uses Fragment-Host to specify the host module and host module version:

Bundle-Name: custom-login-jsp
Bundle-SymbolicName: custom.login.jsp
Bundle-Version: 1.0.0
Fragment-Host: com.liferay.login.web;bundle-version="1.1.18"

Finding versions of deployed modules is straightforward.

JSP Overrides using Portlet Filters

Customizing JSPs

Finding Artifacts

« Why doesn't the package I use from the fragment host resolve?Using OSGi Services from EXT Plugins »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています