java.lang.Object
jakarta.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
- Direct Known Subclasses:
CheckboxRenderer
,HiddenRenderer
,LabelRenderer
,MenuRenderer
,OutputMessageRenderer
,SecretRenderer
,TextareaRenderer
,TextRenderer
HtmlBasicInputRenderer is a base class for implementing renderers that support UIInput type components
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
-
Field Summary
Fields inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
EMPTY_PARAMS, logger
Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConvertedValue
(FacesContext context, UIComponent component, Object submittedValue) Attempt to convert previously stored state information into an object of the type required for this component (optionally using the registeredConverter
for this component, if there is one).protected static Map
<String, List<ClientBehavior>> getNonOnChangeBehaviors
(UIComponent component) protected static Map
<String, List<ClientBehavior>> getNonOnClickSelectBehaviors
(UIComponent component) protected Object
getValue
(UIComponent component) void
setSubmittedValue
(UIComponent component, Object value) Renderers override this method to store the previous value of the associated component.Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
augmentIdReference, convertClientId, decode, decodeBehaviors, encodeEnd, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, isBehaviorSource, rendererParamsNotNull, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary
Methods inherited from class jakarta.faces.render.Renderer
encodeBegin, encodeChildren
-
Constructor Details
-
HtmlBasicInputRenderer
public HtmlBasicInputRenderer()
-
-
Method Details
-
getConvertedValue
public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException Description copied from class:Renderer
Attempt to convert previously stored state information into an object of the type required for this component (optionally using the registered
Converter
for this component, if there is one). If conversion is successful, the new value should be returned from this method; if not, aConverterException
should be thrown.- Overrides:
getConvertedValue
in classRenderer
- Parameters:
context
-FacesContext
for the request we are processingcomponent
-UIComponent
to be decoded.submittedValue
- a value stored on the component duringdecode
.- Returns:
- the converted value
- Throws:
ConverterException
- if the submitted value cannot be converted successfully.
-
setSubmittedValue
Description copied from class:HtmlBasicRenderer
Renderers override this method to store the previous value of the associated component.- Overrides:
setSubmittedValue
in classHtmlBasicRenderer
- Parameters:
component
- the target component to which the submitted value will be setvalue
- the value to set
-
getValue
- Overrides:
getValue
in classHtmlBasicRenderer
-
getNonOnChangeBehaviors
-
getNonOnClickSelectBehaviors
protected static Map<String,List<ClientBehavior>> getNonOnClickSelectBehaviors(UIComponent component)
-