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(AbstractDefaultAjaxBehavior behavior,
AjaxRequestAttributes attributes)
Triggered for every Ajax behavior.
|
public void updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior, AjaxRequestAttributes attributes)
AjaxRequestTarget.IListener
updateAjaxAttributes
in interface AjaxRequestTarget.IListener
behavior
- the behavior the attributes are updated forattributes
- The attributes for the Ajax behaviorpublic void onBeforeRespond(Map<String,Component> map, AjaxRequestTarget target)
AjaxRequestTarget.IListener
onBeforeRespond
in interface AjaxRequestTarget.IListener
map
- 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.IListener
AjaxRequestTarget.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.IListener
map
- read-only map:markupId->component of components already added to the targetresponse
- response object that can be used to output javascriptCopyright © 2006–2016 Apache Software Foundation. All rights reserved.