Re: file locations
Re: file locations
- Subject: Re: file locations
- From: Chuck Hill <email@hidden>
- Date: Fri, 12 Nov 2004 15:26:26 -0800
On Nov 12, 2004, at 3:20 PM, Wes James wrote:
On Fri, 12 Nov 2004 15:12:29 -0800, Chuck Hill
<email@hidden> wrote:
At 03:52 PM 12/11/2004 -0700, Wes James wrote:
<snap>
I can't find (nor can Google) anything called D2WFileFromPath? Is
that
from Wonder? It could be that you are just plain using the wrong
magic
here. You have an object. It has the file path. What is wrong with
just
using a plain, ole WOImage? Bind source to slide.pathToSlide and be
done
with it. No magic required.
It should be D2WDisplayImageFromPath
It seems clear that you have the wrong magic, the docs state, "The
D2WDisplayImageFromPath class is a property-level component that
displays an image whose name is stored in the attribute. The image
must be a resource in your application or the framework that you
specify in the Web Assistant."
That is just never going to work for you.
How do you use a WOimage in a D2W project? Create a new wocomponent
with only a woimage in it and then in the dropdown list for the image
db field from eomodelor (in webassistant) select D2WCustomComponent?
But then how do I grab the file name from the db? or what do I bind
the src to to get the /path/slidel.jpg?
Sorry, I've not used D2W much in the last couple years. Someone else
will know.
Chuck
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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