@Override public UIViewRoot createView(FacesContext ctx, String viewId) { return viewHandler.createView(ctx, viewId); }
@Override public UIViewRoot createView(final FacesContext context, final String viewId) { // TODO move DynaView intercepter here UIViewRoot view = parent.createView(context, viewId); // addPrettyViewParameters(context, view); return view; }
/** * <p>Pass through to the default view handler.</p> * */ public UIViewRoot createView(FacesContext context, String viewId) { return defaultViewHandler.createView(context, viewId); }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#createView(javax.faces.context.FacesContext, String)} * on the wrapped {@link ViewHandler} object.</p> * * @see ViewHandler#createView(javax.faces.context.FacesContext, String) * @since 1.2 */ @Override public UIViewRoot createView(FacesContext context, String viewId) { return getWrapped().createView(context, viewId); }
public UIViewRoot createView(FacesContext arg0, String arg1) { UIViewRoot root = m_wrapped.createView(arg0, arg1); if (root != null) { // restore messages MessageSaver.restoreMessages(arg0); } return root; }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#createView(javax.faces.context.FacesContext, String)} * on the wrapped {@link ViewHandler} object.</p> * * @see ViewHandler#createView(javax.faces.context.FacesContext, String) * @since 1.2 */ @Override public UIViewRoot createView(FacesContext context, String viewId) { return getWrapped().createView(context, viewId); }
@Override public UIViewRoot createView(FacesContext context, String viewId) { return getWrapped().createView(context, viewId); }
public UIViewRoot createView(FacesContext arg0, String arg1) { UIViewRoot root = m_wrapped.createView(arg0, arg1); if (root != null) { // restore messages MessageSaver.restoreMessages(arg0); } return root; }
/** * <p>The default behavior of this method is to * call {@link ViewHandler#createView(javax.faces.context.FacesContext, String)} * on the wrapped {@link ViewHandler} object.</p> * * @see ViewHandler#createView(javax.faces.context.FacesContext, String) * @since 1.2 */ @Override public UIViewRoot createView(FacesContext context, String viewId) { return getWrapped().createView(context, viewId); }
String viewId = "/path/to/some.xhtml"; FacesContext context = FacesContext.getCurrentInstance(); ViewHandler viewHandler = context.getApplication().getViewHandler(); UIViewRoot view = viewHandler.createView(context, viewId); viewHandler.getViewDeclarationLanguage(context, viewId).buildView(context, view); // view should now have children.
/** * <p>The default behavior of this method is to * call {@link ViewHandler#createView(javax.faces.context.FacesContext, String)} * on the wrapped {@link ViewHandler} object.</p> * * @see ViewHandler#createView(javax.faces.context.FacesContext, String) * @since 1.2 */ public UIViewRoot createView(FacesContext context, String viewId) { return getWrapped().createView(context, viewId); }
/** * @see Faces#setViewRoot(String) */ public static void setViewRoot(FacesContext context, String viewId) { context.setViewRoot(context.getApplication().getViewHandler().createView(context, viewId)); }
/** * @see Faces#setViewRoot(String) */ public static void setViewRoot(FacesContext context, String viewId) { context.setViewRoot(context.getApplication().getViewHandler().createView(context, viewId)); }
public UIViewRoot createView(FacesContext arg0, String arg1) { UIViewRoot root = getWrapped().createView(arg0, arg1); if (root != null) { // restore messages MessageSaver.restoreMessages(arg0); } return root; }
public UIViewRoot createView(FacesContext context, String viewId) { if (UIDebug.debugRequest(context)) { return new UIViewRoot(); } return this.parent.createView(context, viewId); }
public void resetView(boolean renderResponse) { FacesContext facesContext = FacesContext.getCurrentInstance(); ViewHandler viewHandler = facesContext.getApplication().getViewHandler(); UIViewRoot emptyView = viewHandler.createView(facesContext, facesContext.getViewRoot().getViewId()); facesContext.setViewRoot(emptyView); if (renderResponse) { facesContext.renderResponse(); } }
/** * Proceed to render the Page. */ protected void render(FacesContext context, Page page) { UIViewRoot viewRoot = context.getApplication().getViewHandler() .createView( context, getViewId(page) ); context.setViewRoot(viewRoot); }
@Override public void recreateComponentTree(FacesContext facesContext) { Application application = facesContext.getApplication(); ViewHandler viewHandler = application.getViewHandler(); UIViewRoot oldViewRoot = facesContext.getViewRoot(); UIViewRoot viewRoot = viewHandler.createView(facesContext, oldViewRoot.getViewId()); facesContext.setViewRoot(viewRoot); facesContext.renderResponse(); }
protected void render(FacesContext context, ViewHandler viewHandler, String newViewId) { UIViewRoot viewRoot = viewHandler.createView(context, newViewId); viewRoot.setViewId(newViewId); context.setViewRoot(viewRoot); context.renderResponse(); }
private void renderErrorPage(final FacesContext facesContext, final String errorPageLocation) throws IOException { final ViewHandler viewHandler = facesContext.getApplication().getViewHandler(); final UIViewRoot viewRoot = viewHandler.createView(facesContext, errorPageLocation); facesContext.setViewRoot(viewRoot); facesContext.getPartialViewContext().setRenderAll(true); final ViewDeclarationLanguage viewDeclarationLanguage = viewHandler .getViewDeclarationLanguage(facesContext, errorPageLocation); viewDeclarationLanguage.buildView(facesContext, viewRoot); facesContext.getApplication().publishEvent(facesContext, PreRenderViewEvent.class, viewRoot); viewDeclarationLanguage.renderView(facesContext, viewRoot); facesContext.responseComplete(); }