public abstract class AutocompleteRendererBase extends InputRendererBase implements MetaComponentRenderer
| Modifier and Type | Field and Description |
|---|---|
static String |
RENDERER_TYPE |
| Constructor and Description |
|---|
AutocompleteRendererBase() |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.model.DataModel |
asDataModel(Object suggestions)
Wraps the object representing suggestions to the
DataModel instance so that we can be easily iterated over. |
void |
decodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
Decoding of meta component isn't supported by this renderer
|
protected void |
doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Template method for custom decoding of concrete renderer.
|
protected void |
doEncodeBegin(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Do not render content
|
void |
encodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
Encodes meta components supported by this renderer:
@suggestions
|
JSReference |
getClientFilterFunction(javax.faces.component.UIComponent component)
Returns the @clientFilterFunction as reference to the function so that it can be easily converted for registration in
component bridge.
|
Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object val) |
boolean |
getRendersChildren() |
protected Object |
getSuggestions(javax.faces.context.FacesContext facesContext,
AbstractAutocomplete component)
Returns the object representing suggestions as returned by application logic.
|
protected javax.faces.model.DataModel<Object> |
getSuggestionsAsDataModel(javax.faces.context.FacesContext facesContext,
AbstractAutocomplete component)
Returns suggestions as DataModel ready for iteration
|
abstract void |
renderSuggestions(javax.faces.context.ResponseWriter responseWriter,
javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
The implementation of rendering suggestions must be provided so that it can be used by both on initial request as well as
during AJAX updates of suggestions.
|
protected Object |
saveVar(javax.faces.context.FacesContext context,
String var) |
protected void |
setVar(javax.faces.context.FacesContext context,
String var,
Object varObject) |
getInputValueconcatClasses, concatStyles, decode, doEncodeChildren, doEncodeEnd, encodeBegin, encodeChildren, encodeEnd, getComponentClass, getResourcePath, getSkin, getUtils, preDecode, preEncodeBegin, queueComponentEventForBehaviorEvent, renderChildrenpublic static final String RENDERER_TYPE
protected void doEncodeBegin(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
doEncodeBegin in class RendererBaseIOExceptionpublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.Rendererprotected void setVar(javax.faces.context.FacesContext context,
String var,
Object varObject)
protected void doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
RendererBasedecode
method.doDecode in class InputRendererBaseprotected javax.faces.model.DataModel<Object> getSuggestionsAsDataModel(javax.faces.context.FacesContext facesContext, AbstractAutocomplete component)
public void encodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
throws IOException
encodeMetaComponent in interface MetaComponentRendererIOExceptionpublic abstract void renderSuggestions(javax.faces.context.ResponseWriter responseWriter,
javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws IOException
IOExceptionpublic void decodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
decodeMetaComponent in interface MetaComponentRendererprotected Object getSuggestions(javax.faces.context.FacesContext facesContext, AbstractAutocomplete component)
getSuggestionsAsDataModel(FacesContext, AbstractAutocomplete) method.public javax.faces.model.DataModel asDataModel(Object suggestions)
DataModel instance so that we can be easily iterated over.public Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object val) throws javax.faces.convert.ConverterException
getConvertedValue in class InputRendererBasejavax.faces.convert.ConverterExceptionpublic JSReference getClientFilterFunction(javax.faces.component.UIComponent component)
Copyright © 2014 JBoss by Red Hat. All rights reserved.