AjaxHyperlink Class Reference

Inherits er::ajax::AjaxDynamicElement.

Collaboration diagram for AjaxHyperlink:

Collaboration graph
base refererrect $classer_1_1ajax_1_1_ajax_dynamic_element.html 7,83 156,107rect $interfaceer_1_1ajax_1_1_i_ajax_element.html 31,8 132,32
[legend]

List of all members.

Public Member Functions

 AjaxHyperlink (String name, NSDictionary associations, WOElement children)
void appendToResponse (WOResponse response, WOContext context)
WOActionResults handleRequest (WORequest request, WOContext context)
String onClick (WOContext context)

Protected Member Functions

void addRequiredWebResources (WOResponse res, WOContext context)
NSDictionary createAjaxOptions (WOComponent component)


Detailed Description

Ajax enabled Hyperlink. Calls an action on the server, then executes methods on the client.

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

Author:
ak

Constructor & Destructor Documentation

AjaxHyperlink ( String  name,
NSDictionary  associations,
WOElement  children 
)


Member Function Documentation

void addRequiredWebResources ( WOResponse  response,
WOContext  context 
) [protected, virtual]

Override this method to append the needed scripts for this component.

Implements AjaxDynamicElement.

void appendToResponse ( WOResponse  response,
WOContext  context 
)

Overridden to call addRequiredWebResources(WOResponse, WOContext).

Reimplemented from AjaxDynamicElement.

NSDictionary createAjaxOptions ( WOComponent  component  )  [protected]

WOActionResults handleRequest ( WORequest  request,
WOContext  context 
) [virtual]

Override this method to return the response for an Ajax request.

Parameters:
request 
context 

Implements AjaxDynamicElement.

String onClick ( WOContext  context  ) 


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:38 2012 for Project Wonder by  doxygen 1.5.8