Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-655

scaffold from entity: wrong brand link, missing jboss-logo, add mime-mapping in web.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.1.0.Final
    • 1.0.6.Final
    • Scaffold

      1) wrong brand link
      In pageTemplate (https://github.com/forge/core/blob/master/scaffold-faces/src/main/resources/scaffold/faces/pageTemplate.xhtml) the link should be:

      <h:link id="brandLink" outcome="@

      {targetDir}/index.xhtml" styleClass="brand"> <h:outputText value="@{appName}" /></h:link>
      in place of:
      <a href="@{targetDir}

      /index.xhtml" class="brand">@

      {appName}

      </a>
      [to avoid a wrong redirect to http://localhost:8080/index.xhtml]

      2)missing resource jboss-community.png

      in the resource folder the image jboss-community.png doesn't exist (it's used in the error page:
      https://github.com/forge/core/blob/master/scaffold-faces/src/main/resources/scaffold/faces/error.xhtml)

      3) add mime-mapping in web.xml
      To eliminate the annoying log jboss server log:
      23:59:54,914 AVVERTENZA [javax.enterprise.resource.webcontainer.jsf.context] (http--127.0.0.1-8080-1) JSF1091: No mime type could be found for file favicon.ico. To resolve this, add a mime-type mapping to the applications web.xml

      you should add on web.xml:

      <mime-mapping>
      <extension>ico</extension>
      <mime-type>image/x-icon</mime-type>
      </mime-mapping>

              Unassigned Unassigned
              fiorenzino@gmail.com fiorenzo pizza (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: