Antonio Goncalves created FORGE-2371:
----------------------------------------
Summary: Use <h:graphicImage> instead of <img> in JSF
scaffolding
Key: FORGE-2371
URL:
https://issues.jboss.org/browse/FORGE-2371
Project: Forge
Issue Type: Sub-task
Components: Scaffold
Affects Versions: 2.16.2.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
In the JSF scaffolding, it would be better to use the JSF <h:graphicImage> instead
of <img> (to have a more JSF consistent code). There are two pages that would need
to get changed :
In the {{pageTemplate.xhtml}}, we should replace
{code}
<img src='#{resource["forge-logo.png"]}' alt="Forge... get
hammered" border="0" />
{code}
With :
{code}
<h:graphicImage value="#{resource['forge-logo.png']}"
alt="Forge... get hammered" border="0" />
{code}
In the {{error.xhtml}}, we should replace
{code}
<img src='#{resource["jboss-community.png"]}' alt="JBoss and
JBoss Community" width="254" height="31" border="0"
/>
{code}
With :
{code}
<h:graphicImage value="#{resource['jboss-community.png']}"
alt="JBoss and JBoss Community" width="254" height="31"
border="0" />
{code}
Add add {{xmlns:h="http://java.sun.com/jsf/html"}} to the namespaces.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)