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

Create and View pages have a wrong Bean name

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2.2.0.Final
    • Fix Version/s: 2.3.0.Final
    • Component/s: Scaffold
    • Labels:
      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>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                vineet.reynolds Vineet Reynolds
                Reporter:
                agoncal Antonio Goncalves
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: