• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 469
20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
My honeysuckle is blooming this year! Now to fertilize this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic