[forge-dev] some problems on scaffold template

JFlower fiorenzino at gmail.com
Thu Aug 16 18:20:44 EDT 2012


i would suggest 2 thinks to improve the scaffold from entities.

With forge 1.0.6, the project generated usign scaffold from-entity have
wrong link in the nav bar for the principal link (with brand class).
In my case, i created a "flower" app and the html div is:

<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a href="/index.xhtml" class="brand">Flower</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="
http://forge.jboss.org/docs/important_plugins/ui-scaffolding.html">How to

In pageTemplate (
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]

And to eliminate the annoying log jboss server log:
23:59:54,914 AVVERTENZA
(http-- JSF1091: No mime type could be found for file
favicon.ico.  To resolve this, add a mime-type mapping to the applications

you should add on web.xml:


Best regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120817/70eec0a0/attachment.html 

More information about the forge-dev mailing list