public class BaseRenderer extends Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
BaseRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeChildren(FacesContext context,
UIComponent component) |
protected UIForm |
findForm(FacesContext context,
UIComponent component)
Find ancestor form of specified component.
|
protected Object |
getConvertedStringArrayValue(FacesContext context,
UIComponent component,
String[] value)
Converts string-array to appropriately-typed array or collection,
based on component's value-binding.
|
Object |
getConvertedValue(FacesContext context,
UIComponent component,
Object submittedValue) |
protected List<UIParameter> |
getParameters(FacesContext context,
UIComponent component) |
protected String |
getStringValue(FacesContext context,
UIComponent component,
Object value)
Converts specified component value to a string.
|
protected Object |
getValue(FacesContext context,
UIComponent component)
Get component's value.
|
protected void |
renderComponent(FacesContext ctx,
UIComponent component)
Render the specified sub-tree.
|
protected void |
writeAttributes(FacesContext context,
UIComponent component,
String[] componentAttributes)
Writes the specified component property/attributes as attributes of the current element.
|
protected void |
writeAttributes(FacesContext context,
UIComponent component,
String[] componentAttributes,
String[] elementAttributes)
Writes the specified component property/attributes as attributes of the current element.
|
protected void |
writeBooleanAttributes(FacesContext context,
UIComponent component,
String[] componentAttributes)
Writes the specified component property/attributes as boolean attributes of the current element
(writes "elementAttribute='true'" if attribute is Boolean.TRUE or "true" or "TRUE";
writes nothing otherwise).
|
protected void |
writeBooleanAttributes(FacesContext context,
UIComponent component,
String[] componentAttributes,
String[] elementAttributes)
Writes the specified component property/attributes as boolean attributes of the current element
(writes "elementAttribute='true'" if attribute is Boolean.TRUE or "true" or "TRUE";
writes nothing otherwise).
|
convertClientId, decode, encodeBegin, encodeEnd, getRendersChildren
public void encodeChildren(FacesContext context, UIComponent component) throws IOException
encodeChildren
in class Renderer
IOException
public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException
getConvertedValue
in class Renderer
ConverterException
protected Object getValue(FacesContext context, UIComponent component)
protected String getStringValue(FacesContext context, UIComponent component, Object value) throws ConverterException
context
- Current context.component
- Component for which to conver the value.value
- Value to convert.ConverterException
protected Object getConvertedStringArrayValue(FacesContext context, UIComponent component, String[] value) throws ConverterException
ConverterException
protected void writeAttributes(FacesContext context, UIComponent component, String[] componentAttributes) throws IOException
context
- Current context.component
- Current component.componentAttributes
- Component attribute names.IOException
protected void writeAttributes(FacesContext context, UIComponent component, String[] componentAttributes, String[] elementAttributes) throws IOException
context
- Current context.component
- Current component.componentAttributes
- Component attribute names.elementAttributes
- Element attribute names.
If null, uses componentNames for element attribute names.IOException
protected void writeBooleanAttributes(FacesContext context, UIComponent component, String[] componentAttributes) throws IOException
context
- Current context.component
- Current component.componentAttributes
- Component attribute names.IOException
protected void writeBooleanAttributes(FacesContext context, UIComponent component, String[] componentAttributes, String[] elementAttributes) throws IOException
context
- Current context.component
- Current component.componentAttributes
- Component attribute names.elementAttributes
- Element attribute names.
If null, uses componentNames for element attribute names.IOException
protected UIForm findForm(FacesContext context, UIComponent component)
context
- Current context.component
- Component from which to start searching.protected List<UIParameter> getParameters(FacesContext context, UIComponent component)
UIParameter
children of this component. Never null.protected void renderComponent(FacesContext ctx, UIComponent component) throws IOException, FacesException
IOException
FacesException