[forge-issues] [JBoss JIRA] (FORGE-1687) Create and View pages have a wrong Bean name

Antonio Goncalves (JIRA) issues at jboss.org
Wed Mar 19 10:54:10 EDT 2014


Antonio Goncalves created FORGE-1687:
----------------------------------------

             Summary: 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
            Priority: Blocker
             Fix For: 2.x Future


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