I see what the problem is but am no sure what to do to fix it. When I run the app on the server the html is looking for the css file in the /Library/Webserver/Documents folder:
<link rel="stylesheet" type="text/css" href="/WebObjects/Frameworks/COREWonderFW.framework/WebServerResources/CORECalendar.css"/> It can’t find it there because I have included all my frameworks in the app’s .woa here: App.woa/Contents/Frameworks/COREWonderFW.framework/WebServerResources/CORECalendar.css Is there a way to change that link so that it finds the .css? (That <link> seems to be generated. It’s not in my code) Calven > On Apr 8, 2015, at 3:48 AM, Markus Ruggiero <[email protected]> wrote: > > >> On 07.04.2015, at 22:13, Calven Eggert <[email protected]> wrote: >> >> Hi All, >> >> I’m using AjaxDatePicker and it works great on my machine, however, when >> installed on server the app doesn’t display the date. >> >> The link when working locally is: >> >> AOD.loadCSS('/cgi-bin/WebObjects/CancerStaging.woa/_wr_/wodata=/Users/coredev/Projects/COREWonderFW/Resources/CORECalendar.css') >> >> When on the server: >> >> AOD.loadCSS('/WebObjects/Frameworks/COREWonderFW.framework/Resources/CORECalendar.css') >> >> I am overriding the css and framework so that all my apps can use the same >> css: >> >> AuditAjaxDate: AjaxDatePicker { >> ... >> calendarCSS = "CORECalendar.css"; >> calendarCSSFramework = "COREWonderFW"; >> } >> >> Have I entered the values correctly (relative paths), or is there something >> else I’ve missed? >> >> Calven >> >> > > Calven, > > this is "split install". > > during development you can put your static webserver resources either in > Resources or WebServerResources folder. The resource manager will locate > them. The URL from the development clearly shows this (access through your > application). In deployment mode however the resources will be referenced > statically direclty by the web server, not through your application. > Therefore the resources need to be put where your Apache can find them. This > is called split install. When you build your application (ant build with > build.xml) you get two .tar.gz files. One is the application and one contains > the static web server resources. Unpack those into your docroot folder. > > You can either embed all the frameworks into your application or then all the > frameworks must be installed in either wo.system.frameworks or > wo.local.frameworks (these are paths from your wolips.properties file). The > ant build process will collect and package all the static resources from your > application and the frameworks. > > Hope this helps > > ---markus--- > Calven _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
