Changes for page WOHyperlink

Last modified by Pascal Robert on 2012/01/30 22:04

From version 4.1
edited by Pascal Robert
on 2011/04/26 23:06
Change comment: There is no comment for this version
To version 7.1
edited by Pascal Robert
on 2012/01/30 22:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,16 +1,77 @@
1 -{{toc}}{{/toc}}
1 +{{toc/}}
2 2  
3 3  = Introduction =
4 4  
5 +WOHyperlink generates a hypertext link in an HTML document.
6 +
7 +If you use Project Wonder, WOHyperlink is automatically patched with ERXHyperlink.
8 +
5 5  = Usage =
6 6  
7 7  {{code}}
8 8  
13 +WOHyperlink { action=aMethod | href=aURL; | pageName=aString; | directActionName=anActionName; [actionClass=className;] [fragmentIdentifier=anchorFragment;] [string=aString;] [target=frameName;] [disabled=aBoolean;] [secure=aBoolean;] [queryDictionary=aDict;]...}
9 9  
10 10  {{/code}}
11 11  
12 12  = Bindings =
13 13  
19 +|(((
20 +action
21 +)))|(((
22 +Action method to invoke when this element is activated. The method must return a WOElement.
23 +)))
24 +|(((
25 +href
26 +)))|(((
27 +URL to direct the browser to when the link is clicked.
28 +)))
29 +|(((
30 +pageName
31 +)))|(((
32 +Name of WebObjects page to display when the link is clicked.
33 +)))
34 +|(((
35 +directActionName
36 +)))|(((
37 +The name of the direct action method (minus the "Action" suffix) to invoke when this element is activated. Defaults to "default".
38 +)))
39 +|(((
40 +actionClass
41 +)))|(((
42 +The name of the class in which the method designated in directActionName can be found. Defaults to DirectAction.
43 +)))
44 +|(((
45 +fragmentIdentifier
46 +)))|(((
47 +Named location to display in the destination page.
48 +)))
49 +|(((
50 +string
51 +)))|(((
52 +Text displayed to the user as the link. If you include any text between the <WEBOBJECT ...> and </WEBOBJECT> tags for this element, the contents of string is appended to that text.
53 +)))
54 +|(((
55 +target
56 +)))|(((
57 +Frame in a frameset that will receive the page returned as a result of the user's click.
58 +)))
59 +|(((
60 +disabled
61 +)))|(((
62 +If evaluates to true , the content string is displayed, but the hyperlink is not active.
63 +)))
64 +|(((
65 +secure
66 +)))|(((
67 +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).
68 +)))
69 +|(((
70 +queryDictionary
71 +)))|(((
72 +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.
73 +)))
74 +
14 14  = Examples =
15 15  
16 16  == Java methods ==
... ... @@ -17,16 +17,12 @@
17 17  
18 18  == WOD-style ==
19 19  
20 -{{code}}
81 +{{code/}}
21 21  
22 -
23 -{{/code}}
24 -
25 25  == Inline bindings (WOOGNL) ==
26 26  
27 -{{code}}
85 +{{code/}}
28 28  
29 -
30 -{{/code}}
31 -
32 32  = Related documents =
88 +
89 +[[ERXHyperlink>>url:http://wocommunity.org/wonder/latest/api/er/extensions/components/_private/ERXHyperlink.html||shape="rect"]]