ERXFavicon problem
ERXFavicon problem
- Subject: ERXFavicon problem
- From: "Shkutkov Michael" <email@hidden>
- Date: Fri, 1 Aug 2008 13:44:37 +0400
Hi everyone,
I've got a question. Does anybody use ERXFavIcon? It doesn't work properly locally (on production it's ok)
The cause of problem is this code:
WOResourceManager rs = WOApplication.application().resourceManager();
href = "" framework, null, null);
We should pass request in urlForResourceNamed. With null algument we have such path:
/WebObjects/MyApp.woa/Contents/WebServerResources/favicon.ico
instead of
/cgi-bin/WebObjects/MyApp.woa/-41424/wr/wodata=/Users/username/Documents/workspace/MyApp/build/MyApp.woa/Contents/WebServerResources/favicon.ico
By the way, ERXStyleSheet passes request in urlForResourceNamed and doesn't have such problem. So it seems that we just need to replace
href = "" framework, null, null);
with
href = "" framework, null, context.request());
Any thoughts?
--
Cheers, Michael
_______________________________________________
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