|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.render.RenderKit org.apache.shale.validator.faces.ValidatorRenderKit
public class ValidatorRenderKit
Decorates the original RenderKit
passed by the
overloaded constructor in the org.apache.shale.view.faces.ViewViewHandler
.
The majority of the implementation is passed on the the original
RenderKit
but requests for renderers registered with the
"javax.faces.Command" and "javax.faces.Input" families are decorated.
Only renderers in the "javax.faces.Command" family of types
"javax.faces.Link" and "javax.faces.Button" are considered. These are
renderers from the vanilla JSF runtime that have predictable behavior.
The wrapper adds special behavior for the
CommonsValidator
validator and
org.apache.shale.component.ValidatorScript
component.
Constructor Summary | |
---|---|
ValidatorRenderKit(javax.faces.render.RenderKit defaultRenderKit)
This constructor is overloaded to pass the original RenderKit |
Method Summary | |
---|---|
void |
addRenderer(String componentFamily,
String rendererType,
javax.faces.render.Renderer renderer)
|
javax.faces.context.ResponseStream |
createResponseStream(OutputStream outputStream)
|
javax.faces.context.ResponseWriter |
createResponseWriter(Writer writer,
String contentTypeList,
String characterEncoding)
|
javax.faces.render.Renderer |
getRenderer(String componentFamily,
String rendererType)
If the component family is not "javax.faces.Command" or "javax.faces.Input", the defaultRenderKit handles the
request. |
javax.faces.render.ResponseStateManager |
getResponseStateManager()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatorRenderKit(javax.faces.render.RenderKit defaultRenderKit)
This constructor is overloaded to pass the original
RenderKit
defaultRenderKit
- The default RenderKit that we will be wrappingMethod Detail |
---|
public void addRenderer(String componentFamily, String rendererType, javax.faces.render.Renderer renderer)
addRenderer
in class javax.faces.render.RenderKit
public javax.faces.render.Renderer getRenderer(String componentFamily, String rendererType)
If the component family is not "javax.faces.Command" or
"javax.faces.Input", the defaultRenderKit
handles the
request. If the family is "javax.faces.Command", and the renderer type
is "javax.faces.Link" or "javax.faces.Button" the default
renderer is decorated with org.apache.shale.renderer.ValidatorCommandRenderer
.
If the component family is "javax.faces.Input", the default
renderer is decorated with org.apache.shale.renderer.ValidatorInputRenderer
.
getRenderer
in class javax.faces.render.RenderKit
componentFamily
- Component family for which to retrieve a RendererrendererType
- Renderer type for which to retrieve a Rendererpublic javax.faces.render.ResponseStateManager getResponseStateManager()
getResponseStateManager
in class javax.faces.render.RenderKit
public javax.faces.context.ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding)
createResponseWriter
in class javax.faces.render.RenderKit
public javax.faces.context.ResponseStream createResponseStream(OutputStream outputStream)
createResponseStream
in class javax.faces.render.RenderKit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |