Hi Paul,

On Aug 20, 2007, at 1:47 AM, Paul Stringer wrote:

After a day I figured out why resources in embedded frameworks we're not working. The problem turned out to be that in my eagerness to keep things tidy I had all my resources in subfolders ie: /Graphics /Styles within WebServerResources. Looks like that doesn't work, but in development these work fine and I'm trying to understand why.

My guess is because the use of wodata=path/to/resources/ behaviour just happens to work although I'm not sure how ResourceManager resolves something called image.gif to /graphics/image.gif if it doesn't understand nested resources. In deployment they don't work because I'm assuming that when asking say in a WOImage for a filename=image.gif the WODeployedBundle has everything internally named "graphics/ image.gif" and so the filename doesn't match up.

I think your filename binding is wrong. The docs say, "filename - Path to the image relative to the WebServerResources directory." Note the "path" part. The binding should be:

filename = "/Graphics/image.gif";

I don't know why your binding is working in development.


I'm just checking this is correct behaviour and that basically you shouldn't nest your resources. On the other hand I'm wondering if this is indicating something wrong with the build of my Frameworks. I also seem to be having a problem with finding /Resources/ English.lproj/Localized.strings files in frameworks which is of course also nested and also seems to be unable to be found when deployed.

That might depend on what path you are using. :-) It should not have Resources: "/English.lproj/Localized.strings";

There was also a problem at one point with something flattening the resources.


Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to