org.apache.myfaces.view.facelets.tag.composite
Class InsertFacetHandler

java.lang.Object
  extended by javax.faces.view.facelets.TagHandler
      extended by org.apache.myfaces.view.facelets.tag.composite.InsertFacetHandler
All Implemented Interfaces:
FaceletHandler

@JSFFaceletTag(name="composite:insertFacet")
public class InsertFacetHandler
extends TagHandler

Insert or move the facet from the composite component body to the expected location.

Version:
$Revision: 1194861 $ $Date: 2011-10-29 05:02:34 -0500 (Sat, 29 Oct 2011) $
Author:
Leonardo Uribe (latest modification by $Author: struberg $)

Field Summary
protected  TagAttribute _name
          The name that identify the current facet.
protected  TagAttribute _required
          Define if the facet to be inserted is required or not for every instance of this composite component.
static String INSERT_FACET_KEYS
          Key used to save on bean descriptor a map containing the metadata information related to this tag.
static String INSERT_FACET_USED
           
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
InsertFacetHandler(TagConfig config)
           
 
Method Summary
 void apply(FaceletContext ctx, UIComponent parent)
           
 String getFacetName(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
 

Field Detail

INSERT_FACET_USED

public static final String INSERT_FACET_USED
See Also:
Constant Field Values

INSERT_FACET_KEYS

public static final String INSERT_FACET_KEYS
Key used to save on bean descriptor a map containing the metadata information related to this tag. It will be used later to check "required" property.

See Also:
Constant Field Values

_name

@JSFFaceletAttribute(name="name",
                     className="javax.el.ValueExpression",
                     deferredValueType="java.lang.String",
                     required=true)
protected final TagAttribute _name
The name that identify the current facet.


_required

@JSFFaceletAttribute(name="required",
                     className="javax.el.ValueExpression",
                     deferredValueType="boolean")
protected final TagAttribute _required
Define if the facet to be inserted is required or not for every instance of this composite component.

Constructor Detail

InsertFacetHandler

public InsertFacetHandler(TagConfig config)
Method Detail

getFacetName

public String getFacetName(FaceletContext ctx)

apply

public void apply(FaceletContext ctx,
                  UIComponent parent)
           throws IOException
Throws:
IOException


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