Tobago Demo

Menu

Icons

For application icons, usually shown in browser tabs or bookmarks, use the <tc:metaLink> tag. It will be rendered as an HTML <link> tag inside the <head> tag.

There are different formats for different devices possible. Especially for mobile devices there are a lot of possibilities. In the MDN Web Docs you may find further information.

In this demo it is used in the template file main.xhtml. Example:

<tc:metaLink href="#{request.contextPath}/image/feather.ico" rel="shortcut icon"/>
<tc:metaLink href="#{request.contextPath}/image/feather.png" rel="apple-touch-icon"/>

© 2005-2023 Apache Software Foundation, Licensed under the Apache License, Version 2.0.