• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERXFavicon problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Third Party Jar Project
  • Next by Date: Re: Third Party Jar Project
  • Previous by thread: Re: Third Party Jar Project
  • Next by thread: Practical Webobjects PracticalUtilites project
  • Index(es):
    • Date
    • Thread