Package javax.portlet

Examples of javax.portlet.ActionResponse.sendRedirect()


        PortletResponse portletResponse = ((PortletServletResponse)servletResponse).getPortletResponse();
        if (portletResponse instanceof ActionResponse)
        {
            ActionResponse actionResponse = (ActionResponse)portletResponse;
            String redirectURL = actionResponse.encodeURL(url.toString());
            actionResponse.sendRedirect( redirectURL );
        }
        else
        {
          log.error("Unable to redirect the portlet RenderRequest to " + url.toString());
        }
View Full Code Here


        PortletResponse portletResponse = ((PortletServletResponse)servletResponse).getPortletResponse();
        if (portletResponse instanceof ActionResponse)
        {
            ActionResponse actionResponse = (ActionResponse)portletResponse;
            String redirectURL = actionResponse.encodeURL(url.toString());
            actionResponse.sendRedirect( redirectURL );
        }
        else
        {
          log.error("Unable to redirect the portlet RenderRequest to " + url.toString());
        }
View Full Code Here

    public void redirect(String url) throws IOException
    {
        if (this.portletResponse instanceof ActionResponse)
        {
            ActionResponse r = (ActionResponse)this.portletResponse;
            r.sendRedirect(url);
        }
        else
            throw new IOException("Cannot redirect from render phase");
    }
View Full Code Here

    BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
    PortletResponse portletResponse = bridgeContext.getPortletResponse();

    if (portletResponse instanceof ActionResponse) {
      ActionResponse actionResponse = (ActionResponse) portletResponse;
      actionResponse.sendRedirect(url);
    }
    else if (portletResponse instanceof ResourceResponse) {
      FacesContext facesContext = FacesContext.getCurrentInstance();

      if (isJSF2PartialRequest(facesContext)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.