aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
 
 
subject: Required, sample of a portlet supporting both events (publishing & processing).