Thanks Chuck for the explanation.
I don't know why your binding is working in development.
I checked out where WOData= is looking and it goes to the Frameworks
build directory - in there WebServerResources get flattened so
'filename=image.gif' works. On the other hand Installing a framework
keeps the original directory structure unflattened. So kind of
annoying that I have different behavior and looks like the simple
answer without wasting too much time is to just not use subdirectories.
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.
I haven't got round to looking at Localized.strings in Resources yet.
The build and installed Resource folders are identical, no flattening
there. Localized.strings are stored within appropriate .lproj folders
that looks right to me? I'm using ERXLocalizer so I'm never
explicitly constructing paths myself and just expecting the default
behavior to work in deployment as it does in development. I'll do
more investigation as to what's wrong.
Thanks
Paul
On Aug 20, 2007, at 7:26 PM, Chuck Hill 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";
_______________________________________________
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]