• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic