public class BaseInputRenderer extends CoreRenderer
| Constructor and Description |
|---|
BaseInputRenderer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getConvertedValue(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.Object submittedValue) |
protected javax.faces.convert.Converter |
getConverter(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIInput uiComponent) |
protected java.lang.String |
getOptionAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIInput uiComponent,
javax.faces.convert.Converter converter,
java.lang.Object value) |
static java.lang.String |
getStringValueToRender(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
From ace.utils.ComponentUtils July 16, 2011
Algorithm works as follows;
- If it's an input component, submitted value is checked first since it'd be the value to be used in case validation errors
terminates jsf lifecycle
- Finally the value of the component is retrieved from backing bean and if there's a converter, converted value is returned
- If the component is not a value holder, toString of component is used to support Facelets UIInstructions.
|
protected java.lang.Object |
getValue(javax.faces.component.UIComponent uiComponent) |
protected void |
renderChild(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent child) |
protected void |
renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent) |
void |
setSubmittedValue(javax.faces.component.UIComponent uiComponent,
java.lang.Object value) |
addToAutoUpdate, buildAjaxRequest, convertClientId, decodeBehaviors, decodeBehaviors, encodeClientBehaviors, encodeClientBehaviors, escapeText, getActionURL, getComponentResourceBundle, getEncodedURL, getEscapedClientId, getLocalisedMessageFromBundle, getResourceRequestPath, getResourceURL, isAjaxRequest, isPostBack, isPostback, isScriptLoaded, isValueBlank, isValueEmpty, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, setScriptLoaded, shouldRenderAttribute, themeForms, writeJavascriptFile, writeJavascriptFileprotected java.lang.String getOptionAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIInput uiComponent,
javax.faces.convert.Converter converter,
java.lang.Object value)
protected javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIInput uiComponent)
public java.lang.Object getConvertedValue(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.Object submittedValue)
throws javax.faces.convert.ConverterException
getConvertedValue in class javax.faces.render.Rendererjavax.faces.convert.ConverterExceptionpublic static java.lang.String getStringValueToRender(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
facesContext - FacesContext instancecomponent - UIComponent instance whose value will be returnedprotected void renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws java.io.IOException
renderChildren in class CoreRendererjava.io.IOExceptionprotected void renderChild(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent child)
throws java.io.IOException
renderChild in class CoreRendererjava.io.IOExceptionpublic void setSubmittedValue(javax.faces.component.UIComponent uiComponent,
java.lang.Object value)
protected java.lang.Object getValue(javax.faces.component.UIComponent uiComponent)
Copyright 2018 ICEsoft Technologies Canada Corp., All Rights Reserved.