比如在执行一个action时出现push视图错误,加上以下代码:
public String doSomething()
{
// Push the current view root
FacesContext context = FacesContext.getCurrentInstance();
RequestContext.getCurrentInstance().getDialogService().
pushView(context.getViewRoot());
}
}