7.3 MessageEvent

 <  Day Day Up  >  

This object is sent to registered MessageListeners by the portlet container when a portlet executes the send method of the PortletContex object. There are two important methods available in this object

  • getMessage: returns the message object sent with this event. Since this method returns a PortletMessage, the result must be cast to the appropriate type as illustrated in Example 7-1.

  • getRequest: returns the current PortletRequest. The request can be used to access the PortletSession object or to store data to be used in the doView method.

 <  Day Day Up  >  


IBM WebSphere Portal V5 A Guide for Portlet Application Development
IBM Websphere Portal V5: A Guide for Portlet Application Development
ISBN: 0738498513
EAN: 2147483647
Year: 2004
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net