@Override public String encodeRedirectURL(String baseUrl, Map<String, List<String>> parameters) { UrlBuilder builder = new UrlBuilder(baseUrl, getResponseCharacterEncoding()); builder.addParameters(parameters); return builder.createUrl(); }
/** * @see javax.faces.context.ExternalContext#encodePartialActionURL(String) * @return */ @Override public String encodePartialActionURL(String url) { UrlBuilder builder = new UrlBuilder(url, getResponseCharacterEncoding()); return ((HttpServletResponse) response).encodeURL(builder.createUrl()); }