How can I make communication between two portlet without using wires when you want to paas parameters from one portlet to other and that shoud be used by second portlet.
Well this can be achieved using URL Generation API, just use the code below on your SourceJSP of SourcePortlet.In the code below, PAGE_UNIQUE_NAME would be page name on which you have target portlet and Portlet name would be your target portlet name.Params would be your parameters that you want to pass to target portlet.
String homeURL = PortletURLHelper.generateUrl(PAGE_UNIQUE_NAME, Portlet Name, HashMap params, renderRequest, renderResponse);
you can get param values in target portlet using the following code
Map map = renderRequest.getParameterMap();
now just iterate the map and find the values you passed from source portlet.
can u provide the detailed description of the above topic
ReplyDeleteCan you provide the sample code for ibm 168 inter portlet communication using url generation api
ReplyDelete