over 5 years ago
Liferay have several ways to modify the functionality of a native Liferay portlet and you can extend the functionality.
Liferay provide most hooked functionality is described by using the liferay-hook.xml file located in /docroot/WEB-INF directory.
Here are the most common methods are shown :
Add the following child to in liferay-hook.xml file.
Above element defines the location of custom jsp page's.
For example you may want to rewrite view.jsp for the Document Library portlet at:
Model Listeners, In which you will have to define a portal.property file located at,
The following is an example for the above :
If you want to listen to changes in User, for example, you would write in the property.
As following format :
Your class should implement com.liferay.portal.model.BaseModelListener.
Here, You can listen to events such as Add, Update, Remove etc.
A similar here, in liferay-hook.xml in the element add
Your implementation should extend the correct wrapper class for a particular service.
For the example above shown below:
You should now be able to overwrite or extend all the public methods for the UserService like updateUser(..).
Customization of Struts Actions
In very similar as extending services, define the elements for
You should need to extend BaseStrutsAction class.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using