org.apache.wicket.ajax
Interface AjaxRequestTarget.IListener

Enclosing class:
AjaxRequestTarget

public static interface AjaxRequestTarget.IListener

An AjaxRequestTarget listener that can be used to respond to various target-related events


Method Summary
 void onAfterRespond(java.util.Map map, AjaxRequestTarget.IJavascriptResponse response)
          Triggered after ajax request target is done with its response cycle.
 void onBeforeRespond(java.util.Map map, AjaxRequestTarget target)
          Triggered before ajax request target begins its response cycle
 

Method Detail

onBeforeRespond

void onBeforeRespond(java.util.Map map,
                     AjaxRequestTarget target)
Triggered before ajax request target begins its response cycle

Parameters:
map - read-only map:markupId->component of components already added to the target
target - the target itself. Could be used to add components or to append/prepend javascript

onAfterRespond

void onAfterRespond(java.util.Map map,
                    AjaxRequestTarget.IJavascriptResponse response)
Triggered after ajax request target is done with its response cycle. At this point only additional javascript can be output to the response using the provided AjaxRequestTarget.IJavascriptResponse object NOTE: During this stage of processing any calls to target that manipulate the response (adding components, javascript) will have no effect

Parameters:
map - read-only map:markupId->component of components already added to the target
response - response object that can be used to output javascript


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.