On Aug 20, 2007, at 11:39 PM, Paul Stringer wrote:
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.
I think you just have your project setup incorrectly. When I try
this, I get the directory structure under the build/ directory. When
are these images? Under Resources? Elsewhere? What is in your
woproject/resources.include/patternset.
Chuck
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";
--
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]