BookmarkableView delegate = createDelegateRedirector(url);
if (delegate instanceof FacesRenderedView) {
((FacesRenderedView) delegate).render(relevantModel, facesContext);
} else {
HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse();
delegate.render(relevantModel, request, response);
}
}
public String getBookmarkUrl(Map<String, ?> model, HttpServletRequest request) throws Exception {
NativeWebRequest webRequest = new FacesWebRequest(FacesContext.getCurrentInstance());