Class AjaxCallbackBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.behavior.AbstractAjaxBehavior
-
- com.googlecode.wicket.jquery.core.behavior.AjaxCallbackBehavior
-
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IRequestListener,IComponentAwareHeaderContributor,IClusterable
- Direct Known Subclasses:
ChoiceModelBehavior,ListModelBehavior
public abstract class AjaxCallbackBehavior extends AbstractAjaxBehavior
Provides an ajax endpoint that sends a "text" response
The default content type is "application/json"
The default encoding is the currentApplication'sRequestCycleSettings- Author:
- Sebastien Briquet - sebfz1
- See Also:
TextRequestHandler, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AjaxCallbackBehavior()Constructor with default "application/json" content typeAjaxCallbackBehavior(String mimetype)ConstructorAjaxCallbackBehavior(String mimetype, String encoding)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetResponse(IRequestParameters parameters)Gets the response textvoidonRequest()
Warning: Overridden methods should callsuper.onRequest()booleanrendersPage()-
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onBind, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
-
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHead
-
-
-
-
Constructor Detail
-
AjaxCallbackBehavior
public AjaxCallbackBehavior()
Constructor with default "application/json" content type
-
AjaxCallbackBehavior
public AjaxCallbackBehavior(String mimetype)
Constructor- Parameters:
mimetype- the content type
-
-
Method Detail
-
rendersPage
public boolean rendersPage()
-
getResponse
protected abstract String getResponse(IRequestParameters parameters)
Gets the response text- Parameters:
parameters- theIRequestParameters- Returns:
- the response text
-
onRequest
public void onRequest()
Warning: Overridden methods should callsuper.onRequest()
-
-