Resource manager not finding nested files
Resource manager not finding nested files
- Subject: Resource manager not finding nested files
- From: Simon McLean <email@hidden>
- Date: Wed, 10 Oct 2007 12:00:05 +0100
Hi there,
I've been trying to get resource manager to find style sheets in my
web server resources. What i'm finding is that if the style sheet is
in the root of the WebServerResources folder in my project (Eclipse/
WOLips) then RM finds it. However, if it's in a sub-folder it can't
find it. All the sub-folders have been "included as webserver resource".
I was looking at the source to the wonder Ajax framework and can see
that all the web server stuff in that framework is in the root
WebServerResources folder so I'm presuming this is a known feature of
the RM. Can anyone confirm if that's true ?
Also, I'm adding the style sheets to the response's head (via
ERXWOContext.addResourceInHead()) so i get stuff in the head like this:
<link rel="stylesheet" href="/cgi-bin/WebObjects/Test.woa/wr/wodata=/
Users/Eclipse/Test/build/TestFramework.framework/WebServerResources/
styles.css" type="text/css">
However, some of the style sheets contain import statements such as:
@import 'another.css';
I presumed the browser would interpret that as:
/cgi-bin/WebObjects/Test.woa/wr/wodata=/Users/Eclipse/Test/build/
TestFramework.framework/WebServerResources/another.css
... but that doesn't work (when put in a browser it returns a page
with no content at all).
Any tips on handling import statements ?
Obviously this all works perfectly if I just chuck all the CSS stuff
under the web server root and then stuff explicit references in to
the head rather than trying to use RM. Maybe that's the way forward ?
Thanks, Simon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden