Skip to content

Sample Liferay portlet to demonstrate invoking services in another portlet using reflection

License

Notifications You must be signed in to change notification settings

campfire-digital-services/liferay-sample-reflection-portlet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liferay-sample-reflection-portlet

Sample Liferay portlet to demonstrate invoking services in another portlet using reflection

Assume that we want to invoke the services within the Calendar portlet from another portlet. And also assume that we do not have the class files available (we can't re-package them).

Using the PortletBeanLoacatorUtil we are able to use reflection to invoke operations.

Pre-Requisites

To build this portlet, you need Apache Maven and JDK 1.6+

Setup

Installation

Checkout the project and build it using

mvn clean install

Copy the built WAR file to your Liferay deploy folder.

Use

  • Add the Calendar Portlet to a page
  • Add this portlet to the page (Sample > reflection-sample)
  • Add one or more events to the Calendar portlet and refresh the page
  • The events should be listed under the reflection-sample portlet.

About

Sample Liferay portlet to demonstrate invoking services in another portlet using reflection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published