• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Resource manager not finding nested files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Resource manager not finding nested files
      • From: Steve Quirk <email@hidden>
    • Re: Resource manager not finding nested files
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: D2W Question
  • Next by Date: Re: D2W Question
  • Previous by thread: Re: D2W Question
  • Next by thread: Re: Resource manager not finding nested files
  • Index(es):
    • Date
    • Thread