public static class AjaxRequestTarget.AbstractListener extends Object implements AjaxRequestTarget.IListener
AjaxRequestTarget.IListener useful as a starting point for your own
custom listener.| Constructor and Description |
|---|
AjaxRequestTarget.AbstractListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterRespond(Map<String,Component> map,
AjaxRequestTarget.IJavaScriptResponse response)
Triggered after ajax request target is done with its response cycle.
|
void |
onBeforeRespond(Map<String,Component> map,
AjaxRequestTarget target)
Triggered before ajax request target begins its response cycle
|
void |
updateAjaxAttributes(Behavior behavior,
AjaxRequestAttributes attributes)
Triggered for every Ajax behavior.
|
public void updateAjaxAttributes(Behavior behavior, AjaxRequestAttributes attributes)
AjaxRequestTarget.IListenerupdateAjaxAttributes in interface AjaxRequestTarget.IListenerbehavior - the behavior the attributes are updated forattributes - The attributes for the Ajax behaviorpublic void onBeforeRespond(Map<String,Component> map, AjaxRequestTarget target)
AjaxRequestTarget.IListeneronBeforeRespond in interface AjaxRequestTarget.IListenermap - modifiable map (markupId -> component) of components already added to the targettarget - the target itself. Could be used to add components or to append/prepend
javascriptpublic void onAfterRespond(Map<String,Component> map, AjaxRequestTarget.IJavaScriptResponse response)
AjaxRequestTarget.IListenerAjaxRequestTarget.IJavaScriptResponse object
NOTE: During this stage of processing any calls to target that manipulate the response
(adding components, javascript) will have no effectonAfterRespond in interface AjaxRequestTarget.IListenermap - read-only map:markupId->component of components already added to the targetresponse - response object that can be used to output javascriptCopyright © 2006–2014 Apache Software Foundation. All rights reserved.