org.bejug.javacareers.common.ajax
Class TextFieldRenderer
java.lang.Object
javax.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
org.bejug.javacareers.common.ajax.TextFieldRenderer
- public class TextFieldRenderer
- extends com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
This renderer generates HTML (including JavaScript) for AjaxTextFields,
emitting the necessary markup to provide auto completion for the textfield.
This component relies on a cooperating servlet that responds to asynchronous
requests.
- Author:
- Tor Norbye
| Nested classes inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer |
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.Param |
| Fields inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer |
log |
|
Method Summary |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
begin of the encoding. |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
encode the children. |
protected void |
getEndTextToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String currentValue)
|
| Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer |
getConvertedValue, getValue, setSubmittedValue |
| Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer |
addGenericErrorMessage, convertClientId, decode, encodeEnd, encodeRecursive, getChildren, getCurrentValue, getFacet, getForComponent, getFormattedValue, getMessageIter, getParamList, shouldWriteIdAttribute, writeIdAttributeIfNecessary |
| Methods inherited from class javax.faces.render.Renderer |
getRendersChildren |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFieldRenderer
public TextFieldRenderer()
- Creates a new instance of TextFieldRenderer
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- begin of the encoding.
- Parameters:
context - the FacesContext.component - the UIComponent to encode.
- Throws:
java.io.IOException - thrown when the encoding failes.
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- encode the children.
- Parameters:
context - the FacesContext.component - the UIComponent to encode.
getEndTextToRender
protected void getEndTextToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String currentValue)
throws java.io.IOException
- Parameters:
context - the FacesContext.component - the component to render.currentValue - a String containing the currentvalue of the component.
- Throws:
java.io.IOException - thrown when the rendering failes.
Copyright © 2005-2006 BeJUG. All Rights Reserved.