|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.render.Renderer
org.apache.shale.validator.faces.ValidatorCommandRenderer
public class ValidatorCommandRenderer
This Renderer is a hybrid renderer decorator that is dynamically
registered by ValidatorRenderKit
for component renderers in the "javax.faces.Command" family.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ValidatorCommandRenderer(javax.faces.render.Renderer defaultRenderer)
The overloaded constructor is passed the original Renderer for the family and component type. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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.
| Constructor Detail |
|---|
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 to| Method Detail |
|---|
protected 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 occurs
public String convertClientId(javax.faces.context.FacesContext context,
String id)
convertClientId in class javax.faces.render.Renderer
public 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.ConverterException
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Renderer
public 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 rendered
IOException - if an input/output error occurs
public 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 rendered
IOException - if an input/output error occurs
public 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 rendered
IOException - if an input/output error occurspublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.Renderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||