|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.facelets.tag.TagHandler
com.sun.facelets.tag.MetaTagHandler
com.sun.facelets.tag.jsf.ComponentHandler
public class ComponentHandler
Implementation of the tag logic used in the JSF specification. This is your golden hammer for wiring UIComponents to Facelets.
Field Summary |
---|
Fields inherited from class com.sun.facelets.tag.TagHandler |
---|
nextHandler, tag, tagId |
Constructor Summary | |
---|---|
ComponentHandler(ComponentConfig config)
|
Method Summary | |
---|---|
void |
apply(FaceletContext ctx,
UIComponent parent)
Method handles UIComponent tree creation in accordance with the JSF 1.2 spec. |
protected void |
applyNextHandler(FaceletContext ctx,
UIComponent c)
|
protected UIComponent |
createComponent(FaceletContext ctx)
If the binding attribute was specified, use that in conjuction with our componentType String variable to call createComponent on the Application, otherwise just pass the componentType String. |
protected MetaRuleset |
createMetaRuleset(Class type)
Extend this method in order to add your own rules. |
protected String |
getFacetName(FaceletContext ctx,
UIComponent parent)
Return the Facet name we are scoped in, otherwise null |
protected String |
getId(FaceletContext ctx)
If the id TagAttribute was specified, get it's value, otherwise generate a unique id from our tagId. |
protected void |
onComponentCreated(FaceletContext ctx,
UIComponent c,
UIComponent parent)
A hook method for allowing developers to do additional processing once Facelets creates the component. |
protected void |
onComponentPopulated(FaceletContext ctx,
UIComponent c,
UIComponent parent)
|
Methods inherited from class com.sun.facelets.tag.MetaTagHandler |
---|
setAttributes |
Methods inherited from class com.sun.facelets.tag.TagHandler |
---|
findNextByType, getAttribute, getRequiredAttribute, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComponentHandler(ComponentConfig config)
Method Detail |
---|
public final void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, javax.el.ELException
getId(FaceletContext)
.mark
its children
for deletion.createComponent
.
attributes
finalize
for deletion.
ctx
- the current FaceletContext instance for this executionparent
- the parent UIComponent to operate upon
TagException
- if the UIComponent parent is null
IOException
FacesException
FaceletException
javax.el.ELException
FaceletHandler.apply(com.sun.facelets.FaceletContext,
javax.faces.component.UIComponent)
protected final String getFacetName(FaceletContext ctx, UIComponent parent)
ctx
-
protected UIComponent createComponent(FaceletContext ctx)
ctx
- FaceletContext to use in creating a component
Application.createComponent(javax.faces.el.ValueBinding,
javax.faces.context.FacesContext, java.lang.String)
,
Application.createComponent(java.lang.String)
protected String getId(FaceletContext ctx)
ctx
- FaceletContext to use
TagAttribute.getValue(FaceletContext)
protected MetaRuleset createMetaRuleset(Class type)
MetaTagHandler
createMetaRuleset
in class MetaTagHandler
protected void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent)
ctx
- c
- parent
- protected void onComponentPopulated(FaceletContext ctx, UIComponent c, UIComponent parent)
protected void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, javax.el.ELException
IOException
FacesException
javax.el.ELException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |