public class AjaxEnclosureListener extends Object implements AjaxRequestTarget.IListener
WebApplication
,
InlineEnclosure
,
InlineEnclosureHandler
Constructor and Description |
---|
AjaxEnclosureListener()
Construct.
|
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)
Try to find Enclosures that have their controllers added already, and add them to the target.
|
public void onBeforeRespond(Map<String,Component> map, AjaxRequestTarget target)
onBeforeRespond
in interface AjaxRequestTarget.IListener
map
- read-only 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-2012 Apache Software Foundation. All Rights Reserved.