Top Fields Constructors Methods
com.sun.faces.facelets.compiler

public final Class UIText

extends UILeaf
Class Inheritance
Imports
com.sun.faces.facelets.el.ELText, javax.el.ELException, javax.faces.context.FacesContext, .ResponseWriter, java.io.IOException

Author
Jacob Hookom
Version
$Id$

Field Summary

Modifier and TypeField and Description
private final String
private final ELText

Constructor Summary

AccessConstructor and Description
public
UIText(String alias, ELText txt)

Method Summary

Modifier and TypeMethod and Description
public void
encodeBegin(FacesContext
FacesContext for the response we are creating
context
)

Overrides com.sun.faces.facelets.compiler.UILeaf.encodeBegin.

If our rendered property is true, render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext.

public String
getFamily()

Overrides com.sun.faces.facelets.compiler.UILeaf.getFamily.

Return the identifier of the component family to which this component belongs.

public String
public boolean
getRendersChildren()

Overrides com.sun.faces.facelets.compiler.UILeaf.getRendersChildren.

Return a flag indicating whether this component is responsible for rendering its child components.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from com.sun.faces.facelets.compiler.UILeaf:
addFacesListenerbroadcastdecodeencodeAllencodeChildrenencodeEndfindComponentgetChildCountgetChildrengetFacesContextgetFacesListenersgetFacetgetFacetCountgetFacetsgetFacetsAndChildrengetParentgetRenderergetValueBindinggetValueExpressionisTransientprocessDecodesprocessUpdatesprocessValidatorsqueueEventremoveFacesListenersetParentsetRendererTypesetTransientsetValueBindingsetValueExpression

Field Detail

aliasback to summary
private final String alias
txtback to summary
private final ELText txt

Constructor Detail

UITextback to summary
public UIText(String alias, ELText txt)

Method Detail

encodeBeginback to summary
public void encodeBegin(FacesContext context) throws IOException

Overrides com.sun.faces.facelets.compiler.UILeaf.encodeBegin.

Doc from javax.faces.component.UIComponent.encodeBegin.

If our rendered property is true, render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. Call pushComponentToEL(javax.faces.context.FacesContext, javax.faces.component.UIComponent). Call javax.faces.application.Application#publishEvent, passing javax.faces.event.PreRenderComponentEvent.class as the first argument and the component instance to be rendered as the second argument.

If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeBegin(FacesContext, UIComponent).

If our rendered property is false, call pushComponentToEL(javax.faces.context.FacesContext, javax.faces.component.UIComponent) and return immediately.

Parameters
context:FacesContext

FacesContext for the response we are creating

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs while rendering
getFamilyback to summary
public String getFamily()

Overrides com.sun.faces.facelets.compiler.UILeaf.getFamily.

Doc from javax.faces.component.UIComponent.getFamily.

Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null

Returns:String

the component family (not null).

Annotations
@Override
getRendererTypeback to summary
public String getRendererType()

Overrides com.sun.faces.facelets.compiler.UILeaf.getRendererType.

Doc from javax.faces.component.UIComponent.getRendererType.

Return the Renderer type for this UIComponent (if any).

Returns:String

the renderer type.

Annotations
@Override
getRendersChildrenback to summary
public boolean getRendersChildren()

Overrides com.sun.faces.facelets.compiler.UILeaf.getRendersChildren.

Doc from javax.faces.component.UIComponent.getRendersChildren.

Return a flag indicating whether this component is responsible for rendering its child components. The default implementation in UIComponentBase#getRendersChildren tries to find the renderer for this component. If it does, it calls Renderer#getRendersChildren and returns the result. If it doesn't, it returns false. As of version 1.2 of the JavaServer Faces Specification, component authors are encouraged to return true from this method and rely on UIComponentBase#encodeChildren.

Returns:boolean

true if the component renders its children, false otherwise.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override