see http://mail-archives.apache.org/mod_mbox/myfaces-users/201203.mbox/%3CCAPyf0geF3aQkhqrCi-7EE293FAai76fzC7t90ehE%3D8NLyPQUrw%40mail.gmail.com%3E
workaround without redirect - example:
//...
public class CustomPageBean
{
@Inject
private ViewConfigResolver viewConfigResolver;
@PreRenderView
protected void showCustomView()
{
ViewConfigDescriptor viewConfigDescriptor = this.viewConfigResolver.getViewConfigDescriptor(CustomView.class);
FacesContext facesContext = FacesContext.getCurrentInstance();
ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
UIViewRoot targetView = viewHandler.createView(facesContext, viewConfigDescriptor.getViewId());
facesContext.setViewRoot(targetView);
}
}
//+ configure CustomPageBean as page-bean