public abstract class TypeaheadBehavior<T>
extends org.apache.wicket.behavior.AbstractAjaxBehavior
The behavior that returns JSON response for the typeahead widget.
| Constructor and Description |
|---|
TypeaheadBehavior() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createJson(Iterable<T> choices)
Serializes the returned choices into JSON array.
|
protected abstract Iterable<T> |
getChoices(String input)
Finds the possible choices for the provided input
|
void |
onRequest() |
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindCopyright © 2011–2014 AgileCoders. All rights reserved.