Wiki source code of WOBody

Last modified by Pascal Robert on 2011/09/22 17:37

Hide last authors
Pascal Robert 4.1 1 {{toc/}}
Pascal Robert 1.1 2
3 = Introduction =
4
Pascal Robert 3.1 5 WOBody specifies the background image to display for the HTML page. All bindings for this element are related to the background image.
6
Pascal Robert 1.1 7 = Usage =
8
9 {{code}}
10
Pascal Robert 3.1 11 WOBody {
12 [src=aURL]
13 | [filename= imageFileName; [framework = frameworkBaseName|"app" ;]]
14 | [data=dataObject; mimeType=typeString; [key=cacheKey;]]...
15 }
Pascal Robert 1.1 16
17 {{/code}}
18
19 = Bindings =
20
Pascal Robert 4.1 21 |(((
22 src
23 )))|(((
24 URL containing the image data. Use this attribute for complete URLs; for relative URLs use filename instead.
25 )))
26 |(((
27 filename
28 )))|(((
29 Path to the image relative to the WebServerResources directory.
30 )))
31 |(((
32 framework
33 )))|(((
34 Framework that contains the image file. This attribute is only necessary if the image file is in a different location from the component. That is, if the component and the image file are both in the application or if the component and the image file are both in the same framework, this attribute isn't necessary. If the image file is in a framework and the component is in an application, specify the framework's name here (minus the .framework extension). If the image file should be in the application but the component is in a framework, specify the "app" keyword in place of the framework name.
35 )))
36 |(((
37 data
38 )))|(((
39 Specifies any resource in the form of an NSData object; this data can come from a database, a file, or memory. If you specify resource data, you must specify a MIME type.
40 )))
41 |(((
42 mimeType
43 )))|(((
44 A string designating a MIME resource type, such as "image/gif"; this type tells the client what to do with data. If you provide data but no MIME type, WebObjects throws an exception.
45 )))
46 |(((
47 key
48 )))|(((
49 A string that functions as a key for caching the data specified in data. If you do not provide a key, the data object must be fetched each time it is needed. For further information, see the reference documentation for the WOResourceManager class (pay particular attention to the flushDataCache method).
50 )))
Pascal Robert 3.1 51
Pascal Robert 1.1 52 = Examples =
53
54 == Java methods ==
55
56 == WOD-style ==
57
Pascal Robert 4.1 58 {{code/}}
Pascal Robert 1.1 59
60 == Inline bindings (WOOGNL) ==
61
Pascal Robert 4.1 62 {{code/}}
Pascal Robert 1.1 63
64 = Related documents =