]
George Gastaldi closed FORGE-2371.
----------------------------------
Fix Version/s: 3.0.0.CR1
(was: 3.x Future)
Assignee: George Gastaldi
Resolution: Done
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
Assignee: George Gastaldi
Fix For: 3.0.0.CR1
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.