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;
}