com.sun.faces.facelets.tag
final class UserTagHandler extends TagHandlerImpl implements TemplateClient
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
handlers |
protected java.net.URL |
location |
protected javax.faces.view.facelets.TagAttribute[] |
vars |
Constructor and Description |
---|
UserTagHandler(javax.faces.view.facelets.TagConfig config,
java.net.URL location) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctxObj,
javax.faces.component.UIComponent parent)
Iterate over all TagAttributes and set them on the FaceletContext's
VariableMapper, then include the target Facelet.
|
boolean |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent,
java.lang.String name)
This contract is much like the normal FaceletHandler.apply method, but it
takes in an optional String name which tells this instance what
fragment/definition it's looking for.
|
findNextByType, findNextByType
protected final javax.faces.view.facelets.TagAttribute[] vars
protected final java.net.URL location
protected final java.util.Map handlers
public UserTagHandler(javax.faces.view.facelets.TagConfig config, java.net.URL location)
config
- public void apply(javax.faces.view.facelets.FaceletContext ctxObj, javax.faces.component.UIComponent parent) throws java.io.IOException
apply
in interface javax.faces.view.facelets.FaceletHandler
java.io.IOException
TagAttribute.getValueExpression(FaceletContext, Class)
,
VariableMapper
,
FaceletHandler.apply(javax.faces.view.facelets.FaceletContext, javax.faces.component.UIComponent)
public boolean apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent, java.lang.String name) throws java.io.IOException
TemplateClient
apply
in interface TemplateClient
ctx
- the FaceletContext of your instance, not the
templates'parent
- current UIComponent instance to be appliedname
- the String name or null if the whole body should be includedjava.io.IOException
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.