public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException { try { ComponentConfig ccfg = new ComponentConfigWrapper(cfg, componentType, renderType); return constructor.newInstance(new Object[] { ccfg }); } catch (InvocationTargetException e) { throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause()); } catch (Exception e) { throw new FaceletException("Error Instantiating ComponentHandler: " + this.type.getName(), e); } } }
public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException { FacesContext facesContext = FacesContext.getCurrentInstance(); ResourceHandler resourceHandler = facesContext.getApplication().getResourceHandler(); Resource compositeComponentResourceWrapped = resourceHandler.createResourceFromId(resourceId); if (compositeComponentResourceWrapped != null) { Resource compositeComponentResource = new CompositeResouceWrapper(compositeComponentResourceWrapped); ComponentConfig componentConfig = new ComponentConfigWrapper(cfg, "javax.faces.NamingContainer", null); return new CompositeComponentResourceTagHandler(componentConfig, compositeComponentResource); } else { throw new FaceletException( "Error Instantiating Component from <resource-id> declaration: " + this.resourceId); } } }
public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException { try { ComponentConfig ccfg = new ComponentConfigWrapper(cfg, componentType, renderType); return constructor.newInstance(new Object[] { ccfg }); } catch (InvocationTargetException e) { throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause()); } catch (Exception e) { throw new FaceletException("Error Instantiating ComponentHandler: " + this.type.getName(), e); } } }
public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException { try { ComponentConfig ccfg = new ComponentConfigWrapper(cfg, componentType, renderType); return constructor.newInstance(new Object[] { ccfg }); } catch (InvocationTargetException e) { throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause()); } catch (Exception e) { throw new FaceletException("Error Instantiating ComponentHandler: " + this.type.getName(), e); } } }
public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException { ComponentConfig ccfg = new ComponentConfigWrapper(cfg, this.componentType, this.renderType); return new ComponentHandler(ccfg); } }
public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException { ComponentConfig ccfg = new ComponentConfigWrapper(cfg, this.componentType, this.renderType); return new ComponentHandler(ccfg); } }
public TagHandler createHandler(TagConfig cfg) throws FacesException, ELException { ComponentConfig ccfg = new ComponentConfigWrapper(cfg, this.componentType, this.renderType); return new ComponentHandler(ccfg); } }