Re: Reusable components
Re: Reusable components
- Subject: Re: Reusable components
- From: Dov Rosenberg <email@hidden>
- Date: Fri, 22 Oct 2004 17:11:09 -0400
I agree with Chuck, nothing good will come out of embedding your images, etc
inside a framework or app. Another benefit of not doing that is your web
server does the image serving not your WO app. Helps scalability
tremendously!!
--
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com
On 10/22/04 2:57 PM, "Chuck Hill" <email@hidden> wrote:
> Many will argue with me. Let them rant, I say. :-P
>
> Do not include these shared resources in your project. Keep them in
> the web server's doc root where you, your app, and (here is the
> important part!) the graphics guys can all access them. When they
> update the images, there is no need for you to update your project.
> They can design new pages without getting the images from your project,
> nothing gets out of synch.
>
> Then in your image tags, use relative URLs that start with '/', e.g.
> <img src="/images/navigation/navbar.gif">
>
> To make this work you can't use DirectConnect (I think, maybe there is
> a way). This is also, IMHO, a good thing as you develop as you deploy.
>
>
> Anyway, that is my two cents on the subject.
>
> Chuck
>
>
> On Oct 21, 2004, at 6:41 PM, Darich Runyan/OMNI INFOSEC LTD HQ wrote:
>
>> All,
>>
>> Just recently finished up my first production WO web app. I took the
>> easy
>> route and focused only on the logic, didn't mess with any of that
>> stinking
>> graphics stuff. ;^) Now that the app has completed testing and is
>> deployed
>> the client wants me to work with the graphics design group to pretty
>> it up.
>> The layout that the graphics guys have come up with have a lot of
>> sections
>> that are juicy for reusable components so I started to look into how to
>> create one today. I created a new framework and build the reusable
>> component within the framework. I also included all of the images
>> that the
>> component needed within the framework. I then added this new
>> framework to
>> my test application and it worked fine except it did not show the
>> image that
>> I was looking for, it output the following error within the HTML
>> output:
>>
>> <img
>> src="/cgi-bin/WebObjects/Authors.woa/wr?
>> wodata=ERROR_NOT_FOUND_framework_*nu
>> ll*_filename_navbar.gif">
>>
>> Do I need to capture the resource somehow in order to display it?
>>
>> Thanks,
>> Darich
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> village.net
>>
>> This email sent to email@hidden
>>
_______________________________________________
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