Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.facelets.tag.jsf
Class ComponentSupport  view ComponentSupport download ComponentSupport.java

java.lang.Object
  extended bycom.sun.facelets.tag.jsf.ComponentSupport

public final class ComponentSupport
extends java.lang.Object

Version:
$Id: ComponentSupport.java,v 1.6 2006/05/31 04:11:58 jhook Exp $

Field Summary
static java.lang.String MARK_CREATED
           
private static java.lang.String MARK_DELETED
           
 
Constructor Summary
ComponentSupport()
           
 
Method Summary
static void encodeRecursive(javax.faces.context.FacesContext context, javax.faces.component.UIComponent viewToRender)
           
static void finalizeForDeletion(javax.faces.component.UIComponent c)
          Used in conjunction with markForDeletion where any UIComponent marked will be removed.
static javax.faces.component.UIComponent findChild(javax.faces.component.UIComponent parent, java.lang.String id)
          A lighter-weight version of UIComponent's findChild.
static javax.faces.component.UIComponent findChildByTagId(javax.faces.component.UIComponent parent, java.lang.String id)
          By TagId, find Child
static java.util.Locale getLocale(com.sun.facelets.FaceletContext ctx, com.sun.facelets.tag.TagAttribute attr)
          According to JSF 1.2 tag specs, this helper method will use the TagAttribute passed in determining the Locale intended.
static javax.faces.component.UIViewRoot getViewRoot(com.sun.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent)
          Tries to walk up the parent to find the UIViewRoot, if not found, then go to FaceletContext's FacesContext for the view root.
static boolean isNew(javax.faces.component.UIComponent component)
          Determine if the passed component is not null and if it's new to the tree.
static void markForDeletion(javax.faces.component.UIComponent c)
          Marks all direct children and Facets with an attribute for deletion.
static void removeTransient(javax.faces.component.UIComponent c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARK_DELETED

private static final java.lang.String MARK_DELETED
See Also:
Constant Field Values

MARK_CREATED

public static final java.lang.String MARK_CREATED
See Also:
Constant Field Values
Constructor Detail

ComponentSupport

public ComponentSupport()
Method Detail

finalizeForDeletion

public static final void finalizeForDeletion(javax.faces.component.UIComponent c)
Used in conjunction with markForDeletion where any UIComponent marked will be removed.


findChild

public static final javax.faces.component.UIComponent findChild(javax.faces.component.UIComponent parent,
                                                                java.lang.String id)
A lighter-weight version of UIComponent's findChild.


findChildByTagId

public static final javax.faces.component.UIComponent findChildByTagId(javax.faces.component.UIComponent parent,
                                                                       java.lang.String id)
By TagId, find Child


getLocale

public static final java.util.Locale getLocale(com.sun.facelets.FaceletContext ctx,
                                               com.sun.facelets.tag.TagAttribute attr)
                                        throws com.sun.facelets.tag.TagAttributeException
According to JSF 1.2 tag specs, this helper method will use the TagAttribute passed in determining the Locale intended.


getViewRoot

public static final javax.faces.component.UIViewRoot getViewRoot(com.sun.facelets.FaceletContext ctx,
                                                                 javax.faces.component.UIComponent parent)
Tries to walk up the parent to find the UIViewRoot, if not found, then go to FaceletContext's FacesContext for the view root.


markForDeletion

public static final void markForDeletion(javax.faces.component.UIComponent c)
Marks all direct children and Facets with an attribute for deletion.


encodeRecursive

public static final void encodeRecursive(javax.faces.context.FacesContext context,
                                         javax.faces.component.UIComponent viewToRender)
                                  throws java.io.IOException,
                                         javax.faces.FacesException

removeTransient

public static void removeTransient(javax.faces.component.UIComponent c)

isNew

public static final boolean isNew(javax.faces.component.UIComponent component)
Determine if the passed component is not null and if it's new to the tree. This operation can be used for determining if attributes should be wired to the component.