This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Required, sample of a portlet supporting both events (publishing & processing). Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Required, sample of a portlet supporting both events (publishing & processing)." Watch "Required, sample of a portlet supporting both events (publishing & processing)." New topic
Author

Required, sample of a portlet supporting both events (publishing & processing).

SanZ Smart
Greenhorn

Joined: Dec 24, 2010
Posts: 1
I can write a portlet which supports either publishing or processing event.
If I want to write a portlet which supports both i.e. publishing & processing event, then how can I do it?

case 1:
Portlet A ---> Portlet B (Portlet A publishes event)
Portlet A <--- Portlet C (Portlet A processes event)

OR

case 2:
Portlet A --->Portlet B (Portlet A publishes event)
Portlet A <---Portlet B (Portlet A processes event)

Please share sample portlet code including portlet.xml for Portlet A for cases given above.

Thanks in advance.
Ashish Sarin
author
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
    
    5
You can download the src-ch-9t011.zip source code archive from the following location http://code.google.com/p/portletsinaction/downloads/list. Chapter 11 contains examples of sending and receiving portlet events.

regards
ashish


Author of
Getting started with Spring Framework
Portlets in Action
Spring Roo 1.1 Cookbook
Portlets blogSpring Roo blog
 
GeeCON Prague 2014
 
subject: Required, sample of a portlet supporting both events (publishing & processing).