[forge-issues] [JBoss JIRA] (FORGE-1687) Create and View pages have a wrong Bean name
Vineet Reynolds (JIRA)
issues at jboss.org
Wed Mar 19 11:52:11 EDT 2014
[ https://issues.jboss.org/browse/FORGE-1687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vineet Reynolds resolved FORGE-1687.
------------------------------------
Fix Version/s: 2.2.1.Final
(was: 2.x Future)
Resolution: Done
Merged: https://github.com/forge/core/commit/61cbe42c8
> Create and View pages have a wrong Bean name
> --------------------------------------------
>
> Key: FORGE-1687
> URL: https://issues.jboss.org/browse/FORGE-1687
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 2.2.0.Final
> Reporter: Antonio Goncalves
> Assignee: Vineet Reynolds
> Priority: Blocker
> Fix For: 2.2.1.Final
>
>
> Create a project with an entity and scaffold a JSF UI :
> {code}
> [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
> {code}
> The generated search page because it referes the right bean name {{individuBean}}:
> {code}
> <h:panelGroup>
> <h:inputText id="individuBeanExampleFirstname" value="#{individuBean.example.firstname}"/>
> <h:message for="individuBeanExampleFirstname" styleClass="error"/>
> </h:panelGroup>
> {code}
> But the create and view have a wrong name {{individuBeanindividu}} :
> {code}
> <h:panelGroup>
> <h:inputText id="individuBeanindividuLastname" value="#{individuBeanindividu.lastname}"/>
> <h:message for="individuBeanindividuLastname" styleClass="error"/>
> </h:panelGroup>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list