IT. Expert System.

Java Enterprise Edition (EE)

MetaTagHandler


javax.faces.view.facelets
Class MetaTagHandler

java.lang.Object
  javax.faces.view.facelets.TagHandler
      javax.faces.view.facelets.MetaTagHandler
All Implemented Interfaces:
FaceletHandler
Direct Known Subclasses:
DelegatingMetaTagHandler
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:

<h:inputText value="#{user.userid}" 
                valueChangeListener="#{user.newUserId}" />

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 calls the setAttributes(FaceletContext, Object) method to cause those rules to be executed and applied.

Since:
2.0

Field Summary
 
Fields inherited from class javax.faces.view.facelets.TagHandler
nextHandler, tag, tagId
 
Constructor Summary
MetaTagHandler(TagConfig config)
           
 
Method Summary
protected abstract  MetaRuleset createMetaRuleset(java.lang.Class type)
          Extend this method in order to add your own rules.
protected  void setAttributes(FaceletContext ctx, java.lang.Object instance)
          Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.
 
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
 
Methods inherited from interface javax.faces.view.facelets.FaceletHandler
apply
 

Constructor Detail

MetaTagHandler

public MetaTagHandler(TagConfig config)
Method Detail

createMetaRuleset

protected abstract MetaRuleset createMetaRuleset(java.lang.Class type)
Extend this method in order to add your own rules.

Parameters:
type -

setAttributes

protected void setAttributes(FaceletContext ctx,
                             java.lang.Object instance)
Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance.

Parameters:
ctx -
instance -


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1963 / . Delta: 0.02630 с