Changes for page WOActionURL

Last modified by Pascal Robert on 2011/10/18 06:06

From version 2.1
edited by Pascal Robert
on 2011/04/26 23:00
Change comment: There is no comment for this version
To version 3.1
edited by Pascal Robert
on 2011/04/26 23:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,15 +2,27 @@
2 2  
3 3  = Introduction =
4 4  
5 +WOActionURL enables the creation of URLs to invoke methods or specify pages to return. You can use this element for a variety of purposes, but it is primarily intended to support JavaScript within a WebObjects application.
6 +
5 5  = Usage =
6 6  
7 7  {{code}}
8 8  
11 +WOActionURL {action=aMethod | pageName=aString; directActionName=anActionName; actionClass=className; [fragmentIdentifier=anchorFragment;] [queryDictionary=aDict; ?key=value;] [secure=aBoolean;]}
9 9  
10 10  {{/code}}
11 11  
12 12  = Bindings =
13 13  
17 +| action | Action method to invoke when the URL is accessed. This method must return a an object that conforms to the WOActionResults interface such as WOComponent or WOResponse.
18 +| pageName | The name of a WebObjects page to display when the URL is accessed.
19 +| directActionName | The direct action method to invoke when the URL is accessed (minus the "Action" suffix). Defaults to "default".
20 +| actionClass | The name of the class in which the directActionName can be found. Defaults to "DirectAction".
21 +| fragmentIdentifier | Named location to display in the destination page (that is, an anchor in the destination page).
22 +| queryDictionary | Takes a dictionary that should be appended to the hyperlink's URL after a question mark character. The dictionary must be correctly encoded and will be merged with any existing query dictionary for a particular session ID.
23 +| ?key | Adds a key-value pair to the specified queryDictionary (or replaces an existing key) by prefixing the key with a "?". For example: ?x = y; puts the key "x" into the query dictionary with the value of the keypath y.
24 +| secure | Changes the URL prefix from http to https when WebObjects generates URLs for component actions and direct actions for this element. For this attribute to have any effect, you must provide bindings either for the action, directAction, actionClass, or pageName attribute (respecting the valid combinations).
25 +
14 14  = Examples =
15 15  
16 16  == Java methods ==