|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RendererInterceptor
Allows to intercept renderer methods.
It's the base mechanism of ExtVal which enables most of the concepts provided by the framework.
Furthermore, it allows to add custom concepts.
Method Summary | |
---|---|
void |
afterDecode(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
afterEncodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
afterEncodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
afterEncodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
afterGetConvertedValue(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object submittedValue,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
beforeDecode(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
beforeEncodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
beforeEncodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
beforeEncodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
void |
beforeGetConvertedValue(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object submittedValue,
javax.faces.render.Renderer renderer)
Intercepts a method of the renderer. |
String |
getInterceptorId()
|
Object |
getReturnValueOnSkipRendererDelegationException(SkipRendererDelegationException skipRendererDelegationException,
Object currentReturnValue)
In case of the converted value it defines the value that should be returned by the getConvertedValue method in case there was a SkipRendererDelegationException . |
Method Detail |
---|
String getInterceptorId()
Object getReturnValueOnSkipRendererDelegationException(SkipRendererDelegationException skipRendererDelegationException, Object currentReturnValue)
SkipRendererDelegationException
.
skipRendererDelegationException
- The exception thrown to abort further RendererInterceptor
s.currentReturnValue
- The converted value that is defined at this time.
void beforeDecode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws SkipBeforeInterceptorsException, SkipRendererDelegationException
facesContext
- The JSF ContextuiComponent
- The current componentrenderer
- The intercepted renderer
SkipBeforeInterceptorsException
- can be thrown to stop the execution of the subsequent interceptors
SkipRendererDelegationException
- can be thorwn to skip the invocation of the intercepted renderer method.void beforeEncodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws IOException, SkipBeforeInterceptorsException, SkipRendererDelegationException
facesContext
- The JSF ContextuiComponent
- The current componentrenderer
- The intercepted renderer
IOException
- In case the response writer is accessed and there was an IO problem.
SkipBeforeInterceptorsException
- can be thrown to stop the execution of the subsequent interceptors
SkipRendererDelegationException
- can be thorwn to skip the invocation of the intercepted renderer method.void beforeEncodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws IOException, SkipBeforeInterceptorsException, SkipRendererDelegationException
facesContext
- The JSF ContextuiComponent
- The current componentrenderer
- The intercepted renderer
IOException
- In case the response writer is accessed and there was an IO problem.
SkipBeforeInterceptorsException
- can be thrown to stop the execution of the subsequent interceptors
SkipRendererDelegationException
- can be thorwn to skip the invocation of the intercepted renderer method.void beforeEncodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws IOException, SkipBeforeInterceptorsException, SkipRendererDelegationException
facesContext
- The JSF ContextuiComponent
- The current componentrenderer
- The intercepted renderer
IOException
- In case the response writer is accessed and there was an IO problem.
SkipBeforeInterceptorsException
- can be thrown to stop the execution of the subsequent interceptors
SkipRendererDelegationException
- can be thorwn to skip the invocation of the intercepted renderer method.void beforeGetConvertedValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object submittedValue, javax.faces.render.Renderer renderer) throws javax.faces.convert.ConverterException, SkipBeforeInterceptorsException, SkipRendererDelegationException
facesContext
- The JSF ContextuiComponent
- The current componentsubmittedValue
- The submitted valuerenderer
- The intercepted renderer
javax.faces.convert.ConverterException
- ExtVal validation strategies can throw
ValidatorException
s.
Due to the trick used by ExtVal it has to be converted to a ConverterException
(see AbstractValidationInterceptor
).
SkipBeforeInterceptorsException
- can be thrown to stop the execution of the subsequent interceptors
SkipRendererDelegationException
- can be thorwn to skip the invocation of the intercepted renderer method.void afterDecode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws SkipAfterInterceptorsException
facesContext
- The JSF ContextuiComponent
- The current componentrenderer
- The intercepted renderer
SkipAfterInterceptorsException
- Can be thrown to stop the execution of the subsequent interceptors.void afterEncodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws IOException, SkipAfterInterceptorsException
facesContext
- The JSF contextuiComponent
- The current componentrenderer
- The intercepted renderer
IOException
- In case the response writer is accessed and there was an IO problem.
SkipAfterInterceptorsException
- Can be thrown to stop the execution of the subsequent interceptors.void afterEncodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws IOException, SkipAfterInterceptorsException
facesContext
- The JSF ContextuiComponent
- The current componentrenderer
- The intercepted renderer
IOException
- In case the response writer is accessed and there was an IO problem.
SkipAfterInterceptorsException
- Can be thrown to stop the execution of the subsequent interceptors.void afterEncodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, javax.faces.render.Renderer renderer) throws IOException, SkipAfterInterceptorsException
facesContext
- The JSF ContextuiComponent
- The current componentrenderer
- The intercepted renderer
IOException
- In case the response writer is accessed and there was an IO problem.
SkipAfterInterceptorsException
- Can be thrown to stop the execution of the subsequent interceptors.void afterGetConvertedValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object submittedValue, javax.faces.render.Renderer renderer) throws javax.faces.convert.ConverterException, SkipAfterInterceptorsException
facesContext
- The JSF ContextuiComponent
- The current componentsubmittedValue
- The submitted valuerenderer
- The intercepted renderer
javax.faces.convert.ConverterException
- ExtVal validation strategies can throw
ValidatorException
s.
Due to the trick used by ExtVal it has to be converted to a ConverterException
(see AbstractValidationInterceptor
).
SkipAfterInterceptorsException
- Can be thrown to stop the execution of the subsequent interceptors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |