4748495051525354555657
FacesContext context = FacesContext.getCurrentInstance(); UIViewRoot root = context.getViewRoot(); if (root != null) { root.subscribeToViewEvent(PreRenderViewEvent.class, this); } } // // Public methods
4849505152535455565758
4647484950515253545556
setRendererType(null); FacesContext context = FacesContext.getCurrentInstance(); UIViewRoot root = context.getViewRoot(); root.subscribeToViewEvent(PreRenderViewEvent.class, this); } // // Public methods //
4546474849505152535455
4445464748495051525354
setRendererType("testcomponent"); FacesContext context = FacesContext.getCurrentInstance(); UIViewRoot root = context.getViewRoot(); root.subscribeToViewEvent(PreRenderViewEvent.class, this); } // // Public methods //
4243444546474849505152
setRendererType("testcomponentself"); FacesContext context = FacesContext.getCurrentInstance(); UIViewRoot root = context.getViewRoot(); root.subscribeToViewEvent(PreRenderViewEvent.class, this); } // // Public methods //
4344454647484950515253