|
| 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".
|
|