public StackHandler(ComponentConfig componentConfig) { super(componentConfig); Tag tag = componentConfig.getTag(); selectedIdTag = tag.getAttributes().get("selectedId"); }
/** * @param config */ public LanguageAwareIncludeHandler(ComponentConfig config) { super(config); TagAttribute attr = null; attr = config.getTag().getAttributes().get("src"); if (null == attr) { attr = config.getTag().getAttributes().get("file"); } if (null == attr) { attr = config.getTag().getAttributes().get("page"); } if (null == attr) { throw new TagException(config.getTag(), "Attribute 'src', 'file' or 'page' is required"); } this.src = attr; this.config = config; }
public CompositeComponentTagHandler(Resource ccResource, ComponentConfig config) { super(config); this.ccResource = ccResource; this.binding = config.getTag().getAttributes().get("binding"); ((ComponentTagHandlerDelegateImpl)this.getTagHandlerDelegate()).setCreateCompositeComponentDelegate(this); }
public CompositeComponentTagHandler(Resource ccResource, ComponentConfig config) { super(config); this.ccResource = ccResource; this.binding = config.getTag().getAttributes().get("binding"); ((ComponentTagHandlerDelegateImpl)this.getTagHandlerDelegate()).setCreateCompositeComponentDelegate(this); }
public TagAttribute getTagAttribute(String localName) { // workaround for MyFaces if (componentHandler == null) { return getComponentConfig().getTag().getAttributes().get(localName); } return componentHandler.getTagAttribute(localName); }
public CompositeComponentTagHandler(Resource ccResource, ComponentConfig config) { super(config); this.ccResource = ccResource; this.binding = config.getTag().getAttributes().get("binding"); ((ComponentTagHandlerDelegateImpl)this.getTagHandlerDelegate()).setCreateCompositeComponentDelegate(this); }
public CompositeComponentTagHandler(Resource ccResource, ComponentConfig config) { super(config); this.ccResource = ccResource; this.binding = config.getTag().getAttributes().get("binding"); ((ComponentTagHandlerDelegateImpl)this.getTagHandlerDelegate()).setCreateCompositeComponentDelegate(this); }
public TagAttribute getTagAttribute(String localName) { // workaround for MyFaces if (componentHandler == null) { return getComponentConfig().getTag().getAttributes().get(localName); } return componentHandler.getTagAttribute(localName); }
public TagAttribute getTagAttribute(String localName) { // workaround for MyFaces if (componentHandler == null) { return getComponentConfig().getTag().getAttributes().get(localName); } return componentHandler.getTagAttribute(localName); }
@Override public Tag getTag() { Tag tag = config.getTag(); TagAttribute[] newAttributes = new TagAttribute[1]; final String filename = src.getValue(); final String modifiedFilename; if (language == null || language.length() == 0) modifiedFilename = filename; else modifiedFilename = filename.replace(".xhtml", "_" + language + ".xhtml"); newAttributes[0] = TagAttributeUtilities.createTagAttribute(tag.getLocation(), "", "src", "src", modifiedFilename); TagAttributes modified = new AFTagAttributes(newAttributes); Tag newTag = new Tag(tag.getLocation(), "http://xmlns.jcp.org/jsf/html", tag.getLocalName(), tag.getQName(), modified); return newTag; }
public StackPaneHandler(ComponentConfig componentConfig) { super(componentConfig); Tag tag = componentConfig.getTag(); facelet = tag.getAttributes().get("facelet"); client = tag.getAttributes().get("client"); savedId = tag.getAttributes().get("id"); } @Override