public class AjaxHyperlink extends AjaxDynamicElement
Name | Description |
---|---|
elementName | the HTML element name |
onSuccess | JS function, called on a 2xx response on the client |
onFailure | JS function, called on a non-200 response on the client |
onComplete | JS function, called on completion |
onLoading | the js function to call when loading |
evalScripts | whether or not to eval scripts on the result |
onClickBefore | if the given function returns true, the onClick is executed. This is to support confirm(..) dialogs. |
onClick | JS function, called after the click on the client |
onClickServer | JS returned from the server after the update |
action | method to call |
title | title of the link |
string | optional string for link text for when there is no element content |
id | id of the link |
class | class of the link |
style | style of the link |
disabled | whether or not this link is disabled |
functionName | if set, the link becomes a javascript function |
ERXDynamicElement.ContextData<T>
log
_children
_ConstructorParameters
Constructor and Description |
---|
AjaxHyperlink(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRequiredWebResources(WOResponse res,
WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(WOResponse response,
WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext) . |
protected NSDictionary |
createAjaxOptions(WOComponent component) |
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Override this method to return the response for an Ajax request.
|
String |
onClick(WOContext context) |
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, invokeAction, shouldHandleRequest
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 AjaxHyperlink(String name, NSDictionary<String,WOAssociation> associations, WOElement children)
protected NSDictionary createAjaxOptions(WOComponent component)
public void appendToResponse(WOResponse response, WOContext context)
AjaxDynamicElement
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext)
.appendToResponse
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionprotected void addRequiredWebResources(WOResponse res, WOContext context)
AjaxDynamicElement
addRequiredWebResources
in class AjaxDynamicElement
res
- the current responsecontext
- context of the transactionpublic WOActionResults handleRequest(WORequest request, WOContext context)
AjaxDynamicElement
handleRequest
in interface IAjaxElement
handleRequest
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionCopyright © 2002 – 2024 Project Wonder.