1 7 package org.exoplatform.services.portletcontainer.test.portlet; 8 9 import javax.portlet.*; 10 import java.io.IOException ; 11 import java.io.PrintWriter ; 12 import java.util.Enumeration ; 13 17 public class PortletToTestPerformBlockingInteraction extends GenericPortlet{ 18 19 20 protected void doView(RenderRequest renderRequest, RenderResponse renderResponse) 21 throws PortletException, IOException { 22 renderResponse.setContentType("text/html"); 23 PrintWriter w = renderResponse.getWriter(); 24 w.print(renderRequest.getParameter("renderParam1")); 25 } 26 27 public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) 28 throws PortletException, IOException { 29 String param1 = actionRequest.getParameter("name1"); 30 String param2 = actionRequest.getParameter("name2"); 31 actionResponse.setPortletMode(PortletMode.EDIT); 32 actionResponse.setWindowState(WindowState.MAXIMIZED); 33 actionResponse.setRenderParameter("renderParam1", param1); 34 actionResponse.setRenderParameter("renderParam2", param2); 35 } 36 37 } 38 | Popular Tags |