org.apache.myfaces.html5.renderkit.input.delegate
Interface SuggestionRendererHelper

All Known Implementing Classes:
HtmlDataListSuggestionRendererHelper, HtmlTextInputSuggestionRendererHelper

public interface SuggestionRendererHelper

This interface defines a contract for rendering suggestions related markup.

Author:
Ali Ok

Method Summary
 void checkSuggestions(javax.faces.component.UIComponent component)
          Check if suggestion conditions are OK.
 void renderDataList(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
          Renders the datalist.
 boolean shouldGenerateDatalist(javax.faces.component.UIComponent component)
          Returns true if a datalist should be generated for given component.
 

Method Detail

checkSuggestions

void checkSuggestions(javax.faces.component.UIComponent component)
Check if suggestion conditions are OK. For example, if 'datalist' is defined, then other suggestion options(with f:selectItem(s) children or 'suggestions' attribute) should not be used.


shouldGenerateDatalist

boolean shouldGenerateDatalist(javax.faces.component.UIComponent component)
Returns true if a datalist should be generated for given component.


renderDataList

void renderDataList(javax.faces.context.FacesContext facesContext,
                    javax.faces.component.UIComponent component)
                    throws IOException
Renders the datalist.

Implementations of this method should not render any other markup.

Throws:
IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.