public class BaseInputResourceRenderer extends CoreRenderer
| Constructor and Description |
|---|
BaseInputResourceRenderer() |
| 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) |
java.lang.Object |
getPropertyFromMap(java.util.Map<java.lang.String,java.lang.Object> componentMap,
java.lang.String key) |
static java.lang.String |
getStringValueToRender(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
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) |
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, renderChild, renderChildren, 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 returnedpublic void setSubmittedValue(javax.faces.component.UIComponent uiComponent,
java.lang.Object value)
protected java.lang.Object getValue(javax.faces.component.UIComponent uiComponent)
public java.lang.Object getPropertyFromMap(java.util.Map<java.lang.String,java.lang.Object> componentMap,
java.lang.String key)
Copyright 2018 ICEsoft Technologies Canada Corp., All Rights Reserved.