public static interface AjaxRequestTarget.IListener
AjaxRequestTarget
listener that can be used to respond to various target-related
eventsModifier 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.
|
void onBeforeRespond(Map<String,Component> map, AjaxRequestTarget target)
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
javascriptvoid onAfterRespond(Map<String,Component> map, AjaxRequestTarget.IJavaScriptResponse response)
AjaxRequestTarget.IJavaScriptResponse
object
NOTE: During this stage of processing any calls to target that manipulate the response
(adding components, javascript) will have no effectmap
- read-only map:markupId->component of components already added to the targetresponse
- response object that can be used to output javascriptvoid updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior, AjaxRequestAttributes attributes)
behavior
- the behavior the attributes are updated forattributes
- The attributes for the Ajax behaviorCopyright © 2006–2017 Apache Software Foundation. All rights reserved.