Package javax.faces.context

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


    // with the same encoding as compare string.
    String bridgeEncoded = null;
    if (isStrictXhtmlEncoded(portletEncoded))
    {
      bridgeEncoded =
        extCtx.encodeActionURL(PORTLET_RENDER_TEST_STRING_XMLENCODED);
    }
    else
    {
      bridgeEncoded =
        extCtx.encodeActionURL(PORTLET_RENDER_TEST_STRING);
View Full Code Here


        extCtx.encodeActionURL(PORTLET_RENDER_TEST_STRING_XMLENCODED);
    }
    else
    {
      bridgeEncoded =
        extCtx.encodeActionURL(PORTLET_RENDER_TEST_STRING);
    }

    if (bridgeEncoded.equals(portletEncoded))
    {
      testRunner.setTestResult(true,
View Full Code Here

    // with the same encoding as compare string.
    String bridgeEncoded = null;
    if (isStrictXhtmlEncoded(portletEncoded))
    {
      bridgeEncoded =
        extCtx.encodeActionURL(PORTLET_ACTION_TEST_STRING_XMLENCODED);
    }
    else
    {
      bridgeEncoded =
        extCtx.encodeActionURL(PORTLET_ACTION_TEST_STRING);
View Full Code Here

        extCtx.encodeActionURL(PORTLET_ACTION_TEST_STRING_XMLENCODED);
    }
    else
    {
      bridgeEncoded =
        extCtx.encodeActionURL(PORTLET_ACTION_TEST_STRING);
    }
   
   
    if (bridgeEncoded.equals(portletEncoded))
    {
View Full Code Here

      "http://www.apache.org?myBackLinkParam=";
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExternalContext extCtx = ctx.getExternalContext();
    // compute what the backLink should be
    String actionURL =
      extCtx.encodeActionURL(ctx.getApplication().getViewHandler().getActionURL(ctx,
                                                                                ctx.getViewRoot().getViewId()));
    String verifyString = null;
    try
    {
      verifyString =
View Full Code Here

      final boolean jsfResource = component.isJsfResource();
      url = ResourceManagerUtils.getPageWithoutContextPath(facesContext, component.getResource());
      if (url != null) {
        if (jsfResource) {
          url = viewHandler.getActionURL(facesContext, url);
          url = externalContext.encodeActionURL(url);
        } else {
          url = viewHandler.getResourceURL(facesContext, url);
          url = externalContext.encodeResourceURL(url);
        }
      } else {
View Full Code Here

                ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
                String redirectPath = viewHandler.getActionURL(facesContext, navigationCase.getToViewId());

                try
                {
                    externalContext.redirect(externalContext.encodeActionURL(redirectPath));
                }
                catch (IOException e)
                {
                    throw new FacesException(e.getMessage(), e);
                }
View Full Code Here

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

}
View Full Code Here

            try
            {
                //there are no jsf2 view-params, but codi view-config params should be added (if present)
                redirectPath = JsfUtils.addParameters(externalContext, redirectPath, false, true, true);
                externalContext.redirect(externalContext.encodeActionURL(redirectPath));
            }
            catch (IOException e)
            {
                throw new FacesException(e.getMessage(), e);
            }
View Full Code Here

        // 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

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.