I am trying to override the portal-web page update_password.jsp
following these examples:
I also set the property service.ranking:Integer=112 in my CustomJspBag subclass.
My module deploys and starts without errors and the page in portal-web/docroot/html/portal/update_password.jsp is replaced by the new one and the old page becomes update_password.portal.jsp.
The class gets activated and the getCustomJsps()
returns the page name.
But the changes are not visible in the browser. The old page keeps showing. How can I make it work?
Thank you for adding the portal version @Luke, I reproduced this issue using the same version now.
Then, after using the following resources, I managed to create a working app that overrides the update_password.jsp:
https://git.fortiss.org/civitas-digitalis/platform/-/tree/master/modules/UpdatePasswordOverride
https://www.softwaresavvyblog.com/post/liferay-overriding-core-jsps
I have created a repository with my working app, to show you how the code exactly looks like, it will print an "OVERRIDDEN" message to the top of the page when you visit:
http://localhost:8080/c/portal/update_password
My repository is located here:
https://github.com/peterpetrekanics/UpdatePwOverride7310
Here are my detailed steps I took: