WebSphere Portal Server - send portlet message every time

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > November 2005 > send portlet message every time





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author send portlet message every time

2005-11-17, 6:20 pm

I want to send portlet message every time before rendering the JSP. Regardless actionPerformed() and messageReceived() are executed, portlet should send msg.

i.e call -
getPortletConfig().getContext().send(null,new DefaultPortletMessage(hmMessage));
before :
getPortletConfig().getContext().include(VIEW_JSP + getJspExtension(request), request,response);

Theoritically, as rendering JSP is from doView() and sending PortletMsg code is in actionPerformed(). I tried invoking "send()" in doView() and/or calling actionPerformed(null) from doView(), but seems Portlet container has restrictions to "send" portletm
sg, none other than -actionPerformed().

As after actionPerformed() or messageReceived() , doView() is called, so was forcing .send() in doView(). But no luck.

Is there a way to "send portlet message every time before rendering the JSP".

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com