public CompositeComponentResourceTagHandler(ComponentConfig config, Resource resource) { super(config); _resource = resource; _facetHandlers = TagHandlerUtils.findNextByType(nextHandler, javax.faces.view.facelets.FacetHandler.class, InsertFacetHandler.class); _componentHandlers = TagHandlerUtils.findNextByType(nextHandler, javax.faces.view.facelets.ComponentHandler.class, ComponentContainerHandler.class, TextHandler.class); _dynamicCompositeComponent = false; }
public CompositeComponentResourceTagHandler(ComponentConfig config, Resource resource) { super(config); _resource = resource; _facetHandlers = TagHandlerUtils.findNextByType(nextHandler, javax.faces.view.facelets.FacetHandler.class, InsertFacetHandler.class); _componentHandlers = TagHandlerUtils.findNextByType(nextHandler, javax.faces.view.facelets.ComponentHandler.class, InsertChildrenHandler.class, InsertHandler.class, DecorateHandler.class, IncludeHandler.class, TextHandler.class); }
public CompositeComponentResourceTagHandler(ComponentConfig config, Resource resource) { super(config); _resource = resource; _facetHandlers = TagHandlerUtils.findNextByType(nextHandler, javax.faces.view.facelets.FacetHandler.class, InsertFacetHandler.class); _componentHandlers = TagHandlerUtils.findNextByType(nextHandler, javax.faces.view.facelets.ComponentHandler.class, InsertChildrenHandler.class, InsertHandler.class, DecorateHandler.class, IncludeHandler.class, TextHandler.class); }
/** * @param config */ public IncludeHandler(TagConfig config) { super(config); this.src = this.getRequiredAttribute("src"); Collection<ParamHandler> params = TagHandlerUtils.findNextByType(nextHandler, ParamHandler.class); if (!params.isEmpty()) { int i = 0; _params = new ParamHandler[params.size()]; for (ParamHandler handler : params) { _params[i++] = handler; } } else { _params = null; } }
public ChooseHandler(TagConfig config) { super(config); List<ChooseWhenHandler> whenList = new ArrayList<ChooseWhenHandler>(); for (ChooseWhenHandler handler : TagHandlerUtils.findNextByType(nextHandler, ChooseWhenHandler.class)) { whenList.add(handler); } if (whenList.isEmpty()) { throw new TagException(this.tag, "Choose Tag must have one or more When Tags"); } this.when = (ChooseWhenHandler[]) whenList.toArray(new ChooseWhenHandler[whenList.size()]); Iterator<ChooseOtherwiseHandler> itrOtherwise = TagHandlerUtils.findNextByType(nextHandler, ChooseOtherwiseHandler.class).iterator(); if (itrOtherwise.hasNext()) { this.otherwise = itrOtherwise.next(); } else { this.otherwise = null; } }
public ChooseHandler(TagConfig config) { super(config); List<ChooseWhenHandler> whenList = new ArrayList<ChooseWhenHandler>(); for (ChooseWhenHandler handler : TagHandlerUtils.findNextByType(nextHandler, ChooseWhenHandler.class)) { whenList.add(handler); } if (whenList.isEmpty()) { throw new TagException(this.tag, "Choose Tag must have one or more When Tags"); } this.when = (ChooseWhenHandler[]) whenList.toArray(new ChooseWhenHandler[whenList.size()]); Iterator<ChooseOtherwiseHandler> itrOtherwise = TagHandlerUtils.findNextByType(nextHandler, ChooseOtherwiseHandler.class).iterator(); if (itrOtherwise.hasNext()) { this.otherwise = itrOtherwise.next(); } else { this.otherwise = null; } }
public ChooseHandler(TagConfig config) { super(config); List<ChooseWhenHandler> whenList = new ArrayList<ChooseWhenHandler>(); for (ChooseWhenHandler handler : TagHandlerUtils.findNextByType(nextHandler, ChooseWhenHandler.class)) { whenList.add(handler); } if (whenList.isEmpty()) { throw new TagException(this.tag, "Choose Tag must have one or more When Tags"); } this.when = (ChooseWhenHandler[]) whenList.toArray(new ChooseWhenHandler[whenList.size()]); Iterator<ChooseOtherwiseHandler> itrOtherwise = TagHandlerUtils.findNextByType(nextHandler, ChooseOtherwiseHandler.class).iterator(); if (itrOtherwise.hasNext()) { this.otherwise = itrOtherwise.next(); } else { this.otherwise = null; } }
public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) { StringBuffer content = new StringBuffer(); for (TextHandler handler : TagHandlerUtils.findNextByType(nextHandler, TextHandler.class)) { content.append(handler.getText(ctx)); } c.getAttributes().put("value", content.toString()); c.getAttributes().put("escape", Boolean.FALSE); c.setTransient(true); }
/** * @param config */ public LegacyIncludeHandler(TagConfig config) { super(config); this.src = this.getRequiredAttribute("src"); Collection<LegacyParamHandler> params = TagHandlerUtils.findNextByType(nextHandler, LegacyParamHandler.class); if (!params.isEmpty()) { int i = 0; _params = new LegacyParamHandler[params.size()]; for (LegacyParamHandler handler : params) { _params[i++] = handler; } } else { _params = null; } }
public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) { StringBuffer content = new StringBuffer(); for (TextHandler handler : TagHandlerUtils.findNextByType(nextHandler, TextHandler.class)) { content.append(handler.getText(ctx)); } c.getAttributes().put("value", content.toString()); c.getAttributes().put("escape", Boolean.FALSE); c.setTransient(true); }
public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) { StringBuffer content = new StringBuffer(); for (TextHandler handler : TagHandlerUtils.findNextByType(nextHandler, TextHandler.class)) { content.append(handler.getText(ctx)); } c.getAttributes().put("value", content.toString()); c.getAttributes().put("escape", Boolean.FALSE); c.setTransient(true); }
/** * @param config */ public UserTagHandler(TagConfig config, URL location) { super(config); this._vars = this.tag.getAttributes().getAll(); this._location = location; Collection<DefineHandler> defines = TagHandlerUtils.findNextByType(nextHandler, DefineHandler.class); if (defines.isEmpty()) { _handlers = null; } else { _handlers = new HashMap<String, DefineHandler>(); for (DefineHandler handler : defines) { _handlers.put(handler.getName(), handler); } } }
/** * @param config */ public LegacyUserTagHandler(TagConfig config, URL location) { super(config); this._vars = this.tag.getAttributes().getAll(); this._location = location; Collection<DefineHandler> defines = TagHandlerUtils.findNextByType(nextHandler, DefineHandler.class); if (defines.isEmpty()) { _handlers = null; } else { _handlers = new HashMap<String, DefineHandler>(); for (DefineHandler handler : defines) { _handlers.put(handler.getName(), handler); } } }
/** * @param config */ public UserTagHandler(TagConfig config, URL location) { super(config); this._vars = this.tag.getAttributes().getAll(); this._location = location; Collection<DefineHandler> defines = TagHandlerUtils.findNextByType(nextHandler, DefineHandler.class); if (defines.isEmpty()) { _handlers = null; } else { _handlers = new HashMap<String, DefineHandler>(); for (DefineHandler handler : defines) { _handlers.put(handler.getName(), handler); } } }
/** * @param config */ public UserTagHandler(TagConfig config, URL location) { super(config); this._vars = this.tag.getAttributes().getAll(); this._location = location; Collection<DefineHandler> defines = TagHandlerUtils.findNextByType(nextHandler, DefineHandler.class); if (defines.isEmpty()) { _handlers = null; } else { _handlers = new HashMap<String, DefineHandler>(); for (DefineHandler handler : defines) { _handlers.put(handler.getName(), handler); } } }
public CompositeComponentDefinitionTagHandler(FaceletHandler next) { this._nextHandler = next; _cacheable = true; _interfaceHandler = TagHandlerUtils.findFirstNextByType(_nextHandler, InterfaceHandler.class); _implementationHandler = TagHandlerUtils.findFirstNextByType(_nextHandler, ImplementationHandler.class); Collection<InterfaceDescriptorCreator> metadataInterfaceHandlerList = TagHandlerUtils.findNextByType( _nextHandler, InterfaceDescriptorCreator.class); for (InterfaceDescriptorCreator handler : metadataInterfaceHandlerList) { if (!handler.isCacheable()) { _cacheable = false; break; } } if (!_cacheable) { for (InterfaceDescriptorCreator handler : metadataInterfaceHandlerList) { handler.setCacheable(false); } } }
public CompositeComponentDefinitionTagHandler(FaceletHandler next) { this._nextHandler = next; _cacheable = true; _interfaceHandler = TagHandlerUtils.findFirstNextByType(_nextHandler, InterfaceHandler.class); _implementationHandler = TagHandlerUtils.findFirstNextByType(_nextHandler, ImplementationHandler.class); Collection<InterfaceDescriptorCreator> metadataInterfaceHandlerList = TagHandlerUtils.findNextByType( _nextHandler, InterfaceDescriptorCreator.class); for (InterfaceDescriptorCreator handler : metadataInterfaceHandlerList) { if (!handler.isCacheable()) { _cacheable = false; break; } } if (!_cacheable) { for (InterfaceDescriptorCreator handler : metadataInterfaceHandlerList) { handler.setCacheable(false); } } }
public CompositeComponentDefinitionTagHandler(FaceletHandler next) { this._nextHandler = next; _cacheable = true; _interfaceHandler = TagHandlerUtils.findFirstNextByType(_nextHandler, InterfaceHandler.class); _implementationHandler = TagHandlerUtils.findFirstNextByType(_nextHandler, ImplementationHandler.class); Collection<InterfaceDescriptorCreator> metadataInterfaceHandlerList = TagHandlerUtils.findNextByType( _nextHandler, InterfaceDescriptorCreator.class); for (InterfaceDescriptorCreator handler : metadataInterfaceHandlerList) { if (!handler.isCacheable()) { _cacheable = false; break; } } if (!_cacheable) { for (InterfaceDescriptorCreator handler : metadataInterfaceHandlerList) { handler.setCacheable(false); } } }
TagHandlerUtils.findNextByType(nextHandler, ComponentHandler.class, InsertChildrenHandler.class, InsertHandler.class, DecorateHandler.class, IncludeHandler.class);
TagHandlerUtils.findNextByType(nextHandler, ComponentHandler.class, InsertChildrenHandler.class, InsertHandler.class, DecorateHandler.class, IncludeHandler.class);