-
Bug
-
Resolution: Done
-
Blocker
-
2.2.0.Final
-
None
Create a project with an entity and scaffold a JSF UI :
[Forge]$ project-new --named demoforge --topLevelPackage fr.girc.dsn [demoforge]$ jpa-setup --provider Hibernate [demoforge]$ jpa-new-entity --named Individu [Individu.java]$ jpa-new-field --named firstname [Individu.java]$ jpa-new-field --named lastname [Individu.java]$ jpa-new-field --named age --type int [Individu.java]$ scaffold-setup [Individu.java]$ scaffold-generate --targets fr.girc.dsn.model.Individu
The generated search page because it referes the right bean name individuBean:
<h:panelGroup> <h:inputText id="individuBeanExampleFirstname" value="#{individuBean.example.firstname}"/> <h:message for="individuBeanExampleFirstname" styleClass="error"/> </h:panelGroup>
But the create and view have a wrong name individuBeanindividu :
<h:panelGroup> <h:inputText id="individuBeanindividuLastname" value="#{individuBeanindividu.lastname}"/> <h:message for="individuBeanindividuLastname" styleClass="error"/> </h:panelGroup>