er.ajax
Class AjaxBehaviour
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
er.ajax.AjaxBehaviour
- All Implemented Interfaces:
- IAjaxElement
public class AjaxBehaviour
- extends AjaxDynamicElement
Adds a script tag with a Behaviour.register() with the content as the method argument.
Mostly useful because it spares you the hassle of including the script.
- Author:
- ak
| Bindings |
includeScriptTag | boolean also write out script tag |
| Methods inherited from class er.ajax.AjaxDynamicElement |
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, invokeAction, setValueForBinding, stringValueForBinding, takeValuesFromRequest, valueForBinding, valueForBinding |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
AjaxBehaviour
public AjaxBehaviour(String name,
NSDictionary associations,
WOElement children)
addRequiredWebResources
protected void addRequiredWebResources(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to append the needed scripts for this component.
- Specified by:
addRequiredWebResources in class AjaxDynamicElement
appendToResponse
public void appendToResponse(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Overridden to call
#addRequiredWebResources(WOResponse).
- Overrides:
appendToResponse in class AjaxDynamicElement
handleRequest
public WOActionResults handleRequest(WORequest request,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to return the response for an Ajax request.
- Specified by:
handleRequest in interface IAjaxElement- Specified by:
handleRequest in class AjaxDynamicElement
Copyright © 2002 – 2007 Project Wonder.