com.ibm.xsp.renderkit.html_basic
Class BasicInputTextRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.ibm.xsp.renderkit.FacesRenderer
          extended by com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer
              extended by com.ibm.xsp.renderkit.html_basic.BasicInputTextRenderer

public abstract class BasicInputTextRenderer
extends HtmlBasicRenderer

Basic renderer with default implementation for text input control.


Field Summary
 
Fields inherited from class com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer
BOOLEAN_ATTRS, FOCUS_ATTRS, HTML_ATTRS, HTML_STYLE_ATTRS, NO_ATTRS
 
Fields inherited from class com.ibm.xsp.renderkit.FacesRenderer
CHECKED, CLIENTID, DISABLED, FACTORY, FOR, HTML_BASIC, ID, INPUT, LABEL, NAME, READONLY, TEXT, TYPE, VALUE
 
Constructor Summary
BasicInputTextRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object submittedValue)
           
protected  java.lang.String getCurrentValue(javax.faces.context.FacesContext context, javax.faces.component.UIInput uiInput)
          Return the current value of uiInput with Active Content Filtering applied.
 boolean getRendersChildren()
           
protected  boolean isReadOnly(javax.faces.context.FacesContext context, javax.faces.component.UIInput input)
          Return true if input is read only.
protected  boolean isReadOnly(javax.faces.component.UIInput input)
           
protected abstract  void writeTag(javax.faces.context.FacesContext context, javax.faces.component.UIInput component, javax.faces.context.ResponseWriter writer, java.lang.String currentValue)
          Function that writes the main tag.
protected  void writeTagHtmlAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIInput component, javax.faces.context.ResponseWriter writer, java.lang.String currentValue)
          Write HTML, Boolean and Focus attributes.
protected  void writeTagIdAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIInput component, javax.faces.context.ResponseWriter writer, java.lang.String currentValue)
          Write the ID (if specified) and name attributes.
 
Methods inherited from class com.ibm.xsp.renderkit.html_extended.HtmlBasicRenderer
encodeBooleanAttributes, encodeFocusAttributes, encodeHtmlAttributes, encodeHtmlAttributes, encodeHtmlStyleAttributes, getFor, getMessages
 
Methods inherited from class com.ibm.xsp.renderkit.FacesRenderer
isValidValue, writeAttribute, writeAttribute, writeAttribute, writeBooleanAttribute, writeId, writeId
 
Methods inherited from class javax.faces.render.Renderer
convertClientId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicInputTextRenderer

public BasicInputTextRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

isReadOnly

protected boolean isReadOnly(javax.faces.context.FacesContext context,
                             javax.faces.component.UIInput input)
Return true if input is read only.


isReadOnly

protected boolean isReadOnly(javax.faces.component.UIInput input)

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component,
                                          java.lang.Object submittedValue)
                                   throws javax.faces.convert.ConverterException
Overrides:
getConvertedValue in class javax.faces.render.Renderer
Throws:
javax.faces.convert.ConverterException

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
java.io.IOException

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class HtmlBasicRenderer

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Overrides:
encodeChildren in class HtmlBasicRenderer
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
java.io.IOException

getCurrentValue

protected java.lang.String getCurrentValue(javax.faces.context.FacesContext context,
                                           javax.faces.component.UIInput uiInput)
Return the current value of uiInput with Active Content Filtering applied.


writeTag

protected abstract void writeTag(javax.faces.context.FacesContext context,
                                 javax.faces.component.UIInput component,
                                 javax.faces.context.ResponseWriter writer,
                                 java.lang.String currentValue)
                          throws java.io.IOException
Function that writes the main tag. This should be overwritten by a concrete implementation.

Throws:
java.io.IOException

writeTagIdAttributes

protected void writeTagIdAttributes(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIInput component,
                                    javax.faces.context.ResponseWriter writer,
                                    java.lang.String currentValue)
                             throws java.io.IOException
Write the ID (if specified) and name attributes.

Throws:
java.io.IOException

writeTagHtmlAttributes

protected void writeTagHtmlAttributes(javax.faces.context.FacesContext context,
                                      javax.faces.component.UIInput component,
                                      javax.faces.context.ResponseWriter writer,
                                      java.lang.String currentValue)
                               throws java.io.IOException
Write HTML, Boolean and Focus attributes. This should be overwritten by an actual concrete class.

Throws:
java.io.IOException