Package org.gatein.pc.controller.impl

Examples of org.gatein.pc.controller.impl.PortletURLRenderer


      //
      this.clientRequest = clientRequest;
      this.clientResponse = clientResponse;
      this.windowId = windowId;
      this.urlRenderer = new PortletURLRenderer(pageNavigationalState, clientRequest, clientResponse, serialization);
   }
View Full Code Here


            req.setAttribute("bilto", context);

            // We perform a send redirect on actions
            if (request instanceof PortletActionRequest && redirectAfterAction)
            {
               PortletURLRenderer renderer = new PortletURLRenderer(
                  pageUpdate.getPageNavigationalState(),
                  context.getClientRequest(),
                  context.getClientResponse(),
                  context.getPageNavigationalStateSerialization());

               //
               String url = renderer.renderURL(new URLFormat(null, null, true, null));
               resp.sendRedirect(url);
               return;
            }
         }
         else if (controllerResponse instanceof ResourceResponse)
View Full Code Here

      if (windowStateValue != null)
      {
         windowState = org.gatein.pc.api.WindowState.create(windowStateValue.trim());
      }

      PortletURLRenderer renderer = new PortletURLRenderer(
         renderResponse.getPageNavigationalState(),
         context.getClientRequest(),
         context.getClientResponse(),
         context.getPageNavigationalStateSerialization());

      final org.gatein.pc.api.WindowState ws = windowState;
      final org.gatein.pc.api.Mode md = mode;

      RenderURL url = new RenderURL()
      {


         public StateString getNavigationalState()
         {
            return null;
         }

         public Map<String, String[]> getPublicNavigationalStateChanges()
         {
            return params;
         }

         public Mode getMode()
         {
            return md;
         }

         public org.gatein.pc.api.WindowState getWindowState()
         {
            return ws;
         }

         public Map<String, String> getProperties()
         {
            return Collections.emptyMap();
         }
      };

      try
      {
         JspWriter out = pageContext.getOut();
         String renderedURL = renderer.renderURL(portletTag.result.getWindowDef().getWindowId(), url, new URLFormat(null, null, true, null));
         out.write(renderedURL);
      }
      catch (IOException e)
      {
         throw new JspException(e);
View Full Code Here

TOP

Related Classes of org.gatein.pc.controller.impl.PortletURLRenderer

Copyright © 2018 www.massapicom. 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.