Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2.0.RC1
    • Component/s: JSF
    • Labels:
      None

      Description

      Create a Roo addon for JSF 2.0 views with Facelets templates instead of JSPs.

        Issue Links

          Activity

          Hide
          Alan Stewart added a comment -

          Actually your MySQL sample works with RC1 and the latest snapshots. I don't see any compile errors and the web app works with no problems.

          roo> script --file dbreJsf.roo
          project --topLevelPackage com.example.empty
          485431a Created ROOT/pom.xml
          Created SRC_MAIN_RESOURCES
          53126d9 Created SRC_MAIN_RESOURCES/log4j.properties
          Created SPRING_CONFIG_ROOT                                                                                                            Downloaded 100% of lookup
          5841528 Created SPRING_CONFIG_ROOT/applicationContext.xml                                                                             Downloaded 100% of lookup
          persistence setup --database MYSQL --provider HIBERNATE --userName roo --passwo[org.springframework.roo.wrapping.mysql-connector-java [94]] BundleEvent STARTED
          c026b4f Created SPRING_CONFIG_ROOT/database.properties                         
          Please update your database details in src/main/resources/META-INF/spring/datab
          f43162f Updated SPRING_CONFIG_ROOT/applicationContext.xml                                                               Created com.example.empty.domain.Region
          59845e7 Created SRC_MAIN_RESOURCES/META-INF/persistence.xml
          73a8019 Updated ROOT/pom.xml [added dependencies mysql:mysql-connector-java:5.1.18, org.hibernate:hibernate-core:3.6.8.Final, org.hibernate:hibernate-entitymanager:3.6.8.Final, org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final, org.hibernate:hibernate-validator:4.2.0.Final, javax.validation:validation-api:1.0.0.GA, cglib:cglib-nodep:2.2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:${spring.version}, org.springframework:spring-orm:${spring.version}, commons-pool:commons-pool:1.5.6, commons-dbcp:commons-dbcp:1.3]
          addon install bundle --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java 
          Target resource(s):
          -------------------
             Spring Roo - Wrapping - mysql-connector-java (5.1.18.0001)
          
          Deploying...done.
          
          Successfully installed add-on: Spring Roo - Wrapping - mysql-connector-java [version: 5.1.17.0020]
          [Hint] Please consider rating this add-on with the following command:
          [Hint] addon feedback bundle --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java --rating ... --cCreated com.example.empty.domain.Region
          database reverse engineer --schema example --package ~.domain
          8090497 Created SRC_MAIN_RESOURCES/dbre.xml
          75a2e57 Updated ROOT/pom.xml
          c4a116c Updated SRC_MAIN_RESOURCES/META-INF/persistence.xml
          Created SRC_MAIN_JAVA/com/example/empty/domain
          32d16ad Created SRC_MAIN_JAVA/com/example/empty/domain/City.java
          398a852 Created SRC_MAIN_JAVA/com/example/empty/domain/Country.java
          a81b62f Created SRC_MAIN_JAVA/com/example/empty/domain/Region.java
          87f2dd2 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_Configurable.aj
          acc3f55 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_ToString.aj
          ebed711 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_DbManaged.aj
          93da24d Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_Jpa_ActiveRecord.aj                                     Created com.example.empty.domain.Region
          9432e21 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_Jpa_Entity.aj
          19943e0 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_Configurable.aj
          0d3e4ed Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_ToString.aj
          672cc23 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_DbManaged.aj
          26b7175 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_Jpa_ActiveReco       Created com.example.empty.web.util.ViewExpiredExceptionExceptionHandler
          a0fd915 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_Jpa_Entity.aj
          565612e Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_Configurable.aj                                     Created com.example.empty.web.CountryBean
          a7832b8 Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_ToString.aj
          59598e8 Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_DbManaged.aj          Created com.example.empty.web.util.ViewExpiredExceptionExceptionHandler
          ecb5b1c Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_Jpa_ActiveRecord.aj                                  Created com.example.empty.web.RegionBean
          fa5a002 Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_Jpa_Entity.aj         Created com.example.empty.web.util.ViewExpiredExceptionExceptionHandler
          web jsf setup                                                                                                            Created com.example.empty.web.CityBean
          Created ROOT/src/main/webapp                                                                              Created com.example.empty.web.converter.CityConverter
          c78c1a7 Created ROOT/src/main/webapp/index.html
          b797fd1 Created ROOT/src/main/webapp/viewExpired.xhtml
          Created ROOT/src/main/webapp/resources/images
          de9a701 Created ROOT/src/main/webapp/resources/images/csv.png
          1daf2d6 Created ROOT/src/main/webapp/resources/images/de.png
          a98ec25 Created ROOT/src/main/webapp/resources/images/en.png
          a88880b Created ROOT/src/main/webapp/resources/images/es.png
          f4e6ba8 Created ROOT/src/main/webapp/resources/images/excel.png
          511f309 Created ROOT/src/main/webapp/resources/images/favicon.ico                                         Created com.example.empty.web.converter.CityConverter
          a8e7228 Created ROOT/src/main/webapp/resources/images/pdf.png
          10d1618 Created ROOT/src/main/webapp/resources/images/roo_logo.png
          08493c6 Created ROOT/src/main/webapp/resources/images/springsource-logo.png
          e377d48 Created ROOT/src/main/webapp/resources/images/xml.png
          Created ROOT/src/main/webapp/resources/css
          f29c032 Created ROOT/src/main/webapp/resources/css/standard.css
          Created ROOT/src/main/webapp/resources/js
          d1871c7 Created ROOT/src/main/webapp/resources/js/calendar.js
          Created ROOT/src/main/webapp/templates
          4cfb9bb Created ROOT/src/main/webapp/templates/content.xhtml
          7ffdaca Created ROOT/src/main/webapp/templates/footer.xhtml
          4ace58c Created ROOT/src/main/webapp/templates/header.xhtml
          7ba15dd Created ROOT/src/main/webapp/templates/layout.xhtml
          1ce74ab Created ROOT/src/main/webapp/templates/menu.xhtml
          Created ROOT/src/main/webapp/pages                                                                        Created com.example.empty.web.converter.CityConverter
          76a4602 Created ROOT/src/main/webapp/pages/main.xhtml
          87ae7b0 Updated ROOT/pom.xml [added dependencies com.sun.faces:jsf-api:2.1.2, com.sun.faces:jsf-impl:2.1.2, org.primefaces:primefaces:3.0.RC1, org.primefaces.themes:south-street:1.0.2, org.springframework:spring-web:${spring.version}, javax.el:el-api:2.2, commons-fileupload:commons-fileupload:1.2.2, commons-io:commons-io:2.1; added repositories http://download.java.net/maven/2, http://repository.primefaces.org; updated project type to war]
          Created SRC_MAIN_WEBAPP/WEB-INF                                                                           
          6135f75 Created SRC_MAIN_WEBAPP/WEB-INF/web.xml
          web jsf all --package ~.web
          Created ROOT/src/main/resources/com/example/empty/web/i18n
          b91ce21 Created ROOT/src/main/resources/com/example/empty/web/i18n/messages_de.properties
          88b11a5 Created ROOT/src/main/resources/com/example/empty/web/i18n/messages_en.properties
          a15832a Created ROOT/src/main/resources/com/example/empty/web/i18n/messages_es.properties
          Created SRC_MAIN_JAVA/com/example/empty/web
          57e0aa9 Created SRC_MAIN_JAVA/com/example/empty/web/CountryBean.java
          Created SRC_MAIN_JAVA/com/example/empty/web/converter
          9abded8 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CountryConverter.java
          9d1e129 Created SRC_MAIN_JAVA/com/example/empty/web/RegionBean.java
          113cb22 Created SRC_MAIN_JAVA/com/example/empty/web/converter/RegionConverter.java
          1f1e819 Created SRC_MAIN_JAVA/com/example/empty/web/CityBean.java
          ee17668 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CityConverter.java
          adcf1e7 Created SRC_MAIN_WEBAPP/WEB-INF/faces-config.xml
          035fe1d Created SRC_MAIN_JAVA/com/example/empty/web/ApplicationBean.java
          Created SRC_MAIN_JAVA/com/example/empty/web/util
          053287d Created SRC_MAIN_JAVA/com/example/empty/web/util/LocaleBean.java
          e4c703f Created SRC_MAIN_JAVA/com/example/empty/web/util/ViewExpiredExceptionExceptionHandlerFactory.java
          84526e8 Created SRC_MAIN_JAVA/com/example/empty/web/util/ViewExpiredExceptionExceptionHandler.java
          d81580a Created SRC_MAIN_WEBAPP/pages/country.xhtml
          9b62ed5 Created SRC_MAIN_WEBAPP/pages/region.xhtml
          1e9997a Created SRC_MAIN_WEBAPP/pages/city.xhtml
          d5c07ae Created SRC_MAIN_JAVA/com/example/empty/web/ApplicationBean_Roo_ApplicationBean.aj
          4b797fe Created SRC_MAIN_JAVA/com/example/empty/web/ApplicationBean_Roo_Configurable.aj
          0ba3859 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CityConverter_Roo_Converter.aj
          73d8d09 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CityConverter_Roo_Configurable.aj
          a662cf5 Created SRC_MAIN_JAVA/com/example/empty/web/CountryBean_Roo_Configurable.aj
          792d4e7 Created SRC_MAIN_JAVA/com/example/empty/web/CountryBean_Roo_ManagedBean.aj
          59bcfb7 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CountryConverter_Roo_Converter.aj
          97b72de Created SRC_MAIN_JAVA/com/example/empty/web/converter/CountryConverter_Roo_Configurable.aj
          2eadbca Created SRC_MAIN_JAVA/com/example/empty/web/CityBean_Roo_Configurable.aj
          c9d4936 Created SRC_MAIN_JAVA/com/example/empty/web/CityBean_Roo_ManagedBean.aj
          2c3b072 Created SRC_MAIN_JAVA/com/example/empty/web/RegionBean_Roo_Configurable.aj
          618a5cd Created SRC_MAIN_JAVA/com/example/empty/web/RegionBean_Roo_ManagedBean.aj
          53aa335 Created SRC_MAIN_JAVA/com/example/empty/web/converter/RegionConverter_Roo_Converter.aj
          2a6d307 Created SRC_MAIN_JAVA/com/example/empty/web/converter/RegionConverter_Roo_Configurable.aj
          perform package
          [Thread-11] [INFO] Scanning for projects...
          [Thread-11] [INFO]                                                                         
          [Thread-11] [INFO] ------------------------------------------------------------------------
          [Thread-11] [INFO] Building empty 0.1.0.BUILD-SNAPSHOT
          [Thread-11] [INFO] ------------------------------------------------------------------------
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- aspectj-maven-plugin:1.2:compile (default) @ empty ---
          [Thread-11] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
          [Thread-11] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
          [Thread-11] [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ empty ---
          [Thread-11] [debug] execute contextualize
          [Thread-11] [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [Thread-11] [INFO] Copying 8 resources
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ empty ---
          [Thread-11] [INFO] Nothing to compile - all classes are up to date
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- aspectj-maven-plugin:1.2:test-compile (default) @ empty ---
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ empty ---
          [Thread-11] [debug] execute contextualize
          [Thread-11] [INFO] Using 'UTF-8' encoding to copy filtered resources.
          [Thread-11] [INFO] skip non existing resourceDirectory /Users/stewarta/projects/roo-test/empty/src/test/resources
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ empty ---
          [Thread-11] [INFO] No sources to compile
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- maven-surefire-plugin:2.9:test (default-test) @ empty ---
          [Thread-11] [INFO] Tests are skipped.
          [Thread-11] [INFO] 
          [Thread-11] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ empty ---
          [Thread-11] [INFO] Packaging webapp
          [Thread-11] [INFO] Assembling webapp [empty] in [/Users/stewarta/projects/roo-test/empty/target/empty-0.1.0.BUILD-SNAPSHOT]
          [Thread-11] [INFO] Processing war project
          [Thread-11] [INFO] Copying webapp webResources [/Users/stewarta/projects/roo-test/empty/src/main/resources] to [/Users/stewarta/projects/roo-test/empty/target/empty-0.1.0.BUILD-SNAPSHOT]
          [Thread-11] [INFO] Copying webapp resources [/Users/stewarta/projects/roo-test/empty/src/main/webapp]
          [Thread-11] [INFO] Webapp assembled in [137 msecs]
          [Thread-11] [INFO] Building war: /Users/stewarta/projects/roo-test/empty/target/empty-0.1.0.BUILD-SNAPSHOT.war
          [Thread-11] [INFO] WEB-INF/web.xml already added, skipping
          [Thread-11] [INFO] ------------------------------------------------------------------------
          [Thread-11] [INFO] BUILD SUCCESS
          [Thread-11] [INFO] ------------------------------------------------------------------------
          [Thread-11] [INFO] Total time: 4.331s
          [Thread-11] [INFO] Finished at: Wed Dec 14 14:35:21 EST 2011
          [Thread-11] [INFO] Final Memory: 7M/81M
          [Thread-11] [INFO] ------------------------------------------------------------------------
          Script required 22.789 seconds to execute
          roo> 
          
          Show
          Alan Stewart added a comment - Actually your MySQL sample works with RC1 and the latest snapshots. I don't see any compile errors and the web app works with no problems. roo> script --file dbreJsf.roo project --topLevelPackage com.example.empty 485431a Created ROOT/pom.xml Created SRC_MAIN_RESOURCES 53126d9 Created SRC_MAIN_RESOURCES/log4j.properties Created SPRING_CONFIG_ROOT Downloaded 100% of lookup 5841528 Created SPRING_CONFIG_ROOT/applicationContext.xml Downloaded 100% of lookup persistence setup --database MYSQL --provider HIBERNATE --userName roo --passwo[org.springframework.roo.wrapping.mysql-connector-java [94]] BundleEvent STARTED c026b4f Created SPRING_CONFIG_ROOT/database.properties Please update your database details in src/main/resources/META-INF/spring/datab f43162f Updated SPRING_CONFIG_ROOT/applicationContext.xml Created com.example.empty.domain.Region 59845e7 Created SRC_MAIN_RESOURCES/META-INF/persistence.xml 73a8019 Updated ROOT/pom.xml [added dependencies mysql:mysql-connector-java:5.1.18, org.hibernate:hibernate-core:3.6.8.Final, org.hibernate:hibernate-entitymanager:3.6.8.Final, org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final, org.hibernate:hibernate-validator:4.2.0.Final, javax.validation:validation-api:1.0.0.GA, cglib:cglib-nodep:2.2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:${spring.version}, org.springframework:spring-orm:${spring.version}, commons-pool:commons-pool:1.5.6, commons-dbcp:commons-dbcp:1.3] addon install bundle --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java Target resource(s): ------------------- Spring Roo - Wrapping - mysql-connector-java (5.1.18.0001) Deploying...done. Successfully installed add-on: Spring Roo - Wrapping - mysql-connector-java [version: 5.1.17.0020] [Hint] Please consider rating this add-on with the following command: [Hint] addon feedback bundle --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java --rating ... --cCreated com.example.empty.domain.Region database reverse engineer --schema example -- package ~.domain 8090497 Created SRC_MAIN_RESOURCES/dbre.xml 75a2e57 Updated ROOT/pom.xml c4a116c Updated SRC_MAIN_RESOURCES/META-INF/persistence.xml Created SRC_MAIN_JAVA/com/example/empty/domain 32d16ad Created SRC_MAIN_JAVA/com/example/empty/domain/City.java 398a852 Created SRC_MAIN_JAVA/com/example/empty/domain/Country.java a81b62f Created SRC_MAIN_JAVA/com/example/empty/domain/Region.java 87f2dd2 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_Configurable.aj acc3f55 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_ToString.aj ebed711 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_DbManaged.aj 93da24d Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_Jpa_ActiveRecord.aj Created com.example.empty.domain.Region 9432e21 Created SRC_MAIN_JAVA/com/example/empty/domain/City_Roo_Jpa_Entity.aj 19943e0 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_Configurable.aj 0d3e4ed Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_ToString.aj 672cc23 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_DbManaged.aj 26b7175 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_Jpa_ActiveReco Created com.example.empty.web.util.ViewExpiredExceptionExceptionHandler a0fd915 Created SRC_MAIN_JAVA/com/example/empty/domain/Country_Roo_Jpa_Entity.aj 565612e Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_Configurable.aj Created com.example.empty.web.CountryBean a7832b8 Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_ToString.aj 59598e8 Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_DbManaged.aj Created com.example.empty.web.util.ViewExpiredExceptionExceptionHandler ecb5b1c Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_Jpa_ActiveRecord.aj Created com.example.empty.web.RegionBean fa5a002 Created SRC_MAIN_JAVA/com/example/empty/domain/Region_Roo_Jpa_Entity.aj Created com.example.empty.web.util.ViewExpiredExceptionExceptionHandler web jsf setup Created com.example.empty.web.CityBean Created ROOT/src/main/webapp Created com.example.empty.web.converter.CityConverter c78c1a7 Created ROOT/src/main/webapp/index.html b797fd1 Created ROOT/src/main/webapp/viewExpired.xhtml Created ROOT/src/main/webapp/resources/images de9a701 Created ROOT/src/main/webapp/resources/images/csv.png 1daf2d6 Created ROOT/src/main/webapp/resources/images/de.png a98ec25 Created ROOT/src/main/webapp/resources/images/en.png a88880b Created ROOT/src/main/webapp/resources/images/es.png f4e6ba8 Created ROOT/src/main/webapp/resources/images/excel.png 511f309 Created ROOT/src/main/webapp/resources/images/favicon.ico Created com.example.empty.web.converter.CityConverter a8e7228 Created ROOT/src/main/webapp/resources/images/pdf.png 10d1618 Created ROOT/src/main/webapp/resources/images/roo_logo.png 08493c6 Created ROOT/src/main/webapp/resources/images/springsource-logo.png e377d48 Created ROOT/src/main/webapp/resources/images/xml.png Created ROOT/src/main/webapp/resources/css f29c032 Created ROOT/src/main/webapp/resources/css/standard.css Created ROOT/src/main/webapp/resources/js d1871c7 Created ROOT/src/main/webapp/resources/js/calendar.js Created ROOT/src/main/webapp/templates 4cfb9bb Created ROOT/src/main/webapp/templates/content.xhtml 7ffdaca Created ROOT/src/main/webapp/templates/footer.xhtml 4ace58c Created ROOT/src/main/webapp/templates/header.xhtml 7ba15dd Created ROOT/src/main/webapp/templates/layout.xhtml 1ce74ab Created ROOT/src/main/webapp/templates/menu.xhtml Created ROOT/src/main/webapp/pages Created com.example.empty.web.converter.CityConverter 76a4602 Created ROOT/src/main/webapp/pages/main.xhtml 87ae7b0 Updated ROOT/pom.xml [added dependencies com.sun.faces:jsf-api:2.1.2, com.sun.faces:jsf-impl:2.1.2, org.primefaces:primefaces:3.0.RC1, org.primefaces.themes:south-street:1.0.2, org.springframework:spring-web:${spring.version}, javax.el:el-api:2.2, commons-fileupload:commons-fileupload:1.2.2, commons-io:commons-io:2.1; added repositories http: //download.java.net/maven/2, http://repository.primefaces.org; updated project type to war] Created SRC_MAIN_WEBAPP/WEB-INF 6135f75 Created SRC_MAIN_WEBAPP/WEB-INF/web.xml web jsf all -- package ~.web Created ROOT/src/main/resources/com/example/empty/web/i18n b91ce21 Created ROOT/src/main/resources/com/example/empty/web/i18n/messages_de.properties 88b11a5 Created ROOT/src/main/resources/com/example/empty/web/i18n/messages_en.properties a15832a Created ROOT/src/main/resources/com/example/empty/web/i18n/messages_es.properties Created SRC_MAIN_JAVA/com/example/empty/web 57e0aa9 Created SRC_MAIN_JAVA/com/example/empty/web/CountryBean.java Created SRC_MAIN_JAVA/com/example/empty/web/converter 9abded8 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CountryConverter.java 9d1e129 Created SRC_MAIN_JAVA/com/example/empty/web/RegionBean.java 113cb22 Created SRC_MAIN_JAVA/com/example/empty/web/converter/RegionConverter.java 1f1e819 Created SRC_MAIN_JAVA/com/example/empty/web/CityBean.java ee17668 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CityConverter.java adcf1e7 Created SRC_MAIN_WEBAPP/WEB-INF/faces-config.xml 035fe1d Created SRC_MAIN_JAVA/com/example/empty/web/ApplicationBean.java Created SRC_MAIN_JAVA/com/example/empty/web/util 053287d Created SRC_MAIN_JAVA/com/example/empty/web/util/LocaleBean.java e4c703f Created SRC_MAIN_JAVA/com/example/empty/web/util/ViewExpiredExceptionExceptionHandlerFactory.java 84526e8 Created SRC_MAIN_JAVA/com/example/empty/web/util/ViewExpiredExceptionExceptionHandler.java d81580a Created SRC_MAIN_WEBAPP/pages/country.xhtml 9b62ed5 Created SRC_MAIN_WEBAPP/pages/region.xhtml 1e9997a Created SRC_MAIN_WEBAPP/pages/city.xhtml d5c07ae Created SRC_MAIN_JAVA/com/example/empty/web/ApplicationBean_Roo_ApplicationBean.aj 4b797fe Created SRC_MAIN_JAVA/com/example/empty/web/ApplicationBean_Roo_Configurable.aj 0ba3859 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CityConverter_Roo_Converter.aj 73d8d09 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CityConverter_Roo_Configurable.aj a662cf5 Created SRC_MAIN_JAVA/com/example/empty/web/CountryBean_Roo_Configurable.aj 792d4e7 Created SRC_MAIN_JAVA/com/example/empty/web/CountryBean_Roo_ManagedBean.aj 59bcfb7 Created SRC_MAIN_JAVA/com/example/empty/web/converter/CountryConverter_Roo_Converter.aj 97b72de Created SRC_MAIN_JAVA/com/example/empty/web/converter/CountryConverter_Roo_Configurable.aj 2eadbca Created SRC_MAIN_JAVA/com/example/empty/web/CityBean_Roo_Configurable.aj c9d4936 Created SRC_MAIN_JAVA/com/example/empty/web/CityBean_Roo_ManagedBean.aj 2c3b072 Created SRC_MAIN_JAVA/com/example/empty/web/RegionBean_Roo_Configurable.aj 618a5cd Created SRC_MAIN_JAVA/com/example/empty/web/RegionBean_Roo_ManagedBean.aj 53aa335 Created SRC_MAIN_JAVA/com/example/empty/web/converter/RegionConverter_Roo_Converter.aj 2a6d307 Created SRC_MAIN_JAVA/com/example/empty/web/converter/RegionConverter_Roo_Configurable.aj perform package [ Thread -11] [INFO] Scanning for projects... [ Thread -11] [INFO] [ Thread -11] [INFO] ------------------------------------------------------------------------ [ Thread -11] [INFO] Building empty 0.1.0.BUILD-SNAPSHOT [ Thread -11] [INFO] ------------------------------------------------------------------------ [ Thread -11] [INFO] [ Thread -11] [INFO] --- aspectj-maven-plugin:1.2:compile ( default ) @ empty --- [ Thread -11] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] [ Thread -11] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [ Thread -11] [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch] [ Thread -11] [INFO] [ Thread -11] [INFO] --- maven-resources-plugin:2.5:resources ( default -resources) @ empty --- [ Thread -11] [debug] execute contextualize [ Thread -11] [INFO] Using 'UTF-8' encoding to copy filtered resources. [ Thread -11] [INFO] Copying 8 resources [ Thread -11] [INFO] [ Thread -11] [INFO] --- maven-compiler-plugin:2.3.2:compile ( default -compile) @ empty --- [ Thread -11] [INFO] Nothing to compile - all classes are up to date [ Thread -11] [INFO] [ Thread -11] [INFO] --- aspectj-maven-plugin:1.2:test-compile ( default ) @ empty --- [ Thread -11] [INFO] [ Thread -11] [INFO] --- maven-resources-plugin:2.5:testResources ( default -testResources) @ empty --- [ Thread -11] [debug] execute contextualize [ Thread -11] [INFO] Using 'UTF-8' encoding to copy filtered resources. [ Thread -11] [INFO] skip non existing resourceDirectory /Users/stewarta/projects/roo-test/empty/src/test/resources [ Thread -11] [INFO] [ Thread -11] [INFO] --- maven-compiler-plugin:2.3.2:testCompile ( default -testCompile) @ empty --- [ Thread -11] [INFO] No sources to compile [ Thread -11] [INFO] [ Thread -11] [INFO] --- maven-surefire-plugin:2.9:test ( default -test) @ empty --- [ Thread -11] [INFO] Tests are skipped. [ Thread -11] [INFO] [ Thread -11] [INFO] --- maven-war-plugin:2.1.1:war ( default -war) @ empty --- [ Thread -11] [INFO] Packaging webapp [ Thread -11] [INFO] Assembling webapp [empty] in [/Users/stewarta/projects/roo-test/empty/target/empty-0.1.0.BUILD-SNAPSHOT] [ Thread -11] [INFO] Processing war project [ Thread -11] [INFO] Copying webapp webResources [/Users/stewarta/projects/roo-test/empty/src/main/resources] to [/Users/stewarta/projects/roo-test/empty/target/empty-0.1.0.BUILD-SNAPSHOT] [ Thread -11] [INFO] Copying webapp resources [/Users/stewarta/projects/roo-test/empty/src/main/webapp] [ Thread -11] [INFO] Webapp assembled in [137 msecs] [ Thread -11] [INFO] Building war: /Users/stewarta/projects/roo-test/empty/target/empty-0.1.0.BUILD-SNAPSHOT.war [ Thread -11] [INFO] WEB-INF/web.xml already added, skipping [ Thread -11] [INFO] ------------------------------------------------------------------------ [ Thread -11] [INFO] BUILD SUCCESS [ Thread -11] [INFO] ------------------------------------------------------------------------ [ Thread -11] [INFO] Total time: 4.331s [ Thread -11] [INFO] Finished at: Wed Dec 14 14:35:21 EST 2011 [ Thread -11] [INFO] Final Memory: 7M/81M [ Thread -11] [INFO] ------------------------------------------------------------------------ Script required 22.789 seconds to execute roo>
          Hide
          Damir added a comment -

          test roo project- compilation errors

          Show
          Damir added a comment - test roo project- compilation errors
          Hide
          Damir added a comment -

          c:\sources_test_>mvn clean package
          [INFO] Scanning for projects...
          [INFO]
          [INFO] ------------------------------------------------------------------------
          [INFO] Building empty 0.1.0.BUILD-SNAPSHOT
          [INFO] ------------------------------------------------------------------------
          [INFO]
          [INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ empty —
          [INFO] Deleting c:\sources_test_\target
          [INFO]
          [INFO] — aspectj-maven-plugin:1.2:compile (default) @ empty —
          [ERROR] The method getCitys() is undefined for the type Region
          [ERROR] selectedCitys cannot be resolved
          [WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
          [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
          [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
          [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
          [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 3.762s
          [INFO] Finished at: Wed Dec 14 13:21:43 CET 2011
          [INFO] Final Memory: 7M/490M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project empty: Compiler errors :
          [ERROR] error at if (region != null && region.getCitys() != null) {
          [ERROR]
          [ERROR] C:\sources_test_\src\main\java\com\example\empty\web\RegionBean_Roo_ManagedBean.aj:345:0::0 The method getCitys() is undefined for the type Region
          [ERROR] error at selectedCitys = null;
          [ERROR] ^^^^
          [ERROR] C:\sources_test_\src\main\java\com\example\empty\web\RegionBean_Roo_ManagedBean.aj:400:0::0 selectedCitys cannot be resolved
          [ERROR] -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please read the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
          c:\sources_test_>

          Project empty_2011-12-14_13.19.31.zip attached

          • compilation errors using Spring Roo 1.2.0.RC1 [rev dcaa483]
          Show
          Damir added a comment - c:\sources_test_>mvn clean package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building empty 0.1.0.BUILD-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ empty — [INFO] Deleting c:\sources_test_\target [INFO] [INFO] — aspectj-maven-plugin:1.2:compile (default) @ empty — [ERROR] The method getCitys() is undefined for the type Region [ERROR] selectedCitys cannot be resolved [WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.762s [INFO] Finished at: Wed Dec 14 13:21:43 CET 2011 [INFO] Final Memory: 7M/490M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project empty: Compiler errors : [ERROR] error at if (region != null && region.getCitys() != null) { [ERROR] [ERROR] C:\sources_test_\src\main\java\com\example\empty\web\RegionBean_Roo_ManagedBean.aj:345:0::0 The method getCitys() is undefined for the type Region [ERROR] error at selectedCitys = null; [ERROR] ^^^^ [ERROR] C:\sources_test_\src\main\java\com\example\empty\web\RegionBean_Roo_ManagedBean.aj:400:0::0 selectedCitys cannot be resolved [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException c:\sources_test_> Project empty_2011-12-14_13.19.31.zip attached compilation errors using Spring Roo 1.2.0.RC1 [rev dcaa483]
          Hide
          Damir added a comment -

          1) bugs by generation:

          aspect RegionBean_Roo_ManagedBean:
          public void RegionBean.reset()

          { region = null; selectedCities = null; // was selectedCitys=null - fails createDialogVisible = false; }

          public java.lang.String RegionBean.onEdit() {
          if (region != null && region.getCities() != null)

          { //was region.getCitys -fails selectedCities = new ArrayList<City>(region.getCities()); }

          return null;
          }

          2.1)#

          {localeBean} is null:

          layout.xhtml: <f:view locale="#{localeBean.locale}" contentType="text/html">


          2.1)#{localeBean}

          is null:

          WARNUNG: #

          {localeBean.setSelectedLocale}: javax.el.PropertyNotFoundException: /templates/footer.xhtml @17,106 action="#{localeBean.setSelectedLocale}

          ": Target
          nreachable, identifier 'localeBean' resolved to null
          javax.faces.FacesException: #

          {localeBean.setSelectedLocale}

          : javax.el.PropertyNotFoundException: /templates/footer.xhtml @17,106 action="#

          {localeBean.setSelect dLocale}

          ": Target Unreachable, identifier 'localeBean' resolved to null
          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
          at javax.faces.component.UICommand.broadcast(UICommand.java:315)

          3) Empty Start-page with Title "Welcome to null"

          describes perfectly the actual status of integration spring roo with jsf

          http://img804.imageshack.us/img804/3065/welcometonull.png

          Show
          Damir added a comment - 1) bugs by generation: aspect RegionBean_Roo_ManagedBean: public void RegionBean.reset() { region = null; selectedCities = null; // was selectedCitys=null - fails createDialogVisible = false; } public java.lang.String RegionBean.onEdit() { if (region != null && region.getCities() != null) { //was region.getCitys -fails selectedCities = new ArrayList<City>(region.getCities()); } return null; } 2.1)# {localeBean} is null: layout.xhtml: <f:view locale="#{localeBean.locale}" contentType="text/html"> 2.1)#{localeBean} is null: WARNUNG: # {localeBean.setSelectedLocale}: javax.el.PropertyNotFoundException: /templates/footer.xhtml @17,106 action="#{localeBean.setSelectedLocale} ": Target nreachable, identifier 'localeBean' resolved to null javax.faces.FacesException: # {localeBean.setSelectedLocale} : javax.el.PropertyNotFoundException: /templates/footer.xhtml @17,106 action="# {localeBean.setSelect dLocale} ": Target Unreachable, identifier 'localeBean' resolved to null at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) at javax.faces.component.UICommand.broadcast(UICommand.java:315) 3) Empty Start-page with Title "Welcome to null" describes perfectly the actual status of integration spring roo with jsf http://img804.imageshack.us/img804/3065/welcometonull.png
          Hide
          Balasubramanian Rengasamy added a comment -

          I do not like to generate my gui from managed bean, i prefer to use xhtml only. How i do remove generating gui code in managed bean.

          Show
          Balasubramanian Rengasamy added a comment - I do not like to generate my gui from managed bean, i prefer to use xhtml only. How i do remove generating gui code in managed bean.

            People

            • Assignee:
              Alan Stewart
              Reporter:
              Jan Nielsen
            • Votes:
              121 Vote for this issue
              Watchers:
              74 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: