concept pitcher portlet in category liferay

appears as: Pitcher portlet
Liferay in Action: The Official Guide to Liferay Portal Development

This is an excerpt from Manning's book Liferay in Action: The Official Guide to Liferay Portal Development.

You’ll be creating a simple demonstration of IPC using baseball—well, at least, part of baseball. Your project will contain two portlets: a Pitcher portlet and a Catcher portlet. You can see the Pitcher portlet in figure C.1: it will randomly generate a pitch and then send the name of the pitch as the payload of a portlet event. To cause the portlet to do this, you’ll provide a simple link.

Figure C.1. Click the Pitch link to pitch the ball. This will send an event with the type of pitch to any portlets listening for that particular event.

The Catcher portlet will listen for the event. When it receives the event, it will display the name of the pitch it received from the Pitcher portlet (see figure C.2). It doesn’t do anything other than that, but you might be able to create an entire portlet-based baseball game, if you wanted to.