public abstract class AjaxDynamicElement extends ERXDynamicElement implements IAjaxElement
ERXDynamicElement.ContextData<T>
log
_children
_ConstructorParameters
Constructor and Description |
---|
AjaxDynamicElement(String name,
NSDictionary<String,WOAssociation> associations,
NSMutableArray<WOElement> children) |
AjaxDynamicElement(String name,
NSDictionary<String,WOAssociation> associations,
WOElement template) |
Modifier and Type | Method and Description |
---|---|
protected String |
_containerID(WOContext context)
Override this method and return an update container ID this element should react on.
|
protected abstract void |
addRequiredWebResources(WOResponse response,
WOContext context)
Override this method to append the needed scripts for this component.
|
protected void |
addScriptResourceInHead(WOContext context,
WOResponse response,
String fileName)
Adds a script link tag with a correct resource URL in the HTML head tag if it isn't
already present in the response.
|
protected void |
addScriptResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
Adds a script link tag with a correct resource URL in the HTML head tag if it isn't
already present in the response.
|
protected void |
addStylesheetResourceInHead(WOContext context,
WOResponse response,
String fileName)
Adds a stylesheet link tag with a correct resource URL in the HTML head
tag if it isn't already present in the response.
|
protected void |
addStylesheetResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
Adds a stylesheet link tag with a correct resource URL in the HTML head
tag if it isn't already present in the response.
|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call
addRequiredWebResources(WOResponse, WOContext) . |
abstract WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request.
|
WOActionResults |
invokeAction(WORequest request,
WOContext context)
Execute the request, if it's coming from our action, then invoke the ajax handler and put the key
AJAX_REQUEST_KEY in the request userInfo dictionary (request.userInfo() ). |
protected boolean |
shouldHandleRequest(WORequest request,
WOContext context)
Checks if the current request should be handled by this element.
|
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public AjaxDynamicElement(String name, NSDictionary<String,WOAssociation> associations, WOElement template)
public AjaxDynamicElement(String name, NSDictionary<String,WOAssociation> associations, NSMutableArray<WOElement> children)
public WOActionResults invokeAction(WORequest request, WOContext context)
AJAX_REQUEST_KEY
in the request userInfo dictionary (request.userInfo()
).invokeAction
in class com.webobjects.appserver._private.WODynamicGroup
request
- the current requestcontext
- context of the transactionprotected String _containerID(WOContext context)
context
- context of the transactionnull
protected boolean shouldHandleRequest(WORequest request, WOContext context)
request
- the current requestcontext
- context of the transactiontrue
if we should handle the requestpublic void appendToResponse(WOResponse response, WOContext context)
addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class com.webobjects.appserver._private.WODynamicGroup
response
- the current responsecontext
- context of the transactionprotected abstract void addRequiredWebResources(WOResponse response, WOContext context)
response
- the current responsecontext
- context of the transactionpublic abstract WOActionResults handleRequest(WORequest request, WOContext context)
handleRequest
in interface IAjaxElement
request
- the current requestcontext
- context of the transactionprotected void addScriptResourceInHead(WOContext context, WOResponse response, String framework, String fileName)
context
- context of the transactionresponse
- the current responseframework
- name of the framework that contains the filefileName
- script file nameprotected void addScriptResourceInHead(WOContext context, WOResponse response, String fileName)
context
- context of the transactionresponse
- the current responsefileName
- script file nameprotected void addStylesheetResourceInHead(WOContext context, WOResponse response, String framework, String fileName)
context
- context of the transactionresponse
- the current responseframework
- name of the framework that contains the filefileName
- CSS file nameprotected void addStylesheetResourceInHead(WOContext context, WOResponse response, String fileName)
context
- context of the transactionresponse
- the current responsefileName
- CSS file nameCopyright © 2002 – 2024 Project Wonder.