@JSFFaceletTag(name="ui:composition") public final class CompositionHandler extends TagHandler implements TemplateClient
Modifier and Type | Field and Description |
---|---|
protected Map<String,DefineHandler> |
_handlers |
protected ParamHandler[] |
_params |
protected TagAttribute |
_template
The resolvable URI of the template to use.
|
static String |
Name |
nextHandler, tag, tagId
Constructor and Description |
---|
CompositionHandler(TagConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(FaceletContext ctx,
UIComponent parent) |
boolean |
apply(FaceletContext ctx,
UIComponent parent,
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.
|
getAttribute, getRequiredAttribute, toString
public static final String Name
@JSFFaceletAttribute(name="template", className="javax.el.ValueExpression", deferredValueType="java.lang.String") protected final TagAttribute _template
protected final Map<String,DefineHandler> _handlers
protected final ParamHandler[] _params
public CompositionHandler(TagConfig config)
config
- public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, javax.el.ELException
apply
in interface FaceletHandler
IOException
FacesException
FaceletException
javax.el.ELException
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, javax.el.ELException
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 includedIOException
FacesException
FaceletException
javax.el.ELException
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.