org.apache.myfaces.view.facelets.tag.jsf.core
Class AttributeHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by org.apache.myfaces.view.facelets.tag.jsf.core.AttributeHandler
All Implemented Interfaces:
AttributeHandler, FaceletHandler

@JSFFaceletTag(name="f:attribute",
               bodyContent="empty",
               tagClass="org.apache.myfaces.taglib.core.AttributeTag")
public final class AttributeHandler
extends TagHandler
implements AttributeHandler

Sets the specified name and attribute on the parent UIComponent. If the "value" specified is not a literal, it will instead set the ValueExpression on the UIComponent.

See tag documentation.

Version:
$Id: AttributeHandler.java 1187700 2011-10-22 12:19:37Z bommel $
Author:
Jacob Hookom
See Also:
UIComponent.getAttributes(), UIComponent.setValueExpression(java.lang.String, javax.el.ValueExpression)

Field Summary
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
AttributeHandler(TagConfig config)
           
 
Method Summary
 void apply(FaceletContext ctx, UIComponent parent)
           
 String getAttributeName(FaceletContext ctx)
           
 
Methods inherited from class javax.faces.view.facelets.TagHandler
getAttribute, getRequiredAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeHandler

public AttributeHandler(TagConfig config)
Parameters:
config -
Method Detail

apply

public void apply(FaceletContext ctx,
                  UIComponent parent)
           throws IOException,
                  FacesException,
                  FaceletException,
                  javax.el.ELException
Specified by:
apply in interface FaceletHandler
Throws:
IOException
FacesException
FaceletException
javax.el.ELException

getAttributeName

public String getAttributeName(FaceletContext ctx)
Specified by:
getAttributeName in interface AttributeHandler


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.