public class ValidatorCommandRenderer
extends javax.faces.render.Renderer
This Renderer is a hybrid renderer decorator that is dynamically
registered by ValidatorRenderKit
for component renderers in the "javax.faces.Command" family.
| Modifier and Type | Field and Description |
|---|---|
static String |
OVERRIDE_IMMEDIATE
Attribute name used to override the default behavior of how the immediate
attribute effects the execution of client side javascript validation.
|
| Constructor and Description |
|---|
ValidatorCommandRenderer(javax.faces.render.Renderer defaultRenderer)
The overloaded constructor is passed the original
Renderer for the family and component type. |
| Modifier and Type | Method and Description |
|---|---|
String |
convertClientId(javax.faces.context.FacesContext context,
String id) |
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected void |
encode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
int encodeSwitch)
Interrogates the component's immediate property and the component's
immediate override attribute to determine if client side validation is
invoked.
|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Invokes the
encode method passing
ENCODE_BEGIN for the encodeSwitch parameter. |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Invokes the
encode method passing
ENCODE_CHILDREN for the encodeSwitch parameter. |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Invokes the
encode method passing ENCODE_END
for the encodeSwitch parameter. |
Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object o) |
boolean |
getRendersChildren() |
public static final String OVERRIDE_IMMEDIATE
Attribute name used to override the default behavior of how the immediate attribute effects the execution of client side javascript validation.
public ValidatorCommandRenderer(javax.faces.render.Renderer defaultRenderer)
The overloaded constructor is passed the original
Renderer for the family and component type.
defaultRenderer - The default Renderer we should delegate toprotected void encode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
int encodeSwitch)
throws IOException
encodeSwitch determines if the encodeBegin, encodeChildren
or encodeEnd methods should be invoked on the decorated renderer.context - FacesContext for the current requestcomponent - UIComponent being renderedencodeSwitch - FIXME - encode switch?IOException - if an input/output error occurspublic String convertClientId(javax.faces.context.FacesContext context, String id)
convertClientId in class javax.faces.render.Rendererpublic Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object o) throws javax.faces.convert.ConverterException
getConvertedValue in class javax.faces.render.Rendererjavax.faces.convert.ConverterExceptionpublic void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Rendererpublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
Invokes the encode method passing
ENCODE_BEGIN for the encodeSwitch parameter.
encodeBegin in class javax.faces.render.Renderercontext - FacesContext for the current requestcomponent - UIComponent being renderedIOException - if an input/output error occurspublic void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
Invokes the encode method passing
ENCODE_CHILDREN for the encodeSwitch parameter.
encodeChildren in class javax.faces.render.Renderercontext - FacesContext for the current requestcomponent - UIComponent being renderedIOException - if an input/output error occurspublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
Invokes the encode method passing ENCODE_END
for the encodeSwitch parameter.
encodeEnd in class javax.faces.render.Renderercontext - FacesContext for the current reqauestcomponent - UIComponent being renderedIOException - if an input/output error occurspublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.RendererCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.