Examples of encodeActionURL()


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

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

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

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

      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

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

    } else if (component.getLink() != null) {

      String link = component.getLink();
      if (link.startsWith("/")) { // internal absolute link
        url = viewHandler.getActionURL(facesContext, link);
        url = externalContext.encodeActionURL(url);
      } else if (link.contains(":")) { // external link
        url = link;
      } else { // internal relative link
        url = externalContext.encodeResourceURL(link);
      }
View Full Code Here

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

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

            try
            {
                externalContext.redirect(externalContext.encodeActionURL(redirectPath));
            }
            catch (IOException e)
            {
                throw new FacesException(e.getMessage(), e);
            }
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()

      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

Examples of org.apache.cocoon.faces.FacesRedirector.encodeActionURL()

        FacesRedirector redirector = (FacesRedirector)request.getAttribute(FacesAction.REQUEST_REDIRECTOR_ATTRIBUTE);
        if (redirector == null) {
            throw new RuntimeException("Can not encode action URL <" + url + ">: Redirector missing.");
        }

        return redirector.encodeActionURL(url);
    }

    public String encodeNamespace(String ns) {
        return ns;
    }
View Full Code Here

Examples of org.apache.wicket.protocol.http.portlet.PortletRequestContext.encodeActionURL()

                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
View Full Code Here

Examples of org.apache.wicket.protocol.http.portlet.PortletRequestContext.encodeActionURL()

                forceActionURL = false;
                break;
              }
            }
          }
          url = prc.encodeActionURL(url, forceActionURL);
        }
      }
    }
    else if (url == null)
    {
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.