public abstract class MetaTagHandler extends TagHandler
Every kind of markup element in Facelets VDL that has attributes that need to take action on a JSF Java API artifact is associated with an instance of this class. This class is an abstraction to enable a rule based method for directing how different kinds of elements take different kinds of actions in the JSF Java API. For example, consider this markup:
This markup element corresponds to an instance of
HtmlInputText in the view.
HtmlImputText has a number of attributes that are to be exposed
to the page author.
HtmlInputText also implements
EditableValueHolder, which extends
ValueHolder. Each of these interfaces also
expose a number of attributes to the page author.
Facelets employes the strategy pattern to allow the manner in which all possible attributes are handled based on the nature of the JSF Java API artifact associated with the markup element.
Subclasses override the
createMetaRuleset(java.lang.Class) method to return a
MetaRuleset instance encapsulating all the strategies for all the
attributes that make sense for this particular markup element. The runtime
setAttributes(FaceletContext, Object) method to cause
those rules to be executed and applied.
|Constructor and Description
|Modifier and Type
|Method and Description
protected abstract MetaRuleset
Extend this method in order to add your own rules.
Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.
getAttribute, getRequiredAttribute, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public MetaTagHandler(TagConfig config)
config - the tag configuration.
protected abstract MetaRuleset createMetaRuleset(Class type)
type - the type.
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.