Re: Framwork Installation -- Help Needed
Re: Framwork Installation -- Help Needed
- Subject: Re: Framwork Installation -- Help Needed
- From: Geoff Hopson <email@hidden>
- Date: Mon, 22 Sep 2003 08:38:49 +0100
I tend to keep all my "web resources" like javascript files,
stylesheets, images etc inside the application itself, and in a
deployment the build script copies them under the webserver document
root and serve them up by providing the webserver URL to them.
Webservers are good at serving up static files, like images, scripts
etc. Takes a little jiggery pokery to get the bindings in frameworks to
be application agnostic, but it can be done...another subject another
day.
In your case, the first step is to ensure that you have the right
binding set on your WOResoureUrl element or on WOResourceManager (or
whatever you are using to find the Javascript file). Check out the API
for WOResourceManager - on pathForResourceNamed you can supply a
framework name. Ditto WOResourceURL
http://developer.apple.com/documentation/WebObjects/Reference/API/
index.html
http://developer.apple.com/documentation/WebObjects/Reference/
DynamicElements/WOResourceURL/index.html
Try putting your framework name wherever you load up the javascript
file, see if that works.
best wishes
geoff
On Monday, September 22, 2003, at 07:12 am, Jonathan Fleming wrote:
I've just created a webobjects framework for the first time and have
built it and installed it to the default.
I've removed all the files transfered to the framework from myApp and
now I get an error telling me my javaScript files can not be found --
these are now in the framework along with some other Class files and
resources.
What else do i need to do to get everthing to run OK. I've tried
importing the name of the framework but that just throws up errors...
I don't thing the problem is that bad but it is when you don't know
what you're doing so I really need help haere as I don't know what I'm
doing here.
TIA
Kind regards
Jonathan :^)
_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Geoff Hopson
Objectology Ltd.
http://www.objectology.co.uk/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.