O'Reilly logo

GateIn Cookbook by Piergiorgio Lucidi, Luca Stancapiano, Ken Finnigan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Communicating between portlets using events

For this recipe, we will create two portlets, each in a separate portlet application, one to search for stocks and the other to show a list of stocks in a watchlist. When a stock is retrieved in the first portlet, it will provide the option to watch that stock, and if clicked, the stock will be visible within the watchlist by firing a portlet event that the receiving portlet will act on.

Getting ready

The following are required for this recipe:

  • Apache Maven
  • An IDE of your choice
  • GateIn-3.2.0.Final

How to do it...

To create the portlet that will search for stocks, do the following:

  1. Create a new Maven project within your IDE, specifying Group ID: gatein.cookbook, Artifact ID: chapter6-event, and Packaging: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required