0 Replies Latest reply on Aug 15, 2009 8:04 PM by cdunphy

    seam generate-ui with a groovy bean?

      Hello,


      I was playing with seam-gen this morning (Seam 2.2.0.GA), deciding to see how well the Groovy integration would work.  So I kicked off a vanilla project with seam-gen, and I added a GroovyBean entity and placed it in the standard src/main folder that seam-gen created:


      // .. exclude imports and stuff
      
      @Entity
      class Person implements Serializable {
          
          @Id @GeneratedValue long id
          String firstname
          String lastname
          String username
          String password
          int age
          
      }
      



      Now I try to run seam generate-ui on this, but it doesn't seem to be picking up on the Groovy class I wrote.  Is this supposed to work, or is this something that seam-gen doesn't support as-of-yet?


      Output:



      Megaparsec:peopledb cdunphy$ seam generate-ui
      SEAM_HOME: /Users/cdunphy/Tools/JBoss/jboss-seam-2.2.0.GA
      Using seam-gen sources from: /Users/cdunphy/Tools/JBoss/jboss-seam-2.2.0.GA/seam-gen
      Buildfile: /Users/cdunphy/Tools/JBoss/jboss-seam-2.2.0.GA/seam-gen/build.xml
      
      init:
      
      init-properties:
           [echo] /Users/cdunphy/Tools/JBoss/jboss-5.1.0.GA
      
      validate-workspace:
      
      validate-project:
      
      init-generate:
      
      generate-ui:
           [echo] Building project 'peopledb' to generate views and controllers
      
      init:
      
      groovy.compile:
      
      groovy.copy:
      
      compile:
          [javac] Compiling 2 source files to /Users/cdunphy/Code/Seam/peopledb/exploded-archives/peopledb.ear/peopledb_jar
      
      copyclasses:
      
      jar:
      [hibernate] Executing Hibernate Tool with a JPA Configuration
      [hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
      [hibernate] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).
      [hibernate] log4j:WARN Please initialize the log4j system properly.
      [hibernate] 2. task: generic exportertemplate: view/view.xhtml.ftl
      [hibernate] 3. task: generic exportertemplate: view/view.page.xml.ftl
      [hibernate] 4. task: generic exportertemplate: view/edit.xhtml.ftl
      [hibernate] 5. task: generic exportertemplate: view/edit.page.xml.ftl
      [hibernate] 6. task: generic exportertemplate: src/EntityList.java.ftl
      [hibernate] 7. task: generic exportertemplate: view/list.page.xml.ftl
      [hibernate] 8. task: generic exportertemplate: src/EntityHome.java.ftl
      [hibernate] 9. task: generic exportertemplate: view/layout/menu.xhtml.ftl
      [javaformatter] Java formatting of 2 files completed. Skipped 0 file(s).
           [echo] Type 'ant restart' and go to http://localhost:8080/peopledb
      
      BUILD SUCCESSFUL
      Total time: 3 seconds
      



      Thanks,


      // Chris