Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1926 Adding more commands to Forge and improve existing ones
  3. FORGE-2371

Use <h:graphicImage> instead of <img> in JSF scaffolding

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta2
    • 2.16.2.Final
    • Scaffold
    • None

      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

      <img src='#{resource["forge-logo.png"]}' alt="Forge... get hammered" border="0" />
      

      With :

      <h:graphicImage value="#{resource['forge-logo.png']}" alt="Forge... get hammered" border="0" />
      

      In the error.xhtml, we should replace

      <img src='#{resource["jboss-community.png"]}' alt="JBoss and JBoss Community" width="254" height="31" border="0" />
      

      With :

      <h:graphicImage value="#{resource['jboss-community.png']}" alt="JBoss and JBoss Community" width="254" height="31" border="0" />
      

      Add add xmlns:h="http://java.sun.com/jsf/html" to the namespaces.

              rhn-support-ggastald George Gastaldi
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: