Class Hierarchy All Classes All Fields and Methods

 

Class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer

java.lang.Object
        javax.faces.render.Renderer
                com.sun.faces.renderkit.html_basic.HtmlBasicRenderer

public abstract class HtmlBasicRenderer
extends Renderer

HtmlBasicRenderer is a base class for implementing renderers for HtmlBasicRenderKit.

Inner Class Index
Class Description
HtmlBasicRenderer.Param  

Constructor Index
Constructor Description
HtmlBasicRenderer()  

Method Index
Method Description
void addGenericErrorMessage(FacesContext, UIComponent, String, String)  
String convertClientId(FacesContext, String)  
void decode(FacesContext, UIComponent)  
void encodeEnd(FacesContext, UIComponent)  
void encodeRecursive(FacesContext, UIComponent) Render nested child components by invoking the encode methods on those components, but only when the rendered property is true.
Iterator getChildren(UIComponent) Return an Iterator over the children of the specified component, selecting only those that have a rendered property of true.
String getCurrentValue(FacesContext, UIComponent) Gets value to be rendered and formats it if required.
void getEndTextToRender(FacesContext, UIComponent, String) Renderers override this method to write appropriate HTML content into the buffer.
UIComponent getFacet(UIComponent, String) Return the specified facet from the specified component, but only if its rendered property is set to true.
UIComponent getForComponent(FacesContext, String, UIComponent) Locates the component identified by forComponent
String getFormattedValue(FacesContext, UIComponent, Object) Renderers override this method in case output value needs to be formatted
Iterator getMessageIter(FacesContext, String, UIComponent)  
HtmlBasicRenderer.Param[] getParamList(FacesContext, UIComponent)  
Object getValue(UIComponent)  
void setSubmittedValue(UIComponent, Object) Renderers override this method to store the previous value of the associated component.
boolean shouldWriteIdAttribute(UIComponent)  
void writeIdAttributeIfNecessary(FacesContext, ResponseWriter, UIComponent)  

 

Constructors

 

HtmlBasicRenderer

public HtmlBasicRenderer() 

 

Methods

 

addGenericErrorMessage

public void addGenericErrorMessage(FacesContext facesContext,
                                   UIComponent component,
                                   String messageId,
                                   String param) 

 

convertClientId

public String convertClientId(FacesContext context,
                              String clientId) 

 

decode

public void decode(FacesContext context,
                   UIComponent component) 

 

encodeEnd

public void encodeEnd(FacesContext context,
                      UIComponent component) throws IOException

 

encodeRecursive

protected void encodeRecursive(FacesContext context,
                               UIComponent component) throws IOException

Render nested child components by invoking the encode methods on those components, but only when the rendered property is true.

 

getChildren

protected Iterator getChildren(UIComponent component) 

Return an Iterator over the children of the specified component, selecting only those that have a rendered property of true.

 

getCurrentValue

protected String getCurrentValue(FacesContext context,
                                 UIComponent component) 

Gets value to be rendered and formats it if required. Sets to empty string if value is null.

 

getEndTextToRender

protected void getEndTextToRender(FacesContext context,
                                  UIComponent component,
                                  String currentValue) throws IOException

Renderers override this method to write appropriate HTML content into the buffer.

 

getFacet

protected UIComponent getFacet(UIComponent component,
                               String name) 

Return the specified facet from the specified component, but only if its rendered property is set to true.

 

getForComponent

protected UIComponent getForComponent(FacesContext context,
                                      String forComponent,
                                      UIComponent component) 

Locates the component identified by forComponent

 

getFormattedValue

protected String getFormattedValue(FacesContext context,
                                   UIComponent component,
                                   Object currentValue) throws ConverterException

Renderers override this method in case output value needs to be formatted

 

getMessageIter

protected Iterator getMessageIter(FacesContext context,
                                  String forComponent,
                                  UIComponent component) 

 

getParamList

protected HtmlBasicRenderer.Param[] getParamList(FacesContext context,
                                                 UIComponent command) 

 

getValue

protected Object getValue(UIComponent component) 

 

setSubmittedValue

protected void setSubmittedValue(UIComponent component,
                                 Object value) 

Renderers override this method to store the previous value of the associated component.

 

shouldWriteIdAttribute

protected boolean shouldWriteIdAttribute(UIComponent component) 

 

writeIdAttributeIfNecessary

protected void writeIdAttributeIfNecessary(FacesContext context,
                                           ResponseWriter writer,
                                           UIComponent component) 

Class Hierarchy All Classes All Fields and Methods