org.openfaces.renderkit.filter
Class CompositeFilterRenderer
java.lang.Object
javax.faces.render.Renderer
org.openfaces.renderkit.RendererBase
org.openfaces.renderkit.filter.CompositeFilterRenderer
- All Implemented Interfaces:
- AjaxPortionRenderer
public class CompositeFilterRenderer
- extends RendererBase
- implements AjaxPortionRenderer
Method Summary |
JSONObject |
encodeAjaxPortion(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String portionName,
JSONObject jsonParam)
This method is required for inner components rendering in case when parent component does not know
which HTML appearance inner component should have. |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
static java.lang.String |
getFilterJsURL(javax.faces.context.FacesContext facesContext)
|
boolean |
getRendersChildren()
|
Methods inherited from class javax.faces.render.Renderer |
convertClientId, decode, getConvertedValue |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeFilterRenderer
public CompositeFilterRenderer()
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeBegin
in class javax.faces.render.Renderer
- Throws:
java.io.IOException
getFilterJsURL
public static java.lang.String getFilterJsURL(javax.faces.context.FacesContext facesContext)
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeEnd
in class javax.faces.render.Renderer
- Throws:
java.io.IOException
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
encodeChildren
in class javax.faces.render.Renderer
- Throws:
java.io.IOException
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren
in class javax.faces.render.Renderer
encodeAjaxPortion
public JSONObject encodeAjaxPortion(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String portionName,
JSONObject jsonParam)
throws java.io.IOException,
JSONException
- Description copied from interface:
AjaxPortionRenderer
- This method is required for inner components rendering in case when parent component does not know
which HTML appearance inner component should have. For example some components may have additional
initialization javascript along with their HTML representations.
- Specified by:
encodeAjaxPortion
in interface AjaxPortionRenderer
- Parameters:
context
- instance of FacesContext
component
- parent component for which inner controls should be renderedportionName
- actually a server-side id for the inner component to be rendered. In further, there
may be an extension for this method to support not only inner components rendering, but data
retrieval too. Or maybe other method will be declared.jsonParam
- the JSON object that is passed as a parameter to O$.Ajax.requestComponentPortions on the client-side,
or null if no parameter was passed.
- Throws:
java.io.IOException
- propagates any IO exceptions that might occur inside of this method
JSONException
- in case of any JSON manipulation failure. It is declared as a checked exception here just
to free the implementations of this method from having to catch them. Invoker of this method
will just re-throw this exception as RuntimeException.
Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.