org.apache.myfaces.html5.renderkit.input
Class HtmlInputTextRenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.html5.renderkit.input.HtmlInputTextRenderer
@JSFRenderer(renderKitId="HTML_BASIC",
family="javax.faces.Input",
type="org.apache.myfaces.html5.Text")
public class HtmlInputTextRenderer- extends javax.faces.render.Renderer
Renderer for < hx:inputText > component.
Uses delegate renderers for different types.
- Author:
- Ali Ok
|
Method Summary |
protected void |
checkInputHtmlType(javax.faces.component.UIComponent uiComponent)
Checks and sets the type of the component. |
String |
convertClientId(javax.faces.context.FacesContext context,
String clientId)
|
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)
|
Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object submittedValue)
|
protected javax.faces.render.Renderer |
getDelegate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Get delegate based on components type. |
boolean |
getRendersChildren()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALLOWED_INPUT_TYPES
protected static final String[] ALLOWED_INPUT_TYPES
_textTypeRendererDelegate
protected javax.faces.render.Renderer _textTypeRendererDelegate
_textareaTypeRendererDelegate
protected javax.faces.render.Renderer _textareaTypeRendererDelegate
HtmlInputTextRenderer
public HtmlInputTextRenderer()
convertClientId
public String convertClientId(javax.faces.context.FacesContext context,
String clientId)
- Overrides:
convertClientId in class javax.faces.render.Renderer
decode
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Overrides:
decode in class javax.faces.render.Renderer
getDelegate
protected javax.faces.render.Renderer getDelegate(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Get delegate based on components type.
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
encodeBegin in class javax.faces.render.Renderer
- Throws:
IOException
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
encodeChildren in class javax.faces.render.Renderer
- Throws:
IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
encodeEnd in class javax.faces.render.Renderer
- Throws:
IOException
getConvertedValue
public Object getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object submittedValue)
throws javax.faces.convert.ConverterException
- Overrides:
getConvertedValue in class javax.faces.render.Renderer
- Throws:
javax.faces.convert.ConverterException
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren in class javax.faces.render.Renderer
checkInputHtmlType
protected void checkInputHtmlType(javax.faces.component.UIComponent uiComponent)
- Checks and sets the type of the component.
If the component doesn't have a type yet:
- If it has rows property larger than 1, set type to textArea.
- Otherwise, set type to text
- Throws:
javax.faces.FacesException - if user didn't specify one of the allowed.
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.