Class HtmlRadioRendererBase
- java.lang.Object
-
- jakarta.faces.render.Renderer
-
- org.apache.myfaces.renderkit.html.base.HtmlRenderer
-
- org.apache.myfaces.renderkit.html.base.HtmlRadioRendererBase
-
- Direct Known Subclasses:
HtmlRadioRenderer
public class HtmlRadioRendererBase extends HtmlRenderer
-
-
Field Summary
-
Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
-
Constructor Summary
Constructors Constructor Description HtmlRadioRendererBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(FacesContext facesContext, UIComponent uiComponent)
void
encodeEnd(FacesContext facesContext, UIComponent uiComponent)
Object
getConvertedValue(FacesContext facesContext, UIComponent uiComponent, Object submittedValue)
protected String
getLayout(UIComponent selectOne)
protected String
getStyleClass(UISelectOne selectOne)
protected boolean
isDisabled(FacesContext facesContext, UIComponent uiComponent)
protected int
renderGroupOrItemRadio(FacesContext facesContext, UIComponent uiComponent, SelectItem selectItem, Object currentValue, Converter converter, Boolean usingTable, Integer itemNum)
protected int
renderGroupOrItemRadio(FacesContext facesContext, UIComponent uiComponent, SelectItem selectItem, Object currentValue, Converter converter, Boolean usingTable, String group, Integer itemNum)
Renders the given SelectItem(Group)protected String
renderRadio(FacesContext facesContext, UIInput uiComponent, String value, boolean disabled, boolean checked, boolean renderId, Integer itemNum)
Renders the input item-
Methods inherited from class org.apache.myfaces.renderkit.html.base.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, isCommonEventsOptimizationEnabled, isCommonPropertiesOptimizationEnabled, renderId, shouldRenderId
-
Methods inherited from class jakarta.faces.render.Renderer
convertClientId, encodeBegin, encodeChildren, getRendersChildren
-
-
-
-
Method Detail
-
encodeEnd
public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException
- Overrides:
encodeEnd
in classRenderer
- Throws:
IOException
-
getLayout
protected String getLayout(UIComponent selectOne)
-
getStyleClass
protected String getStyleClass(UISelectOne selectOne)
-
renderGroupOrItemRadio
protected int renderGroupOrItemRadio(FacesContext facesContext, UIComponent uiComponent, SelectItem selectItem, Object currentValue, Converter converter, Boolean usingTable, Integer itemNum) throws IOException
- Throws:
IOException
-
renderGroupOrItemRadio
protected int renderGroupOrItemRadio(FacesContext facesContext, UIComponent uiComponent, SelectItem selectItem, Object currentValue, Converter converter, Boolean usingTable, String group, Integer itemNum) throws IOException
Renders the given SelectItem(Group)- Returns:
- the itemNum for the next item
- Throws:
IOException
-
renderRadio
protected String renderRadio(FacesContext facesContext, UIInput uiComponent, String value, boolean disabled, boolean checked, boolean renderId, Integer itemNum) throws IOException
Renders the input item- Returns:
- the 'id' value of the rendered element
- Throws:
IOException
-
isDisabled
protected boolean isDisabled(FacesContext facesContext, UIComponent uiComponent)
-
decode
public void decode(FacesContext facesContext, UIComponent uiComponent)
-
getConvertedValue
public Object getConvertedValue(FacesContext facesContext, UIComponent uiComponent, Object submittedValue) throws ConverterException
- Overrides:
getConvertedValue
in classRenderer
- Throws:
ConverterException
-
-