-3

I want to have a fav icon in JSF which is streaming from the local computer. This means the fav icon is not directly in the project folder included. How can I do this? Can anybody help me?

I need the following: My User will upload the images / favicon to the server. Currently I have the favicon in the "resource" folder from my webapp. But I would like that the images (the path of the image is stored in the database) is showing as my favicon. This means the favicon is phyiscal stored at the server and not in the webapp. I did this same with other pictures with primefaces.org/showcase/ui/multimedia/graphicImage.xhtml but I don´t know how can I do this with favicons?

Thank you for every help.

8
  • Why? Weird requirement. Users can in most os'es already change the icon of a bookmarked site
    – Kukeltje
    Aug 21, 2016 at 20:12
  • Who will do this? Do you change the icon from facebook e.g.????? My requirement is to store the fav icon not directly in the project folder because it should be changable everytime Aug 21, 2016 at 20:21
  • No, I don't change the favicon of any site, but especially not in the way you required. Want it changable? Then store it in the database with the userprofile, simple technically the most sound/safe etc
    – Kukeltje
    Aug 21, 2016 at 20:34
  • Maybe there this some confusions: I need the following: My User will upload the images / favicon to the server. Currently I have the favicon in the "resource" folder from my webapp. But I would like that the images (the path of the image is stored in the database) is showing as my favicon. This means the favicon is phyiscal stored at the server and not in the webapp. I did this same with other pictures with primefaces.org/showcase/ui/multimedia/graphicImage.xhtml but I don´t know how can I do this with favicons? Aug 22, 2016 at 7:46
  • Dear BalusC, yes, I know and implement this already for "normal" pictures but how can I do this for FavIcons? <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"> If I use for example: primefaces.org/showcase/ui/multimedia/graphicImage.xhtml than I got a <img in the html output. The question is how can I do this for a FavIcon? Aug 22, 2016 at 10:53

1 Answer 1

0

From my knowledge: you can't.

The best thing to do is just include the favicon in the project directory.

3

Not the answer you're looking for? Browse other questions tagged or ask your own question.