This content has been marked as final.
Show 4 replies
-
3. Re: Newbie question Forge webapp creation with Seam 3.0
matteg.gerry.matte.shaw.ca May 25, 2011 8:23 PM (in response to joechambers)There are numerous errors in the scaffolding page shown in Lincoln's second post:
Step 3: forge command
$ scaffold indexes --overwrite
should be
$ scaffold create-indexes --overwriteStep 4: should explain what choices are acceptable for
{your JPA Implementation} [HIBERNATE | OPENJPA | ECLIPSELINK]
and
{your container} [JBOSS_AS6 | JBOSS_AS7 | GLASSFISH_3 | CUSTOM_JDBC | CUSTOM_JTA | CUSTOM_NON_JTA]
The generated persistence.xml references the default DataSource for the selected container. You may need to change hibernate properties for your server.
Step 5: the forge command
$ entity --named Customer
should be
$ new-entity --named Customerand creating Customer properties using commands:
field string --named firstName field string --named lastName
should be
new-field string --named firstName new-field string --named lastName
The generated application still has some rough edges:
- The mime-type for favicon.ico is not specified in web-xml and numerous JSF1091 warnings are logged each time a page is displayed
- The application home page should link to the entity pages - or at least to the first generated entity which in this example is customer
- JSF1015: Request path '/faces/index.xhtml' begins with one or more occurrences of the FacesServlet prefix path mapping '/faces'
- The delete button is dysfunctional because: Cannot remove EJB, id unknown (likely because this is a no-interface view!)
-
4. Re: Newbie question Forge webapp creation with Seam 3.0
matteg.gerry.matte.shaw.ca May 26, 2011 7:03 PM (in response to joechambers)The error free documentation is posted as part of the Alpha3 release at:
Forge Reference Chapter 2