Package javax.faces.view.facelets

Examples of javax.faces.view.facelets.TagAttribute


      * @see com.sun.faces.facelets.tag.composite.AttachedObjectTargetHandler#newAttachedObjectTargetImpl()
      */
    @Override
    AttachedObjectTargetImpl newAttachedObjectTargetImpl() {
        BehaviorHolderAttachedObjectTargetImpl target = new BehaviorHolderAttachedObjectTargetImpl();
        TagAttribute event = this.getAttribute("event");
        if (null != event) {
            target.setEvent(event.getValue());
        }
        TagAttribute defaultAttr = this.getAttribute("default");
        if (null != defaultAttr) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            FaceletContext ctx = (FaceletContext) facesContext.getAttributes()
                  .get(FaceletContext.FACELET_CONTEXT_KEY);
            target.setDefaultEvent(defaultAttr.getBoolean(ctx));
        }
        return target;
    }
View Full Code Here


        }
    }

    public String getFor()
    {
        TagAttribute forAttribute = _delegate.getTagAttribute("for");
       
        if (forAttribute == null)
        {
            return null;
        }
        else
        {
            return forAttribute.getValue();
        }
    }
View Full Code Here

        }
    }
   
    public String getValidationGroups(FaceletContext ctx)
    {
        TagAttribute attribute = _delegate.getTagAttribute("validationGroups");
       
        if (attribute == null)
        {
            return null;
        }
        else
        {
            return attribute.getValue(ctx);
        }
    }
View Full Code Here

    }

    public EventListenerHandler(TagConfig config) {
        super(config);
        this.binding = this.getAttribute("binding");
        TagAttribute type = this.getAttribute("type");
        if (type != null) {
            if (type.isLiteral()) {
                try {
                    TagHandlerUtils.loadClass(type.getValue(), Object.class);
                } catch (ClassNotFoundException e) {
                    throw new TagAttributeException(type, "Couldn't qualify EventListener", e);
                }
            } else {
                throw new TagAttributeException(type, "Must be a literal class name of type EventListener");
            }
            this.listenerType = type.getValue();
        } else {
            this.listenerType = null;
        }
    }
View Full Code Here

            throw new TagException(this.tag, "Parent does not match event source requirements: " + parent);
        }
    }

    public String getFor() {
        TagAttribute attr = this.getAttribute("for");
        return attr == null ? null : attr.getValue();
    }
View Full Code Here

    }

    private static ComponentConfig wrapConfig(ComponentConfig config) {
        TagAttributes attributes = config.getTag().getAttributes();

        TagAttribute rendererType = attributes.get("rendererType");
        TagAttribute componentType = attributes.get("componentType");

        return new ComponentConfigWrapper(getLiteralAttributeValue(componentType), getLiteralAttributeValue(rendererType),
            config);
    }
View Full Code Here

        }
    }

    public String getFor()
    {
        TagAttribute forAttribute = _delegate.getTagAttribute("for");
       
        if (forAttribute == null)
        {
            return null;
        }
        else
        {
            return forAttribute.getValue();
        }
    }
View Full Code Here

        }
    }

    public String getFor()
    {
        TagAttribute forAttribute = _delegate.getTagAttribute("for");
       
        if (forAttribute == null)
        {
            return null;
        }
        else
        {
            return forAttribute.getValue();
        }
    }
View Full Code Here

        }
    }

    public String getFor()
    {
        TagAttribute forAttribute = _delegate.getTagAttribute("for");
       
        if (forAttribute == null)
        {
            return null;
        }
        else
        {
            return forAttribute.getValue();
        }
    }
View Full Code Here

        }
    }
   
    public String getValidationGroups(FaceletContext ctx)
    {
        TagAttribute attribute = _delegate.getTagAttribute("validationGroups");
       
        if (attribute == null)
        {
            return null;
        }
        else
        {
            return attribute.getValue(ctx);
        }
    }
View Full Code Here

TOP

Related Classes of javax.faces.view.facelets.TagAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.