Last modified by Lachlan Scott on 2007/07/12 19:54

From version 2.1
edited by Lachlan Scott
on 2007/07/12 18:54
Change comment: There is no comment for this version
To version 5.1
edited by Lachlan Scott
on 2007/07/12 19:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,14 +2,19 @@
2 2  
3 3  **Discussion:** WebObjects provides the WOImage tag to manage images in component pages which obviates the 'img' tag, and which can be somewhat unintuitive for the beginning WO developer. The tag supports all the expected HTML img attributes as far as I can tell; needs checking and the 'filename' attribute which references the location of the image to WebObjects. The images themselves must
4 4  
5 -**Question:** Yeah, but why can't I just make a static reference in the usual way? Well actually, you can link required, but you don't really want to explanation required: load balancing, web server resources, etc, and the WOImage tag is an elegant solution that you will come to appreciate in time; trust us, we're doctors. Well, some of us are, anyway. :-)
5 +**Question:** Yeah, but why can't I just make a static reference in the usual way? Well actually, you can link required, but you don't really want to explanation required: load balancing, web server resources, etc, and the WOImage tag is an elegant solution that you will come to appreciate in time; trust us, we're doctors. Well, some of us are, anyway. ;-)
6 6  
7 -Solution:
7 +**Solution:**
8 8  
9 -* Create a suitable image directory structure in your project
10 -* Import the image into the directory of your choice
11 -* Add the WOImage tag to your page
12 -* Reference the image using the 'filename' attribute
9 +1. Create a suitable image directory structure in your project
10 +1. Import the image into the directory of your choice
11 +1. Add the WOImage tag to your page
12 +1. Reference the image using the 'filename' attribute
13 13  
14 - 
14 +\\
15 +
16 +1. Create a suitable image directory structure in your project
17 +11. In Eclipse Package Explorer, right-click the project and select  New > Folder (see image) and name the folder something appropriate such as 'images'
18 +11. Proceed in this way, building the structure you want
19 +
15 15  In the WOLips perspective, double-click the component to which you want to add the image