This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I want to implement Favicon in JSF trinidad and i couldnt find any tag that would help me to achieve this.
Incase of HTml the below code will work so i wanted to know whether is an equivalent way to achieve this in JSF
<link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico">
If your <link> tag works don't change it. It is valid HTML and doesn't need special treatment. Although, I'm not an active Trinidad guy I use it in ICEfaces like this. You may think about creating the icon path from the Faces Context instead.
BTW: The command link answer makes no sense because we don't talk about an action here.
To make favicon work, all you really need is a bog-standard "favicon.ico" file in the usual WAR location.
If you prefer to use the "link" HTML tag, use the "f:verbatim" element to wrap (escape) the link HTML tag and place the wrapped link in the usual location for such tags in the View definition. In other words, in the HEAD section.
Do NOT use h:commandLink (which generates a JSF postback, not a "link" element). Do NOT write some excessively-complex JSF-specific Java code.
Like so many things in JSF, the simplest solution is the one that works best.
Customer surveys are for companies who didn't pay proper attention to begin with.