Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1687

Create and View pages have a wrong Bean name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 2.3.0.Final
    • 2.2.0.Final
    • Scaffold
    • None

    Description

      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>
      

      Attachments

        Activity

          People

            vineet.reynolds_jira Vineet Reynolds (Inactive)
            agoncal Antonio Goncalves (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: