OK, I used the "Mike Schrag" component from the Wonder tutorial, and
the app can see the CSS (for fonts at least). I also just tried the
ERXStyleSheet and got the same result.
Unfortunately, it doesn't solve the CSS image path issue. (so
presumably it's unrelated to wonder, but more my confusion about how
these paths are resolved in WO)
If I have a folder "CSS" inside WebserverResources containing the CSS,
while all the images are in the root of WebserverResources (i.e. the
path to the images is ../image relative to the css file)
I have a class in the css:
#sidebar {
background-image: "../image.gif"; // I also tried "image.gif"
background-repeat: repeat-y;
float: left;
width: 210px;
height: 100%;
}
Unfortunately, the app compiles and runs, but does not see the
background image. It does see all the woimages in the html however.
The images are all in the WebServerResources folder inside the .woa
(as is the CSS folder)
If you have any suggestions as to how this path should be, or where to
set whatever I need to set, I'd appreciate it.
Andrew
On Aug 30, 2008, at 10:57 PM, Ramsey Gurley wrote:
<webobject name = "CSS" />
ERXStyleSheet: CSS {
filename = "example.css";
}
does the trick for me :-)
On Aug 30, 2008, at 8:02 PM, Andrew R. Kinnie wrote:
No. . . . should I be?
How does that work?
On Aug 30, 2008, at 7:57 PM, Ramsey Gurley wrote:
Are you using ERXStyleSheet?
On Aug 30, 2008, at 4:25 PM, Andrew R. Kinnie wrote:
Greetings:
I am converting an older WebObjects app to both WOnder and making
better use of CSS. I did say it was an old app. Anyway, I
followed the tutorial instructions for converting an existing
application to WOnder, and it compiles and runs. I even managed
to get it to see the stylesheet, because the fonts (for example)
are appearing. However, I have attempted to add a background
image in the CSS for a sidebar div, and it does not find the
image. It appears to be related to the difference between static
and dynamic images. All of the woimage images appear perfectly.
The image is in the project's webserver resources folder, and
appeared properly in the old table based layout. The stylesheet
is in a CSS subfolder inside WebServerResources.
I have tried (in the CSS)
image.gif
../image.gif
../WebServerResources/image.gif
None of these work. There should not be anything out of the
ordinary in the setup, everything is inside the .woa (i.e. no
split deployment) Where should I be looking? Where would these
settings be?
Does anyone have any insight?
Thanks.
Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]