java.lang.Object
com.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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ComponentSupport
public ComponentSupport()
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.