Examples of encodeActionURL()


Examples of com.liferay.faces.bridge.context.BridgeContext.encodeActionURL()

          PortletResponse portletResponse = bridgeContext.getPortletResponse();

          if (portletResponse instanceof StateAwareResponse) {

            BridgeActionURL bridgeActionURL = bridgeContext.encodeActionURL(toViewId);

            try {

              BridgeNavigationCase bridgeNavigationCase = new BridgeNavigationCaseImpl(navigationCase);
              String portletMode = bridgeNavigationCase.getPortletMode();
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

         // add the context path
         String absoluteUrl = prependContextPath(externalContext, relativeUrl);

         // rewrite the URL
         String rewrittenUrl = externalContext.encodeActionURL(absoluteUrl);

         // send the redirect
         try {
            externalContext.redirect(rewrittenUrl);
            return true;
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

       * GIVEN an ExternalContext whose encodeActionURL() method returns the URL unmodified
       */

      ExternalContext externalContext = mock(ExternalContext.class);
      when(externalContext.getRequestContextPath()).thenReturn("/myapp");
      when(externalContext.encodeActionURL(Matchers.anyString())).thenAnswer(new Answer<String>() {
         @Override
         public String answer(InvocationOnMock invocation) throws Throwable
         {
            return (String) invocation.getArguments()[0];
         }
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

            viewParameters = parameters;
        }
       
        String actionEncodedViewId = getActionURL(context, viewId);
        String bookmarkEncodedURL = externalContext.encodeBookmarkableURL(actionEncodedViewId, viewParameters);
        return externalContext.encodeActionURL(bookmarkEncodedURL);
    }

    @Override
    public String getRedirectURL(FacesContext context, String viewId,
            Map<String, List<String>> parameters, boolean includeViewParams)
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

            viewParameters = parameters;
        }
       
        String actionEncodedViewId = getActionURL(context, viewId);
        String redirectEncodedURL = externalContext.encodeRedirectURL(actionEncodedViewId, viewParameters);
        return externalContext.encodeActionURL(redirectEncodedURL);
    }

    @Override
    public ViewDeclarationLanguage getViewDeclarationLanguage(
            FacesContext context, String viewId)
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

        // cause problems if the ViewHandler is wrapped
        String actionEncodedViewId = getViewHandler(context).getActionURL(context, viewId);
       
        ExternalContext externalContext = context.getExternalContext();
        String bookmarkEncodedURL = externalContext.encodeBookmarkableURL(actionEncodedViewId, viewParameters);
        return externalContext.encodeActionURL(bookmarkEncodedURL);
    }

    @Override
    public String getRedirectURL(FacesContext context, String viewId,
            Map<String, List<String>> parameters, boolean includeViewParams)
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

        // cause problems if the ViewHandler is wrapped
        String actionEncodedViewId = getViewHandler(context).getActionURL(context, viewId);
       
        ExternalContext externalContext = context.getExternalContext();
        String redirectEncodedURL = externalContext.encodeRedirectURL(actionEncodedViewId, viewParameters);
        return externalContext.encodeActionURL(redirectEncodedURL);
    }

    @Override
    public ViewDeclarationLanguage getViewDeclarationLanguage(
            FacesContext context, String viewId)
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

        // Write out special hhidden field for partial submits
        String viewId = context.getViewRoot().getViewId();
        String actionURL =
            context.getApplication().getViewHandler().getActionURL(context, viewId);
        ExternalContext externalContext = context.getExternalContext();
        String encodedActionURL = externalContext.encodeActionURL(actionURL);
        String encodedPartialActionURL = externalContext.encodePartialActionURL(actionURL);
        if (encodedPartialActionURL != null) {
            if (!encodedPartialActionURL.equals(encodedActionURL)) {
                writer.startElement("input", component);
                writer.writeAttribute("type", "hidden", "type");
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

            params = getFullParameterList(context, viewId, parameters);
        } else {
            params = parameters;
        }
        ExternalContext ectx = context.getExternalContext();
        return ectx.encodeActionURL(ectx.encodeBookmarkableURL(Util.getViewHandler(context).getActionURL(context, viewId), params));

    }


    /**
 
View Full Code Here

Examples of javax.faces.context.ExternalContext.encodeActionURL()

            params = getFullParameterList(context, viewId, parameters);
        } else {
            params = parameters;
        }
        ExternalContext ectx = context.getExternalContext();
        return ectx.encodeActionURL(ectx.encodeRedirectURL(Util.getViewHandler(context).getActionURL(context, viewId), params));

    }

    /**
     * @see ViewHandler#getViewDeclarationLanguage(javax.faces.context.FacesContext, String)
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.