Using h: outputStylesheet I can embed CSS resources in the HTML head section, but how can I create a <link> for the favicon of an image resource that displays HTML, as in this example:
HTML output:
<head> ... <link rel="icon" type="image/png" href="favicon.png" /> ... </head>
The image resource is located in <web>/resources/images .
If I use direct HTML in the JSF template, for example href="/resources/images/favicon.png" , the resource was not found - switching to /resources/images/favicon.png leads to an error
/resources/images/favicon.png/index.jsf not found
(I set index.jsf as the index page in web.xml, which could explain this way)
mjn
source share