com.sun.j2ee.blueprints.ui.autocomplete
Class AutoCompleteRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.j2ee.blueprints.ui.autocomplete.AutoCompleteRenderer

public class AutoCompleteRenderer
extends javax.faces.render.Renderer

This renderer generates HTML (including JavaScript) for AutoCompleteComponents, emitting the necessary markup to provide auto completion for the textfield.


Constructor Summary
AutoCompleteRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Decode the submitted value for this component.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the HTML for this component.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, encodeChildren, getConvertedValue, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoCompleteRenderer

public AutoCompleteRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)

Decode the submitted value for this component.

Overrides:
decode in class javax.faces.render.Renderer
Parameters:
context - FacesContext for the current request
component - UIComponent being decoded

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException

Render the HTML for this component.

Overrides:
encodeEnd in class javax.faces.render.Renderer
Parameters:
context - FacesContext for the current request
component - UIComponent being rendered
Throws:
java.io.IOException - if an input/output error occurs