Hi Eric,
i’m building the url like this :
IPortletURL refreshUrl;
try {
refreshUrl = createActionUrl();
refreshUrl.clearParameters();
refreshUrl.clearState();
refreshUrl.setBaseURL("myPortlet");
refreshUrl.setTargetAction("myAction");
log("URL : " + refreshUrl.toString());
getFacesContext().getExternalContext().redirect(refreshUrl.toString());
} catch (Exception e) {
log("Exception creating Url : " + e.getMessage());
}
where myPortlet is the alias of my target portlet and myAction is the action that i am trying to call.
My target action method is :
@PortletAction
public void myAction(){
log("****************** myAction() say hello *******************************");
}
i modified the portlet.xml configuration init_params indicating ANNOTATED_PORTLET_ACTIONS = true for both source and target portlets but i’m geting the following error :
Exception creating Url : [POP.007.0060] The sendRedirect method can not be invoked after any of the following methods of the ActionResponse interface has been called: setPortletMode, setWindowState, setRenderParameter, setRenderParameters
#webMethods-BPMS#MWS-CAF-Task-Engine#webMethods