@Override public String encodeActionURL(String url) { return wrapped.encodeActionURL(url); }
@Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ @Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ @Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ @Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ @Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
public static String encodeActionURL(FacesContext context, String url) { AssertionUtil.assertNotNull("FacesContext", context); return context.getExternalContext().encodeActionURL(url); } }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ @Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ @Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#encodeActionURL(String)} * on the wrapped {@link ExternalContext} object.</p> * * @see javax.faces.context.ExternalContext#encodeActionURL(String) */ @Override public String encodeActionURL(String url) { return getWrapped().encodeActionURL(url); }
@Override public String getBookmarkableURL(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams) { // the standard impl only calls getActionURL(context, viewId) // but we want to include the parameters too String actionEncodedViewId = getActionURL(context, viewId); ExternalContext externalContext = context.getExternalContext(); String bookmarkEncodedURL = externalContext.encodeBookmarkableURL( actionEncodedViewId, parameters); return externalContext.encodeActionURL(bookmarkEncodedURL); }
protected String baseUrlForContent(String baseName, String extension) { if (useExtensions) { return baseName + "." + extension; } else { FacesContext context = FacesContext.getCurrentInstance(); ViewHandler handler = context.getApplication().getViewHandler(); String url = handler.getActionURL(context, DOCSTORE_BASE_URL + Faces.getDefaultSuffix(context)); return context.getExternalContext().encodeActionURL(url); } }
private static String getAction(FacesContext facesContext) { String viewId = facesContext.getViewRoot().getViewId(); String actionURL = facesContext.getApplication().getViewHandler(). getActionURL(facesContext, viewId); return (facesContext.getExternalContext().encodeActionURL(actionURL)); } }
/** * @param context FacesContext for the response we are creating * * @return Return the value to be rendered as the <code>action</code> attribute * of the form generated for this component. */ private static String getActionStr(FacesContext context) { String viewId = context.getViewRoot().getViewId(); String actionURL = context.getApplication().getViewHandler(). getActionURL(context, viewId); return (context.getExternalContext().encodeActionURL(actionURL)); }
public String encodeActionURL(String url) { if (url != null) { url = RequestParameterProviderManager.getInstance().encodeAndAttachParameters(url); } return _delegate.encodeActionURL(url); }
@Override public String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams) { Map<String,List<String>> params; if (includeViewParams) { params = getFullParameterList(context, viewId, parameters); } else { params = parameters; } ExternalContext externalContext = context.getExternalContext(); return externalContext.encodeActionURL(externalContext.encodeBookmarkableURL(getViewHandler(context).getActionURL(context, viewId), params)); }
@Override public String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams) { Map<String,List<String>> params; if (includeViewParams) { params = getFullParameterList(context, viewId, parameters); } else { params = parameters; } ExternalContext ectx = context.getExternalContext(); return ectx.encodeActionURL(ectx.encodeBookmarkableURL(Util.getViewHandler(context).getActionURL(context, viewId), params)); }
@Override public String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams) { Map<String,List<String>> params; if (includeViewParams) { params = getFullParameterList(context, viewId, parameters); } else { params = parameters; } ExternalContext ectx = context.getExternalContext(); return ectx.encodeActionURL(ectx.encodeBookmarkableURL(Util.getViewHandler(context).getActionURL(context, viewId), params)); }
public static void redirect(FacesContext context, String path) { RedirectScope.setRedirectingPath(context, path); ExternalContext externalContext = context.getExternalContext(); try { externalContext.redirect(externalContext.encodeActionURL(path)); } catch (IOException e) { throw new FacesException(e.getMessage(), e); } context.responseComplete(); context.renderResponse(); }