[seam-commits] Seam SVN: r14814 - in branches/enterprise/WFK-2_0/examples-ee6: metawidget and 41 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed May 30 06:39:11 EDT 2012
Author: manaRH
Date: 2012-05-30 06:39:08 -0400 (Wed, 30 May 2012)
New Revision: 14814
Removed:
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-deployment-structure.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-seam-booking-ds.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Authenticator.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/AuthenticatorAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingList.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingListAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePassword.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePasswordAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBooking.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBookingAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearching.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearchingAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Register.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/RegisterAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/User.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources-cluster/META-INF/jboss.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/ejb-jar.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/persistence.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/import.sql
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/seam.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Booking.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Hotel.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/BookingTest.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/ChangePasswordTest.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/Deployments.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/LoginTest.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng-cluster.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-integration/arquillian.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources/metawidget-booking.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/resources/messages.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp-cluster/WEB-INF/web.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/components.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/faces-config.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/pages.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/web.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/conversations.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/screen.css
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/trailblazer_main.css
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/display.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/edit.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/bookingExp.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/confirmExp.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/introExp.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/loginExp.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/mainExp.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/registerExp.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/workspaceExp.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/home.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/hotel.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/btn.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/cal-next.png
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/cal-prev.png
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/cnt.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/dtpick.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.ad.jpg
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.bar.jpg
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.title.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/header_line.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/input.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/sdb.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/spinner.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/th.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/index.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/password.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/register.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/template.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/WEB-INF/metawidget.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/book.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/confirm.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/hotelview.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/main.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/readme.txt
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/AuthenticatorAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/BookingListAction.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/ChangePasswordAction.java
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelBookingAction.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelSearchingAction.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/Random.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/RegisterAction.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/seam.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Booking.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Hotel.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/User.groovy
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/seam.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/META-INF/persistence.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/import.sql
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages_en.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/seam.properties
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/components.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/faces-config.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/pages.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/web.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/conversations.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/screen.css
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/trailblazer_main.css
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/home.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/btn.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/cal-next.png
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/cal-prev.png
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/cnt.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/dtpick.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.ad.jpg
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.bar.jpg
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.title.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/header_line.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/input.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/sdb.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/spinner.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/th.bg.gif
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/index.html
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/password.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/register.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/template.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/WEB-INF/metawidget.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/book.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/confirm.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/hotel.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/main.xhtml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/pom.xml
branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/readme.txt
branches/enterprise/WFK-2_0/examples-ee6/metawidget/readme.txt
Modified:
branches/enterprise/WFK-2_0/examples-ee6/pom.xml
Log:
removed unsupported Metawidget examples
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,159 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking</artifactId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ear</artifactId>
- <packaging>ear</packaging>
- <name>Metawidget Booking EAR Module (EE6)</name>
-
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-web</artifactId>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <type>ejb</type>
- <exclusions>
- <exclusion>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
-
- <build>
- <finalName>seam-metawidget-booking</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-ear-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <defaultLibBundleDir>lib</defaultLibBundleDir>
- <!-- Exclude eclipse generated application.xml and manually modified jboss-app.xml during mvn build -->
- <earSourceExcludes>**/application.xml, **/jboss-app.xml</earSourceExcludes>
- <!-- use maven generated application.xml instead -->
- <generateApplicationXml>true</generateApplicationXml>
- <filtering>true</filtering>
- <jboss>
- <version>4.2</version>
- <loader-repository>seam.jboss.org:loader=seam-metawidget-booking</loader-repository>
- </jboss>
- <modules>
- <webModule>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-web</artifactId>
- <contextRoot>/seam-metawidget-booking</contextRoot>
- <bundleFileName>booking-web.war</bundleFileName>
- </webModule>
- <ejbModule>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <bundleFileName>booking-ejb.jar</bundleFileName>
- </ejbModule>
- <ejbModule>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <bundleFileName>jboss-seam.jar</bundleFileName>
- </ejbModule>
- </modules>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.jboss.as.plugins</groupId>
- <artifactId>jboss-as-maven-plugin</artifactId>
- <executions>
- <!-- This requires to be enabled manually as <enabled>true</enabled> doesn't
- work -->
- <!-- <execution> -->
- <!-- <id>add-datasource</id> -->
- <!-- <phase>package</phase> -->
- <!-- <configuration> -->
- <!-- <address>subsystem=datasources,data-source=java:/bookingDatasource</address> -->
- <!-- <properties> -->
- <!-- <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url> -->
- <!-- <jndi-name>java:/bookingDatasource</jndi-name> -->
- <!-- <enabled>true</enabled> -->
- <!-- <pool-name>bookingDSPool</pool-name> -->
- <!-- <user-name>sa</user-name> -->
- <!-- <driver-name>h2</driver-name> -->
- <!-- </properties> -->
- <!-- </configuration> -->
- <!-- <goals> -->
- <!-- <goal>add-resource</goal> -->
- <!-- </goals> -->
- <!-- </execution> -->
- <!-- Datasource has to be created before running deploy -->
- <execution>
- <phase></phase>
- <goals>
- <goal>deploy</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>exploded</id>
- <properties>
- <example.name>booking</example.name>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack</id>
- <phase>package</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ear</artifactId>
- <type>ear</type>
- <overWrite>true</overWrite>
- <outputDirectory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.ear</outputDirectory>
- </artifactItem>
- <artifactItem>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-web</artifactId>
- <type>war</type>
- <overWrite>true</overWrite>
- <outputDirectory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.ear/${example.name}-web.war</outputDirectory>
- </artifactItem>
- <artifactItem>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <type>jar</type>
- <overWrite>true</overWrite>
- <outputDirectory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.ear/${example.name}-ejb.jar</outputDirectory>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-deployment-structure.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-deployment-structure.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-deployment-structure.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,12 +0,0 @@
-<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
- <deployment>
- <dependencies>
- <module name="org.apache.log4j" export="true"/>
- <module name="org.dom4j" export="true"/>
- <module name="org.apache.commons.logging" export="true"/>
- <module name="org.apache.commons.collections" export="true"/>
- <module name="javax.faces.api" export="true"/>
- <module name="com.sun.jsf-impl" export="true"/>
- </dependencies>
- </deployment>
-</jboss-deployment-structure>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-seam-booking-ds.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-seam-booking-ds.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ear/src/main/application/META-INF/jboss-seam-booking-ds.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<datasources xmlns="http://www.jboss.org/ironjacamar/schema">
- <datasource
- jndi-name="java:/bookingDatasource"
- enabled="true"
- use-java-context="true" pool-name="bookingdb">
- <connection-url>jdbc:h2:mem:bookingdb;DB_CLOSE_DELAY=-1</connection-url>
- <driver>h2</driver>
- <security>
- <user-name>sa</user-name>
- <password>sa</password>
- </security>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,140 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>booking</artifactId>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <packaging>ejb</packaging>
- <name>Metawidget Booking EJB Module (EE6)</name>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-metawidget-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>src/metawidget/java</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.servlet</groupId>
- <artifactId>jboss-servlet-api_3.0_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.ejb</groupId>
- <artifactId>jboss-ejb-api_3.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <type>ejb</type>
- <exclusions>
- <exclusion>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- </exclusion>
- <exclusion>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.1_spec</artifactId>
- </exclusion>
- <exclusion>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-annotation</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules.faces</groupId>
- <artifactId>metawidget-facesannotation</artifactId>
- <version>2.1</version>
- </dependency>
-
- </dependencies>
-
- <profiles>
- <profile>
- <id>cluster</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-cluster-resources</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.outputDirectory}</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}/src/main/resources-cluster</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Authenticator.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Authenticator.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Authenticator.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,9 +0,0 @@
-package org.jboss.seam.example.booking;
-
-import javax.ejb.Local;
-
- at Local
-public interface Authenticator
-{
- boolean authenticate();
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/AuthenticatorAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/AuthenticatorAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/AuthenticatorAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,40 +0,0 @@
-package org.jboss.seam.example.booking;
-
-import static org.jboss.seam.ScopeType.SESSION;
-
-import java.util.List;
-
-import javax.ejb.Stateless;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Out;
-
- at Stateless
- at Name("authenticator")
-public class AuthenticatorAction
- implements Authenticator
-{
- @PersistenceContext
- private EntityManager em;
-
- @In(required=false)
- @Out(required=false, scope = SESSION)
- private User user;
-
- public boolean authenticate()
- {
- List results = em.createQuery("select u from User u where u.username=#{identity.username} and u.password=#{identity.password}")
- .getResultList();
-
- if (results.size()==0) {
- return false;
- } else {
- user = (User) results.get(0);
- return true;
- }
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingList.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingList.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingList.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,13 +0,0 @@
-//$Id: BookingList.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import javax.ejb.Local;
-
- at Local
-public interface BookingList
-{
- public void getBookings();
- public Booking getBooking();
- public void cancel();
- public void destroy();
-}
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingListAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingListAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/BookingListAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,76 +0,0 @@
-//$Id: BookingListAction.java 8748 2008-08-20 12:08:30Z pete.muir at jboss.org $
-package org.jboss.seam.example.booking;
-
-import static javax.ejb.TransactionAttributeType.REQUIRES_NEW;
-import static org.jboss.seam.ScopeType.SESSION;
-
-import java.io.Serializable;
-import java.util.List;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.ejb.TransactionAttribute;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.jboss.seam.annotations.Factory;
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Logger;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Observer;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.datamodel.DataModel;
-import org.jboss.seam.annotations.datamodel.DataModelSelection;
-import org.jboss.seam.annotations.security.Restrict;
-import org.jboss.seam.faces.FacesMessages;
-import org.jboss.seam.log.Log;
-
- at Stateful
- at Scope(SESSION)
- at Name("bookingList")
- at Restrict("#{identity.loggedIn}")
- at TransactionAttribute(REQUIRES_NEW)
-public class BookingListAction implements BookingList, Serializable
-{
- private static final long serialVersionUID = 1L;
-
- @PersistenceContext
- private EntityManager em;
-
- @In
- private User user;
-
- @DataModel
- private List<Booking> bookings;
- @DataModelSelection
- private Booking booking;
-
- @Logger
- private Log log;
-
- @Factory
- @Observer("bookingConfirmed")
- public void getBookings()
- {
- bookings = em.createQuery("select b from Booking b where b.user.username = :username order by b.checkinDate")
- .setParameter("username", user.getUsername())
- .getResultList();
- }
-
- public void cancel()
- {
- log.info("Cancel booking: #{bookingList.booking.id} for #{user.username}");
- Booking cancelled = em.find(Booking.class, booking.getId());
- if (cancelled!=null) em.remove( cancelled );
- getBookings();
- FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId());
- }
-
- public Booking getBooking()
- {
- return booking;
- }
-
- @Remove
- public void destroy() {}
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePassword.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePassword.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePassword.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,16 +0,0 @@
-//$Id: ChangePassword.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import javax.ejb.Local;
-
- at Local
-public interface ChangePassword
-{
- public void changePassword();
- public boolean isChanged();
-
- public String getVerify();
- public void setVerify(String verify);
-
- public void destroy();
-}
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePasswordAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePasswordAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/ChangePasswordAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,73 +0,0 @@
-//$Id: ChangePasswordAction.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import static org.jboss.seam.ScopeType.EVENT;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Out;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.security.Restrict;
-import org.jboss.seam.faces.FacesMessages;
-
- at Stateful
- at Scope(EVENT)
- at Name("changePassword")
- at Restrict("#{identity.loggedIn}")
-public class ChangePasswordAction implements ChangePassword
-{
- @In @Out
- private User user;
-
- @PersistenceContext
- private EntityManager em;
-
- private String verify;
-
- private boolean changed;
-
- @In
- private FacesMessages facesMessages;
-
- public void changePassword()
- {
- if ( user.getPassword().equals(verify) )
- {
- user = em.merge(user);
- facesMessages.add("Password updated");
- changed = true;
- }
- else
- {
- facesMessages.addToControl("verify", "Re-enter new password");
- revertUser();
- verify=null;
- }
- }
-
- public boolean isChanged()
- {
- return changed;
- }
-
- private void revertUser()
- {
- user = em.find(User.class, user.getUsername());
- }
- public String getVerify()
- {
- return verify;
- }
- public void setVerify(String verify)
- {
- this.verify = verify;
- }
-
- @Remove
- public void destroy() {}
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBooking.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBooking.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBooking.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,22 +0,0 @@
-//$Id: HotelBooking.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import javax.ejb.Local;
-
- at Local
-public interface HotelBooking
-{
- public void selectHotel(Hotel selectedHotel);
-
- public void bookHotel();
-
- public void setBookingDetails();
- public boolean isBookingValid();
-
- public void confirm();
-
- public void cancel();
-
- public void destroy();
-
-}
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBookingAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBookingAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelBookingAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,108 +0,0 @@
-//$Id: HotelBookingAction.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import static javax.persistence.PersistenceContextType.EXTENDED;
-
-import java.util.Calendar;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.jboss.seam.annotations.Begin;
-import org.jboss.seam.annotations.End;
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Logger;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Out;
-import org.jboss.seam.annotations.security.Restrict;
-import org.jboss.seam.core.Events;
-import org.jboss.seam.faces.FacesMessages;
-import org.jboss.seam.log.Log;
-
- at Stateful
- at Name("hotelBooking")
- at Restrict("#{identity.loggedIn}")
-public class HotelBookingAction implements HotelBooking
-{
-
- @PersistenceContext(type=EXTENDED)
- private EntityManager em;
-
- @In
- private User user;
-
- @In(required=false) @Out
- private Hotel hotel;
-
- @In(required=false)
- @Out(required=false)
- private Booking booking;
-
- @In
- private FacesMessages facesMessages;
-
- @In
- private Events events;
-
- @Logger
- private Log log;
-
- private boolean bookingValid;
-
- @Begin
- public void selectHotel(Hotel selectedHotel)
- {
- hotel = em.merge(selectedHotel);
- }
-
- public void bookHotel()
- {
- booking = new Booking(hotel, user);
- Calendar calendar = Calendar.getInstance();
- booking.setCheckinDate( calendar.getTime() );
- calendar.add(Calendar.DAY_OF_MONTH, 1);
- booking.setCheckoutDate( calendar.getTime() );
- }
-
- public void setBookingDetails()
- {
- Calendar calendar = Calendar.getInstance();
- calendar.add(Calendar.DAY_OF_MONTH, -1);
- if ( booking.getCheckinDate().before( calendar.getTime() ) )
- {
- facesMessages.addToControl("checkinDate", "Check in date must be a future date");
- bookingValid=false;
- }
- else if ( !booking.getCheckinDate().before( booking.getCheckoutDate() ) )
- {
- facesMessages.addToControl("checkoutDate", "Check out date must be later than check in date");
- bookingValid=false;
- }
- else
- {
- bookingValid=true;
- }
- }
-
- public boolean isBookingValid()
- {
- return bookingValid;
- }
-
- @End
- public void confirm()
- {
- em.persist(booking);
- facesMessages.add("Thank you, #{user.name}, your confimation number for #{hotel.name} is #{booking.id}");
- log.info("New booking: #{booking.id} for #{user.username}");
- events.raiseTransactionSuccessEvent("bookingConfirmed");
- }
-
- @End
- public void cancel() {}
-
- @Remove
- public void destroy() {}
-}
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearching.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearching.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearching.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,23 +0,0 @@
-//$Id: HotelSearching.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import javax.ejb.Local;
-
- at Local
-public interface HotelSearching
-{
- public int getPageSize();
- public void setPageSize(int pageSize);
-
- public String getSearchString();
- public void setSearchString(String searchString);
-
- public String getSearchPattern();
-
- public void find();
- public void nextPage();
- public boolean isNextPageAvailable();
-
- public void destroy();
-
-}
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearchingAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearchingAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/HotelSearchingAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,95 +0,0 @@
-//$Id: HotelSearchingAction.java 8998 2008-09-16 03:08:11Z shane.bryzak at jboss.com $
-package org.jboss.seam.example.booking;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.jboss.seam.ScopeType;
-import org.jboss.seam.annotations.Factory;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.datamodel.DataModel;
-import org.jboss.seam.annotations.security.Restrict;
-
- at Stateful
- at Name("hotelSearch")
- at Scope(ScopeType.SESSION)
- at Restrict("#{identity.loggedIn}")
-public class HotelSearchingAction implements HotelSearching
-{
- @PersistenceContext
- private EntityManager em;
-
- private String searchString;
- private int pageSize = 10;
- private int page;
- private boolean nextPageAvailable;
-
- @DataModel
- private List<Hotel> hotels;
-
- public void find()
- {
- page = 0;
- queryHotels();
- }
-
- public void nextPage()
- {
- page++;
- queryHotels();
- }
-
- private void queryHotels() {
- List<Hotel> results = em.createQuery("select h from Hotel h where lower(h.name) like #{pattern} or lower(h.city) like #{pattern} or lower(h.zip) like #{pattern} or lower(h.address) like #{pattern}")
- .setMaxResults(pageSize+1)
- .setFirstResult(page * pageSize)
- .getResultList();
-
- nextPageAvailable = results.size() > pageSize;
- if (nextPageAvailable)
- {
- hotels = new ArrayList<Hotel>(results.subList(0,pageSize));
- } else {
- hotels = results;
- }
- }
-
- public boolean isNextPageAvailable()
- {
- return nextPageAvailable;
- }
-
- public int getPageSize() {
- return pageSize;
- }
-
- public void setPageSize(int pageSize) {
- this.pageSize = pageSize;
- }
-
- @Factory(value="pattern", scope=ScopeType.EVENT)
- public String getSearchPattern()
- {
- return searchString==null ?
- "%" : '%' + searchString.toLowerCase().replace('*', '%') + '%';
- }
-
- public String getSearchString()
- {
- return searchString;
- }
-
- public void setSearchString(String searchString)
- {
- this.searchString = searchString;
- }
-
- @Remove
- public void destroy() {}
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Register.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Register.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/Register.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,16 +0,0 @@
-//$Id: Register.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import javax.ejb.Local;
-
- at Local
-public interface Register
-{
- public void register();
- public void invalid();
- public String getVerify();
- public void setVerify(String verify);
- public boolean isRegistered();
-
- public void destroy();
-}
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/RegisterAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/RegisterAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/RegisterAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,80 +0,0 @@
-//$Id: RegisterAction.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import static org.jboss.seam.ScopeType.EVENT;
-
-import java.util.List;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.faces.FacesMessages;
-
- at Stateful
- at Scope(EVENT)
- at Name("register")
-public class RegisterAction implements Register
-{
- @In
- private User user;
-
- @PersistenceContext
- private EntityManager em;
-
- @In
- private FacesMessages facesMessages;
-
- private String verify;
-
- private boolean registered;
-
- public void register()
- {
- if ( user.getPassword().equals(verify) )
- {
- List existing = em.createQuery("select u.username from User u where u.username=#{user.username}")
- .getResultList();
- if (existing.size()==0)
- {
- em.persist(user);
- facesMessages.add("Successfully registered as #{user.username}");
- registered = true;
- }
- else
- {
- facesMessages.addToControl("username", "Username #{user.username} already exists");
- }
- }
- else
- {
- facesMessages.addToControl("verify", "Re-enter your password");
- verify=null;
- }
- }
-
- public void invalid()
- {
- facesMessages.add("Please try again");
- }
-
- public boolean isRegistered()
- {
- return registered;
- }
- public String getVerify()
- {
- return verify;
- }
- public void setVerify(String verify)
- {
- this.verify = verify;
- }
-
- @Remove
- public void destroy() {}
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/User.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/User.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/java/org/jboss/seam/example/booking/User.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,74 +0,0 @@
-//$Id: User.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import static org.jboss.seam.ScopeType.SESSION;
-
-import java.io.Serializable;
-
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-
-import javax.validation.constraints.*;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-
- at Entity
- at Name("user")
- at Scope(SESSION)
- at Table(name="Customer")
-public class User implements Serializable
-{
- private String username;
- private String password;
- private String name;
-
- public User(String name, String password, String username)
- {
- this.name = name;
- this.password = password;
- this.username = username;
- }
-
- public User() {}
-
- @NotNull
- @Size(max=100)
- public String getName()
- {
- return name;
- }
- public void setName(String name)
- {
- this.name = name;
- }
-
- @NotNull
- @Size(min=5, max=15)
- public String getPassword()
- {
- return password;
- }
- public void setPassword(String password)
- {
- this.password = password;
- }
-
- @Id
- @Size(min=4, max=15)
- @Pattern(regexp="^\\w*$", message="not a valid username")
- public String getUsername()
- {
- return username;
- }
- public void setUsername(String username)
- {
- this.username = username;
- }
-
- @Override
- public String toString()
- {
- return "User(" + username + ")";
- }
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/ejb-jar.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/ejb-jar.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/ejb-jar.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
- version="3.0">
-
- <interceptors>
- <interceptor>
- <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
- </interceptor>
- </interceptors>
-
- <assembly-descriptor>
- <interceptor-binding>
- <ejb-name>*</ejb-name>
- <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
- </interceptor-binding>
- </assembly-descriptor>
-
-</ejb-jar>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/persistence.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/persistence.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/META-INF/persistence.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<persistence xmlns="http://java.sun.com/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
- version="1.0">
- <persistence-unit name="bookingDatabase">
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <jta-data-source>java:/bookingDatasource</jta-data-source>
- <properties>
- <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
- <property name="hibernate.show_sql" value="true"/>
- <!-- These are the default for JBoss EJB3, but not for HEM: -->
- <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
- <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
- </properties>
- </persistence-unit>
-</persistence>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/import.sql
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/import.sql 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/import.sql 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,22 +0,0 @@
-insert into Customer (username, password, name) values ('gavin', 'foobar', 'Gavin King')
-insert into Customer (username, password, name) values ('demo', 'demo', 'Demo User')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (1, 120, 'Marriott Courtyard', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (2, 180, 'Doubletree', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (3, 450, 'W Hotel', 'Union Square, Manhattan', 'NY', 'NY', '10011', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (4, 450, 'W Hotel', 'Lexington Ave, Manhattan', 'NY', 'NY', '10011', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (5, 250, 'Hotel Rouge', '1315 16th Street NW', 'Washington', 'DC', '20036', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (6, 300, '70 Park Avenue Hotel', '70 Park Avenue', 'NY', 'NY', '10011', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (8, 300, 'Conrad Miami', '1395 Brickell Ave', 'Miami', 'FL', '33131', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (9, 80, 'Sea Horse Inn', '2106 N Clairemont Ave', 'Eau Claire', 'WI', '54703', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (10, 90, 'Super 8 Eau Claire Campus Area', '1151 W Macarthur Ave', 'Eau Claire', 'WI', '54701', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (11, 160, 'Marriott Downtown', '55 Fourth Street', 'San Francisco', 'CA', '94103', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (12, 200, 'Hilton Diagonal Mar', 'Passeig del Taulat 262-264', 'Barcelona', 'Catalunya', '08019', 'Spain')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (13, 210, 'Hilton Tel Aviv', 'Independence Park', 'Tel Aviv', '', '63405', 'Israel')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (14, 240, 'InterContinental Tokyo Bay', 'Takeshiba Pier', 'Tokyo', '', '105', 'Japan')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (15, 130, 'Hotel Beaulac', ' Esplanade Léopold-Robert 2', 'Neuchatel', '', '2000', 'Switzerland')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (16, 140, 'Conrad Treasury Place', 'William & George Streets', 'Brisbane', 'QLD', '4001', 'Australia')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (17, 230, 'Ritz Carlton', '1228 Sherbrooke St', 'West Montreal', 'Quebec', 'H3G1H6', 'Canada')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (18, 460, 'Ritz Carlton', 'Peachtree Rd, Buckhead', 'Atlanta', 'GA', '30326', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (19, 220, 'Swissotel', '68 Market Street', 'Sydney', 'NSW', '2000', 'Australia')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (20, 250, 'Meliá White House', 'Albany Street', 'Regents Park London', '', 'NW13UP', 'Great Britain')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (21, 210, 'Hotel Allegro', '171 West Randolph Street', 'Chicago', 'IL', '60601', 'USA')
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources/seam.properties
===================================================================
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources-cluster/META-INF/jboss.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources-cluster/META-INF/jboss.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/main/resources-cluster/META-INF/jboss.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,21 +0,0 @@
-<jboss xmlns="http://www.jboss.com/xml/ns/javaee"
- xmlns:jee="http://java.sun.com/xml/ns/javaee"
- xmlns:c="urn:clustering:1.0">
-
- <jee:assembly-descriptor>
- <c:clustering>
- <jee:ejb-name>BookingListAction</jee:ejb-name>
- <c:clustered>true</c:clustered>
- </c:clustering>
-
- <c:clustering>
- <jee:ejb-name>HotelBookingAction</jee:ejb-name>
- <c:clustered>true</c:clustered>
- </c:clustering>
-
- <c:clustering>
- <jee:ejb-name>HotelSearchingAction</jee:ejb-name>
- <c:clustered>true</c:clustered>
- </c:clustering>
- </jee:assembly-descriptor>
-</jboss>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Booking.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Booking.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Booking.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,222 +0,0 @@
-//$Id: Booking.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-import java.text.DateFormat;
-import java.util.Date;
-
-import javax.persistence.Basic;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.persistence.ManyToOne;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.persistence.Transient;
-
-import javax.validation.constraints.Size;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Pattern;
-import org.jboss.seam.annotations.Name;
-
-import org.metawidget.inspector.annotation.*;
-import org.metawidget.inspector.faces.*;
-
- at Entity
- at Name("booking")
-public class Booking implements Serializable
-{
-
- private static final long serialVersionUID = 1L;
-
- private Long id;
- private User user;
- private Hotel hotel;
- private Date checkinDate;
- private Date checkoutDate;
- private String creditCard;
- private String creditCardName;
- private int creditCardExpiryMonth;
- private int creditCardExpiryYear;
- private boolean smoking;
- private int beds;
-
- public Booking() {}
-
- public Booking(Hotel hotel, User user)
- {
- this.hotel = hotel;
- this.user = user;
- }
-
- @Transient
- @UiHidden
- @UiFacesNumberConverter(type="currency",currencySymbol="$")
- @UiLabel("Total payment")
- public BigDecimal getTotal()
- {
- return hotel.getPrice().multiply( new BigDecimal( getNights() ) );
- }
-
- @Transient
- @UiHidden
- public int getNights()
- {
- return (int) ( checkoutDate.getTime() - checkinDate.getTime() ) / 1000 / 60 / 60 / 24;
- }
-
- @Id @GeneratedValue
- public Long getId()
- {
- return id;
- }
- public void setId(Long id)
- {
- this.id = id;
- }
-
- @NotNull
- @Basic @Temporal(TemporalType.DATE)
- @UiComesAfter( "total" )
- @UiFacesDateTimeConverter( pattern = "MM/dd/yyyy" )
- public Date getCheckinDate()
- {
- return checkinDate;
- }
- public void setCheckinDate(Date datetime)
- {
- this.checkinDate = datetime;
- }
-
- @ManyToOne @NotNull
- @UiHidden
- public Hotel getHotel()
- {
- return hotel;
- }
- public void setHotel(Hotel hotel)
- {
- this.hotel = hotel;
- }
-
- @ManyToOne @NotNull
- @UiHidden
- public User getUser()
- {
- return user;
- }
- public void setUser(User user)
- {
- this.user = user;
- }
-
- @Basic @Temporal(TemporalType.DATE)
- @NotNull
- @UiComesAfter( "checkinDate" )
- @UiFacesDateTimeConverter( pattern = "MM/dd/yyyy" )
- public Date getCheckoutDate()
- {
- return checkoutDate;
- }
- public void setCheckoutDate(Date checkoutDate)
- {
- this.checkoutDate = checkoutDate;
- }
-
- @NotNull(message="Credit card number is required")
- @Size(min=16, max=16, message="Credit card number must 16 digits long")
- @Pattern(regexp="^\\d*$", message="Credit card number must be numeric")
- @UiComesAfter( "smoking" )
- @UiLabel( "Credit card #" )
- public String getCreditCard()
- {
- return creditCard;
- }
-
- public void setCreditCard(String creditCard)
- {
- this.creditCard = creditCard;
- }
-
- @Transient
- @UiHidden
- public String getDescription()
- {
- DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM);
- return hotel==null ? null : hotel.getName() +
- ", " + df.format( getCheckinDate() ) +
- " to " + df.format( getCheckoutDate() );
- }
-
- @UiLookup( value = { "true", "false" }, labels = { "Smoking", "Non Smoking" } )
- @UiFacesComponent( "javax.faces.HtmlSelectOneRadio" )
- @UiComesAfter( "beds" )
- public boolean isSmoking()
- {
- return smoking;
- }
-
- public void setSmoking(boolean smoking)
- {
- this.smoking = smoking;
- }
-
- @UiLabel( "Room preference" )
- @UiComesAfter( "checkoutDate" )
- @UiLookup( value = { "1", "2", "3" }, labels = { "One king-size bed", "Two double beds", "Three beds" } )
- public int getBeds()
- {
- return beds;
- }
-
- public void setBeds(int beds)
- {
- this.beds = beds;
- }
- @NotNull(message="Credit card name is required")
- @Size(min=3, max=70, message="Credit card name is required")
- @UiComesAfter( "creditCard" )
- public String getCreditCardName()
- {
- return creditCardName;
- }
-
- public void setCreditCardName(String creditCardName)
- {
- this.creditCardName = creditCardName;
- }
-
- @UiLookup( value = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }, labels = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" } )
- @UiComesAfter( "creditCardName" )
- @UiLabel( "Expiry month" )
- public int getCreditCardExpiryMonth()
- {
- return creditCardExpiryMonth;
- }
-
- public void setCreditCardExpiryMonth(int creditCardExpiryMonth)
- {
- this.creditCardExpiryMonth = creditCardExpiryMonth;
- }
-
- @UiComesAfter( "creditCardExpiryMonth" )
- @UiLookup( { "2005", "2006", "2007", "2008", "2009" } )
- @UiLabel( "Expiry year" )
- public int getCreditCardExpiryYear()
- {
- return creditCardExpiryYear;
- }
-
- public void setCreditCardExpiryYear(int creditCardExpiryYear)
- {
- this.creditCardExpiryYear = creditCardExpiryYear;
- }
-
- @Override
- public String toString()
- {
- return "Booking(" + user + ","+ hotel + ")";
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Hotel.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Hotel.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-ejb/src/metawidget/java/org/jboss/seam/example/booking/Hotel.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,125 +0,0 @@
-//$Id: Hotel.java 5579 2007-06-27 00:06:49Z gavin $
-package org.jboss.seam.example.booking;
-
-import java.io.Serializable;
-import java.math.BigDecimal;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.Id;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-
-import org.jboss.seam.annotations.Name;
-
-import org.metawidget.inspector.annotation.*;
-import org.metawidget.inspector.faces.*;
-
- at Entity
- at Name("hotel")
-public class Hotel implements Serializable
-{
- private Long id;
- private String name;
- private String address;
- private String city;
- private String state;
- private String zip;
- private String country;
- private BigDecimal price;
-
- @Id @GeneratedValue
- public Long getId()
- {
- return id;
- }
- public void setId(Long id)
- {
- this.id = id;
- }
-
- @Size(max=50) @NotNull
- public String getName()
- {
- return name;
- }
- public void setName(String name)
- {
- this.name = name;
- }
-
- @Size(max=100) @NotNull
- @UiComesAfter("name")
- public String getAddress()
- {
- return address;
- }
- public void setAddress(String address)
- {
- this.address = address;
- }
-
- @Size(max=40) @NotNull
- @UiComesAfter("address")
- public String getCity()
- {
- return city;
- }
- public void setCity(String city)
- {
- this.city = city;
- }
-
- @Size(min=4, max=6) @NotNull
- @UiComesAfter("state")
- public String getZip()
- {
- return zip;
- }
- public void setZip(String zip)
- {
- this.zip = zip;
- }
-
- @Size(min=2, max=10) @NotNull
- @UiComesAfter("city")
- public String getState()
- {
- return state;
- }
- public void setState(String state)
- {
- this.state = state;
- }
-
- @Size(min=2, max=40) @NotNull
- @UiComesAfter("zip")
- public String getCountry()
- {
- return country;
- }
- public void setCountry(String country)
- {
- this.country = country;
- }
-
- @Column(precision=6, scale=2)
- @UiComesAfter("country")
- @UiFacesNumberConverter(type="currency",currencySymbol="$")
- @UiLabel("Nightly rate")
- public BigDecimal getPrice()
- {
- return price;
- }
- public void setPrice(BigDecimal price)
- {
- this.price = price;
- }
-
- @Override
- public String toString()
- {
- return "Hotel(" + name + "," + address + "," + city + "," + zip + ")";
- }
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,229 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>booking</artifactId>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-tests</artifactId>
- <name>Metawidget Booking Integration Tests Module (EE6)</name>
-
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <type>ejb</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <type>ejb</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.1_spec</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.mail</groupId>
- <artifactId>mail</artifactId>
- </dependency>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-server</artifactId>
- </dependency>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-java</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>functional-tests</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.arquillian.junit</groupId>
- <artifactId>arquillian-junit-container</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.arquillian.protocol</groupId>
- <artifactId>arquillian-protocol-servlet</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.shrinkwrap.resolver</groupId>
- <artifactId>shrinkwrap-resolver-api-maven</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.shrinkwrap.resolver</groupId>
- <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.el</groupId>
- <artifactId>jboss-el-api_2.2_spec</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>true</filtering>
- </testResource>
- <testResource> <!-- this takes datasource booking-ds.xml -->
- <directory>${basedir}/../booking-ear/src/main/resources</directory>
- <filtering>true</filtering>
- </testResource>
- <testResource> <!-- this takes themes aka *.properties -->
- <directory>${basedir}/../booking-web/src/main/resources</directory>
- <filtering>true</filtering>
- </testResource>
- <testResource>
- <directory>src/test/resources-integration</directory>
- </testResource>
- </testResources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>integration-tests</id>
- <activation>
- <property>
- <name>arquillian</name>
- </property>
- </activation>
- </profile>
-
- <profile>
- <id>arq-jbossas-7-managed</id>
- <activation>
- <property>
- <name>arquillian</name>
- <value>jbossas-managed-7</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <id>arq-jbossas-7-remote</id>
- <activation>
- <property>
- <name>arquillian</name>
- <value>jbossas-remote-7</value>
- </property>
- </activation>
- </profile>
-
- <profile>
- <id>ftest-jbossas</id>
- <properties>
- <example.context.path>seam-metawidget-booking</example.context.path>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>failsafe-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>ftest-jbossas-cluster</id>
- <properties>
- <example.context.path>seam-booking</example.context.path>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>failsafe-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>ftest-tomcat</id>
- <properties>
- <example.context.path>jboss-seam-metawidget-booking</example.context.path>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>failsafe-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/BookingTest.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/BookingTest.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/BookingTest.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,309 +0,0 @@
-//$Id: BookingTest.java 5810 2007-07-16 06:46:47Z gavin $
-package org.jboss.seam.example.booking.test;
-
-import java.util.Calendar;
-import java.util.Date;
-import java.util.Iterator;
-
-import javax.faces.application.FacesMessage;
-import javax.faces.context.FacesContext;
-import javax.faces.model.DataModel;
-import javax.faces.model.ListDataModel;
-
-import org.jboss.shrinkwrap.api.asset.Asset;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.container.test.api.OverProtocol;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.seam.contexts.Contexts;
-import org.jboss.seam.core.Manager;
-import org.jboss.seam.example.booking.Booking;
-import org.jboss.seam.example.booking.Hotel;
-import org.jboss.seam.example.booking.HotelBooking;
-import org.jboss.seam.example.booking.User;
-import org.jboss.seam.mock.JUnitSeamTest;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
- at RunWith(Arquillian.class)
-public class BookingTest extends JUnitSeamTest
-{
- @Deployment(name="BookingTest")
- @OverProtocol("Servlet 3.0")
- public static Archive<?> createDeployment()
- {
- EnterpriseArchive er = Deployments.bookingDeployment();
- WebArchive web = er.getAsType(WebArchive.class, "booking-web.war");
-
- web.addClasses(BookingTest.class);
-
- return er;
- }
-
- @Test
- public void testBookHotel() throws Exception
- {
-
- new FacesRequest() {
-
- @Override
- protected void invokeApplication() throws Exception
- {
- Contexts.getSessionContext().set("user", new User("Gavin King", "foobar", "gavin"));
- setValue("#{identity.username}", "gavin");
- setValue("#{identity.password}", "foobar");
- invokeAction("#{identity.login}");
- }
-
- }.run();
-
- new FacesRequest("/main.xhtml") {
-
- @Override
- protected void updateModelValues() throws Exception
- {
- setValue("#{hotelSearch.searchString}", "Union Square");
- }
-
- @Override
- protected void invokeApplication()
- {
- assert invokeAction("#{hotelSearch.find}")==null;
- }
-
- @Override
- protected void renderResponse()
- {
- DataModel hotels = (DataModel) Contexts.getSessionContext().get("hotels");
- assert hotels.getRowCount()==1;
- assert ( (Hotel) hotels.getRowData() ).getCity().equals("NY");
- assert getValue("#{hotelSearch.searchString}").equals("Union Square");
- assert !Manager.instance().isLongRunningConversation();
- }
-
- }.run();
-
- String id = new FacesRequest("/main.xhtml") {
-
- @Override
- protected void invokeApplication() throws Exception {
- HotelBooking hotelBooking = (HotelBooking) getInstance("hotelBooking");
- DataModel hotels = (DataModel) Contexts.getSessionContext().get("hotels");
- assert hotels.getRowCount()==1;
- hotelBooking.selectHotel( (Hotel) hotels.getRowData() );
- }
-
- @Override
- protected void renderResponse()
- {
- Hotel hotel = (Hotel) Contexts.getConversationContext().get("hotel");
- assert hotel.getCity().equals("NY");
- assert hotel.getZip().equals("10011");
- assert Manager.instance().isLongRunningConversation();
- }
-
- }.run();
-
- id = new FacesRequest("/hotel.xhtml", id) {
-
- @Override
- protected void invokeApplication()
- {
- invokeAction("#{hotelBooking.bookHotel}");
- }
-
- @Override
- protected void renderResponse()
- {
- assert getValue("#{booking.user}")!=null;
- assert getValue("#{booking.hotel}")!=null;
- assert getValue("#{booking.creditCard}")==null;
- assert getValue("#{booking.creditCardName}")==null;
- Booking booking = (Booking) Contexts.getConversationContext().get("booking");
- assert booking.getHotel()==Contexts.getConversationContext().get("hotel");
- assert booking.getUser()==Contexts.getSessionContext().get("user");
- assert Manager.instance().isLongRunningConversation();
- }
-
- }.run();
-
- new FacesRequest("/book.xhtml", id) {
-
- @Override
- protected void processValidations() throws Exception
- {
- validateValue("#{booking.creditCard}", "123");
- assert isValidationFailure();
- }
-
- @Override
- protected void renderResponse()
- {
- Iterator messages = FacesContext.getCurrentInstance().getMessages();
- assert messages.hasNext();
- assert ( (FacesMessage) messages.next() ).getSummary().equals("Credit card number must 16 digits long");
- assert !messages.hasNext();
- assert Manager.instance().isLongRunningConversation();
- }
-
- @Override
- protected void afterRequest()
- {
- assert !isInvokeApplicationBegun();
- }
-
- }.run();
-
- new FacesRequest("/book.xhtml", id) {
-
- @Override
- protected void processValidations() throws Exception
- {
- validateValue("#{booking.creditCardName}", "");
- assert isValidationFailure();
- }
-
- @Override
- protected void renderResponse()
- {
- Iterator messages = FacesContext.getCurrentInstance().getMessages();
- assert messages.hasNext();
- assert ( (FacesMessage) messages.next() ).getSummary().equals("Credit card name is required");
- assert !messages.hasNext();
- assert Manager.instance().isLongRunningConversation();
- }
-
- @Override
- protected void afterRequest()
- {
- assert !isInvokeApplicationBegun();
- }
-
- }.run();
-
- new FacesRequest("/book.xhtml", id) {
-
- @Override @SuppressWarnings("deprecation")
- protected void updateModelValues() throws Exception
- {
- setValue("#{booking.creditCard}", "1234567891021234");
- setValue("#{booking.creditCardName}", "GAVIN KING");
- setValue("#{booking.beds}", 2);
- Date now = new Date();
- setValue("#{booking.checkinDate}", now);
- setValue("#{booking.checkoutDate}", now);
- }
-
- @Override
- protected void invokeApplication()
- {
- assert invokeAction("#{hotelBooking.setBookingDetails}")==null;
- }
-
- @Override
- protected void renderResponse()
- {
- Iterator messages = FacesContext.getCurrentInstance().getMessages();
- assert messages.hasNext();
- FacesMessage message = (FacesMessage) messages.next();
- assert message.getSummary().equals("Check out date must be later than check in date");
- assert !messages.hasNext();
- assert Manager.instance().isLongRunningConversation();
- }
-
- @Override
- protected void afterRequest()
- {
- assert isInvokeApplicationComplete();
- }
-
- }.run();
-
- new FacesRequest("/book.xhtml", id) {
-
- @Override @SuppressWarnings("deprecation")
- protected void updateModelValues() throws Exception
- {
- Calendar cal = Calendar.getInstance();
- cal.add(Calendar.DAY_OF_MONTH, 2);
- setValue("#{booking.checkoutDate}", cal.getTime() );
- }
-
- @Override
- protected void invokeApplication()
- {
- invokeAction("#{hotelBooking.setBookingDetails}");
- }
-
- @Override
- protected void renderResponse()
- {
- assert Manager.instance().isLongRunningConversation();
- }
-
- @Override
- protected void afterRequest()
- {
- assert isInvokeApplicationComplete();
- }
-
- }.run();
-
- new FacesRequest("/confirm.xhtml", id) {
-
- @Override
- protected void invokeApplication()
- {
- invokeAction("#{hotelBooking.confirm}");
- }
-
- @Override
- protected void afterRequest()
- {
- assert isInvokeApplicationComplete();
- }
-
- }.run();
-
- new NonFacesRequest("/main.xhtml") {
-
- @Override
- protected void renderResponse()
- {
- ListDataModel bookings = (ListDataModel) getInstance("bookings");
- assert bookings.getRowCount()==1;
- bookings.setRowIndex(0);
- Booking booking = (Booking) bookings.getRowData();
- assert booking.getHotel().getCity().equals("NY");
- assert booking.getUser().getUsername().equals("gavin");
- assert !Manager.instance().isLongRunningConversation();
- }
-
- }.run();
-
- new FacesRequest("/main.xhtml") {
-
- @Override
- protected void invokeApplication()
- {
- ListDataModel bookings = (ListDataModel) Contexts.getSessionContext().get("bookings");
- bookings.setRowIndex(0);
- invokeAction("#{bookingList.cancel}");
- }
-
- @Override
- protected void renderResponse()
- {
- ListDataModel bookings = (ListDataModel) Contexts.getSessionContext().get("bookings");
- assert bookings.getRowCount()==0;
- assert !Manager.instance().isLongRunningConversation();
- }
-
- }.run();
-
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/ChangePasswordTest.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/ChangePasswordTest.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/ChangePasswordTest.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,159 +0,0 @@
-//$Id: ChangePasswordTest.java 5810 2007-07-16 06:46:47Z gavin $
-package org.jboss.seam.example.booking.test;
-
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.asset.Asset;
-import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.container.test.api.OverProtocol;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.seam.contexts.Contexts;
-import org.jboss.seam.core.Manager;
-import org.jboss.seam.example.booking.User;
-import org.jboss.seam.mock.JUnitSeamTest;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
- at RunWith(Arquillian.class)
-public class ChangePasswordTest extends JUnitSeamTest
-{
- @Deployment(name="ChangePasswordTest")
- @OverProtocol("Servlet 3.0")
- public static Archive<?> createDeployment()
- {
- EnterpriseArchive er = Deployments.bookingDeployment();
- WebArchive web = er.getAsType(WebArchive.class, "booking-web.war");
-
- web.addClasses(ChangePasswordTest.class);
-
- return er;
- }
-
- @Test
- public void testChangePassword() throws Exception
- {
-
- new FacesRequest() {
-
- @Override
- protected void invokeApplication() throws Exception
- {
- Contexts.getSessionContext().set("user", new User("Gavin King", "foobar", "gavin"));
- setValue("#{identity.username}", "gavin");
- setValue("#{identity.password}", "foobar");
- invokeMethod("#{identity.login}");
- }
-
- }.run();
-
- new FacesRequest() {
-
- @Override
- protected void processValidations() throws Exception
- {
- validateValue("#{user.password}", "xxx");
- assert isValidationFailure();
- }
-
- @Override
- protected void renderResponse()
- {
- assert getValue("#{user.name}").equals("Gavin King");
- assert getValue("#{user.username}").equals("gavin");
- assert getValue("#{user.password}").equals("foobar");
- assert !Manager.instance().isLongRunningConversation();
- assert getValue("#{identity.loggedIn}").equals(true);
-
- }
-
- }.run();
-
- new FacesRequest() {
-
- @Override
- protected void updateModelValues() throws Exception
- {
- setValue("#{user.password}", "xxxyyy");
- setValue("#{changePassword.verify}", "xxyyyx");
- }
-
- @Override
- protected void invokeApplication()
- {
- assert invokeAction("#{changePassword.changePassword}")==null;
- }
-
- @Override
- protected void renderResponse()
- {
- assert getValue("#{user.name}").equals("Gavin King");
- assert getValue("#{user.username}").equals("gavin");
- assert getValue("#{user.password}").equals("foobar");
- assert !Manager.instance().isLongRunningConversation();
- assert getValue("#{identity.loggedIn}").equals(true);
- }
-
- }.run();
-
- new FacesRequest() {
-
- @Override
- protected void updateModelValues() throws Exception
- {
- setValue("#{user.password}", "xxxyyy");
- setValue("#{changePassword.verify}", "xxxyyy");
- }
-
- @Override
- protected void invokeApplication()
- {
- invokeMethod("#{changePassword.changePassword}");
- }
-
- @Override
- protected void renderResponse()
- {
- assert getValue("#{user.name}").equals("Gavin King");
- assert getValue("#{user.username}").equals("gavin");
- assert getValue("#{user.password}").equals("xxxyyy");
- assert !Manager.instance().isLongRunningConversation();
- assert getValue("#{identity.loggedIn}").equals(true);
-
- }
-
- }.run();
-
- new FacesRequest() {
-
- @Override
- protected void updateModelValues() throws Exception
- {
- assert getValue("#{user.password}").equals("xxxyyy");
- setValue("#{user.password}", "foobar");
- setValue("#{changePassword.verify}", "foobar");
- }
-
- @Override
- protected void invokeApplication()
- {
- invokeMethod("#{changePassword.changePassword}");
- }
-
- @Override
- protected void renderResponse()
- {
- assert getValue("#{user.name}").equals("Gavin King");
- assert getValue("#{user.username}").equals("gavin");
- assert getValue("#{user.password}").equals("foobar");
- assert !Manager.instance().isLongRunningConversation();
- assert getValue("#{identity.loggedIn}").equals(true);
-
- }
-
- }.run();
-
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/Deployments.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/Deployments.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/Deployments.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,22 +0,0 @@
-package org.jboss.seam.example.booking.test;
-
-import java.io.File;
-
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.jboss.shrinkwrap.api.spec.JavaArchive;
-import org.jboss.shrinkwrap.api.importer.ZipImporter;
-import org.jboss.seam.example.booking.Booking;
-
-import org.jboss.shrinkwrap.resolver.api.DependencyResolvers;
-import org.jboss.shrinkwrap.resolver.api.maven.MavenDependencyResolver;
-
-public class Deployments {
- public static EnterpriseArchive bookingDeployment() {
- return ShrinkWrap.create(ZipImporter.class, "seam-metawidget-booking.ear").importFrom(new File("../booking-ear/target/seam-metawidget-booking.ear"))
- .as(EnterpriseArchive.class);
- }
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/LoginTest.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/LoginTest.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/java/org/jboss/seam/example/booking/test/LoginTest.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,137 +0,0 @@
-//$Id: LoginTest.java 5810 2007-07-16 06:46:47Z gavin $
-package org.jboss.seam.example.booking.test;
-
-import org.jboss.shrinkwrap.api.asset.Asset;
-import org.jboss.shrinkwrap.api.Archive;
-import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
-import org.jboss.shrinkwrap.api.spec.WebArchive;
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.container.test.api.OverProtocol;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.seam.core.Manager;
-import org.jboss.seam.web.Session;
-import org.jboss.seam.mock.JUnitSeamTest;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
- at RunWith(Arquillian.class)
-public class LoginTest extends JUnitSeamTest
-{
- @Deployment(name="LoginTest")
- @OverProtocol("Servlet 3.0")
- public static Archive<?> createDeployment()
- {
- EnterpriseArchive er = Deployments.bookingDeployment();
- WebArchive web = er.getAsType(WebArchive.class, "booking-web.war");
-
- //
- web.addClasses(LoginTest.class);
-
- return er;
- }
-
- @Test
- public void testLoginComponent() throws Exception
- {
- new ComponentTest() {
-
- @Override
- protected void testComponents() throws Exception
- {
- assert getValue("#{identity.loggedIn}").equals(false);
- setValue("#{identity.username}", "gavin");
- setValue("#{identity.password}", "foobar");
- invokeMethod("#{identity.login}");
- assert getValue("#{user.name}").equals("Gavin King");
- assert getValue("#{user.username}").equals("gavin");
- assert getValue("#{user.password}").equals("foobar");
- assert getValue("#{identity.loggedIn}").equals(true);
- invokeMethod("#{identity.logout}");
- assert getValue("#{identity.loggedIn}").equals(false);
- setValue("#{identity.username}", "gavin");
- setValue("#{identity.password}", "tiger");
- invokeMethod("#{identity.login}");
- assert getValue("#{identity.loggedIn}").equals(false);
- }
-
- }.run();
- }
-
- @Test
- public void testLogin() throws Exception
- {
-
- new FacesRequest() {
-
- @Override
- protected void invokeApplication()
- {
- assert !isSessionInvalid();
- assert getValue("#{identity.loggedIn}").equals(false);
- }
-
- }.run();
-
- new FacesRequest() {
-
- @Override
- protected void updateModelValues() throws Exception
- {
- assert !isSessionInvalid();
- setValue("#{identity.username}", "gavin");
- setValue("#{identity.password}", "foobar");
- }
-
- @Override
- protected void invokeApplication()
- {
- invokeAction("#{identity.login}");
- }
-
- @Override
- protected void renderResponse()
- {
- assert getValue("#{user.name}").equals("Gavin King");
- assert getValue("#{user.username}").equals("gavin");
- assert getValue("#{user.password}").equals("foobar");
- assert !Manager.instance().isLongRunningConversation();
- assert getValue("#{identity.loggedIn}").equals(true);
- }
-
- }.run();
-
- new FacesRequest() {
-
- @Override
- protected void invokeApplication()
- {
- assert !isSessionInvalid();
- assert getValue("#{identity.loggedIn}").equals(true);
- }
-
- }.run();
-
- new FacesRequest() {
-
- @Override
- protected void invokeApplication()
- {
- assert !Manager.instance().isLongRunningConversation();
- assert !isSessionInvalid();
- invokeMethod("#{identity.logout}");
- assert Session.instance().isInvalid();
- }
-
- @Override
- protected void renderResponse()
- {
- assert getValue("#{identity.loggedIn}").equals(false);
- assert Session.instance().isInvalid();
- }
-
- }.run();
-
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources/metawidget-booking.properties
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources/metawidget-booking.properties 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources/metawidget-booking.properties 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,84 +0,0 @@
- #
- # JBoss, Home of Professional Open Source
- # Copyright 2008, Red Hat Middleware LLC, and individual contributors
- # by the @authors tag. See the copyright.txt in the distribution for a
- # full listing of individual contributors.
- #
- # This is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Lesser General Public License as
- # published by the Free Software Foundation; either version 2.1 of
- # the License, or (at your option) any later version.
- #
- # This software is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # Lesser General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public
- # License along with this software; if not, write to the Free
- # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- #
-HOME_PAGE /home.seam
-MAIN_PAGE /main.seam
-PAGE_TITLE JBoss Suites: Seam Framework
-LOGIN_USERNAME_FIELD id=login:username
-LOGIN_PASSWORD_FIELD id=login:password
-LOGIN_SUBMIT id=login:login
-LOGOUT id=logout
-PASSWORD_UPDATED_MESSAGE Password updated
-PASSWORD_REENTER_MESSAGE Re-enter new password
-PASSWORD_VALUE_REQUIRED_MESSAGE //span[text() = 'value is required']
-PASSWORD_LENGTH_MESSAGE size must be between
-PASSWORD_PASSWORD id=setpassword:PasswordDecorate:password
-PASSWORD_VERIFY id=setpassword:VerifyDecorate:verify
-PASSWORD_SUBMIT id=setpassword:change
-SETTINGS id=settings
-SEARCH_STRING_FIELD id=searchCriteria:searchString
-SEARCH_SUBMIT id=searchCriteria:findHotels
-NO_HOTELS_FOUND id=NoHotelsFoundMessage
-SEARCH_RESULT_TABLE xpath=//table[@id = 'hotels']/tbody
-SEARCH_RESULT_TABLE_FIRST_ROW_LINK id=hotels:0:viewHotel
-BOOKING_BOOK id=hotel:bookHotel
-BOOKING_CANCEL id=hotel:cancel
-HOTEL_BED_FIELD id=booking:bookingBeds
-HOTEL_BED_FIELD_SELECT_CRITERIA value=
-HOTEL_CHECKIN_DATE_FIELD id=booking:bookingCheckinDateInputDate
-HOTEL_CHECKIN_DATE_MESSAGE id=messages
-HOTEL_CHECKOUT_DATE_FIELD id=booking:bookingCheckoutDateInputDate
-HOTEL_CHECKOUT_DATE_MESSAGE id=messages
-HOTEL_SMOKING_1 id=booking:bookingSmoking:0
-HOTEL_SMOKING_2 id=booking:bookingSmoking:1
-HOTEL_CREDIT_CARD id=booking:bookingCreditCard
-HOTEL_CREDIT_CARD_NAME id=booking:bookingCreditCardName
-HOTEL_PROCEED id=booking:proceed
-HOTEL_CANCEL id=booking:cancel
-HOTEL_CONFIRM id=confirm:confirm
-HOTEL_MESSAGE xpath=//ul[@id='messages']/li
-REGISTRATION id=login:register
-REGISTRATION_USERNAME id=registration:usernameDecorate:username
-REGISTRATION_USERNAME_MESSAGE id=registration:usernameDecorate:message
-REGISTRATION_NAME id=registration:nameDecorate:name
-REGISTRATION_NAME_MESSAGE id=registration:nameDecorate:message
-REGISTRATION_PASSWORD id=registration:passwordDecorate:password
-REGISTRATION_PASSWORD_MESSAGE id=registration:passwordDecorate:message
-REGISTRATION_VERIFY id=registration:verifyDecorate:verify
-REGISTRATION_VERIFY_MESSAGE id=registration:verifyDecorate:message
-REGISTRATION_SUBMIT id=registration:register
-REGISTRATION_REENTER_MESSAGE Re-enter your password
-REGISTRATION_LENGTH_MESSAGE size must be between
-REGISTRATION_SUCCESSFUL_MESSAGE Successfully registered as {0}
-REGISTRATION_USER_EXISTS_MESSAGE Username {0} already exists
-NOT_LOGGED_IN_MESSAGE Please log in first
-CONVERSATION_TIMEOUT_MESSAGE The conversation ended, timed out or was processing another request
-BOOKING_TABLE_ITEM xpath\=//table[@id\="bookings\:bookings"]/tbody/tr[normalize-space(td[6]/text()) \= "{0}"][normalize-space(td[1]/text()) \= "{1}"]
-BOOKING_TABLE_ITEM_LINK xpath\=//table[@id\="bookings\:bookings"]/tbody/tr[normalize-space(td[6]/text()) \= "{0}"][normalize-space(td[1]/text()) \= "{1}"]/td[7]/a
-BOOKING_CANCELLED_MESSAGE Booking cancelled for confirmation number {0}
-BOOKING_CONFIRMATION_MESSAGE Thank you, {0}, your confimation number for {1} is \\d+
-BOOKING_INVALID_DATE_MESSAGE1 Check out date must be later than check in date
-BOOKING_INVALID_DATE_MESSAGE2 Check in date must be a future date
-WORKSPACE_BOOKING_TEXT Book hotel: {0}
-WORKSPACE_VIEW_TEXT View hotel: {0}
-WORKSPACE_TABLE_LINK_BY_ID id=ConversationListForm:ConversationListDataTable:{0}:EntryDescriptionLink
-WORKSPACE_TABLE_ROW_COUNT = //table[@id='ConversationListForm:ConversationListDataTable']/tbody/tr
-SPINNER id\=searchCriteria\:SpinnerGif
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng-cluster.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng-cluster.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng-cluster.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,26 +0,0 @@
-<!--
- JBoss, Home of Professional Open Source Copyright 2008, Red Hat
- Middleware LLC, and individual contributors by the @authors tag. See
- the copyright.txt in the distribution for a full listing of individual
- contributors. This is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version. This software is
- distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details. You should have received a copy of the GNU
- Lesser General Public License along with this software; if not, write
- to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
-<suite name="Metawidget Booking example" verbose="2" parallel="false">
- <test name="booking_tests_cluster">
- <parameter name="PROPERTY_FILE"
- value="/metawidget-booking.properties" />
- <classes>
- <class name="org.jboss.seam.example.common.test.booking.cluster.selenium.FailoverTest" />
- </classes>
- </test>
-</suite>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-ftest/testng.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,30 +0,0 @@
-<!--
- JBoss, Home of Professional Open Source Copyright 2008, Red Hat
- Middleware LLC, and individual contributors by the @authors tag. See
- the copyright.txt in the distribution for a full listing of individual
- contributors. This is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version. This software is
- distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details. You should have received a copy of the GNU
- Lesser General Public License along with this software; if not, write
- to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
-<suite name="Metawidget Booking example" verbose="2" parallel="false">
- <test name="metawidget_booking_tests">
- <parameter name="PROPERTY_FILE"
- value="/metawidget-booking.properties" />
- <classes>
- <class name="org.jboss.seam.example.common.test.booking.selenium.RegistrationTest" />
- <class name="org.jboss.seam.example.common.test.booking.selenium.ChangePasswordTest" />
- <class name="org.jboss.seam.example.common.test.booking.selenium.BackButtonTest" />
- <class name="org.jboss.seam.example.common.test.booking.selenium.SimpleBookingTest" />
- <class name="org.jboss.seam.example.common.test.booking.selenium.ConversationTest" />
- </classes>
- </test>
-</suite>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-integration/arquillian.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-integration/arquillian.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-tests/src/test/resources-integration/arquillian.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://jboss.org/schema/arquillian"
- xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
-
- <engine>
- <property name="deploymentExportPath">target/</property>
- </engine>
-
- <container qualifier="jboss" default="true">
- <configuration>
- <property name="javaVmArguments">-Xmx1024m -XX:MaxPermSize=512m</property>
- <property name="jbossHome">target/jboss-as-${version.jbossas7}</property>
- </configuration>
- </container>
-
-</arquillian>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,235 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>booking</artifactId>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-web</artifactId>
- <packaging>war</packaging>
- <name>Metawidget Booking Web Module (EE6)</name>
-
- <properties>
- <!-- filtering property for components.xml -->
- <jndiPattern>java:app/booking-ejb/#{ejbName}</jndiPattern>
- <distributable>false</distributable>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <type>ejb</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <type>ejb</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-ui</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-jul</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-debug</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <exclusions>
- <exclusion>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>richfaces-components-ui</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-impl</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-api</artifactId>
- </dependency>
-
- <!-- metawidget -->
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-annotation</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules.faces</groupId>
- <artifactId>metawidget-facesannotation</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules.faces</groupId>
- <artifactId>metawidget-faces</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules.faces</groupId>
- <artifactId>metawidget-richfaces</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-jpa</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-beanvalidation</artifactId>
- <version>2.1</version>
- </dependency>
- </dependencies>
-
- <build>
- <finalName>booking-web</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <webResources>
- <resource>
- <directory>src/main/webapp</directory>
- <filtering>true</filtering>
- </resource>
- <resource>
- <directory>src/metawidget/webapp</directory>
- <filtering>true</filtering>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>cluster</id>
- <properties>
- <distributable>true</distributable>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <webResources>
- <resource>
- <directory>src/main/webapp</directory>
- <filtering>true</filtering>
- <excludes>
- <exclude>**/web.xml</exclude>
- </excludes>
- </resource>
- <resource>
- <directory>src/metawidget/webapp</directory>
- <filtering>true</filtering>
- </resource>
- <resource>
- <directory>src/main/webapp-cluster</directory>
- <filtering>true</filtering>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>tomcat</id>
- <properties>
- <!-- filtering property for components.xml -->
- <jndiPattern>#{ejbName}/local</jndiPattern>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <type>ejb</type>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <type>ejb</type>
- <scope>compile</scope>
- <exclusions>
- <exclusion>
- <groupId>com.thoughtworks.xstream</groupId>
- <artifactId>xstream</artifactId>
- </exclusion>
- <exclusion>
- <groupId>xpp3</groupId>
- <artifactId>xpp3_min</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <scope>compile</scope>
- </dependency>
- </dependencies>
- <build>
- <finalName>jboss-seam-metawidget-booking</finalName>
- <plugins>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>validate</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${basedir}/target/classes</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}/../booking-ear/src/main/resources</directory>
- <includes>
- <include>jboss-seam-booking-ds.xml</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/resources/messages.properties
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/resources/messages.properties 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/resources/messages.properties 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,50 +0,0 @@
-javax.faces.component.UIInput.CONVERSION=value could not be converted to the expected type
-javax.faces.component.UIInput.REQUIRED=value is required
-javax.faces.component.UIInput.REQUIRED_detail=value is required
-javax.faces.component.UIInput.UPDATE=an error occurred when processing your submitted information
-javax.faces.component.UISelectOne.INVALID=value is not valid
-javax.faces.component.UISelectMany.INVALID=value is not valid
-
-javax.faces.converter.BigDecimalConverter.DECIMAL=value must be a number
-javax.faces.converter.BigDecimalConverter.DECIMAL_detail=value must be a signed decimal number consisting of zero or more digits, optionally followed by a decimal point and fraction, eg. {1}
-javax.faces.converter.BigIntegerConverter.BIGINTEGER=value must be a number
-javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=value must be a signed integer number consisting of zero or more digits
-javax.faces.converter.BooleanConverter.BOOLEAN=value must be true or false
-javax.faces.converter.BooleanConverter.BOOLEAN_detail=value must be true or false (any value other than true will evaluate to false)
-javax.faces.converter.ByteConverter.BYTE=value must be a number between 0 and 255
-javax.faces.converter.ByteConverter.BYTE_detail=value must be a number between 0 and 255
-javax.faces.converter.CharacterConverter.CHARACTER=value must be a character
-javax.faces.converter.CharacterConverter.CHARACTER_detail=value must be a valid ASCII character
-javax.faces.convert.DateTimeConverter.CONVERSION value must be a datetime
-javax.faces.convert.DateTimeConverter.CONVERSION_detail value must be a datetime
-javax.faces.converter.DateTimeConverter.DATE=value must be a date
-javax.faces.converter.DateTimeConverter.DATE_detail=value must be a date, eg. {1}
-javax.faces.converter.DateTimeConverter.TIME=value must be a time
-javax.faces.converter.DateTimeConverter.TIME_detail=value must be a time, eg. {1}
-javax.faces.converter.DateTimeConverter.DATETIME=value must be a date and time
-javax.faces.converter.DateTimeConverter.DATETIME_detail=value must be a date and time, eg. {1}
-javax.faces.converter.DateTimeConverter.PATTERN_TYPE=a pattern or type attribute must be specified to convert the value
-javax.faces.converter.DoubleConverter.DOUBLE=value must be a number
-javax.faces.converter.DoubleConverter.DOUBLE_detail=value must be a number between 4.9E-324 and 1.7976931348623157E308
-javax.faces.converter.EnumConverter.ENUM=value must be convertible to an enum
-javax.faces.converter.EnumConverter.ENUM_detail=value must be convertible to an enum or from the enum that contains the constant {1}
-javax.faces.converter.EnumConverter.ENUM_NO_CLASS=value must be convertible to an enum or from the enum, but no enum class provided
-javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=value must be convertible to an enum or from the enum, but no enum class provided
-javax.faces.converter.FloatConverter.FLOAT=value must be a number
-javax.faces.converter.FloatConverter.FLOAT_detail=value must be a number between 1.4E-45 and 3.4028235E38
-javax.faces.converter.IntegerConverter.INTEGER=value must be a number
-javax.faces.converter.IntegerConverter.INTEGER_detail=value must be a number between -2147483648 and 2147483647
-javax.faces.converter.LongConverter.LONG=value must be a number
-javax.faces.converter.LongConverter.LONG_detail=must be a number between -9223372036854775808 and 9223372036854775807
-javax.faces.converter.NumberConverter.CURRENCY=value must be a currency amount
-javax.faces.converter.NumberConverter.CURRENCY_detail=value must be a currency amount, eg. {1}
-javax.faces.converter.NumberConverter.PERCENT=value must be a percentage amount
-javax.faces.converter.NumberConverter.PERCENT_detail=value must be a percentage amount, eg. {1}
-javax.faces.converter.NumberConverter.NUMBER=value must be a number
-javax.faces.converter.NumberConverter.NUMBER_detail=value must be a number
-javax.faces.converter.NumberConverter.PATTERN=value must be a number
-javax.faces.converter.NumberConverter.PATTERN_detail=value must be a number
-javax.faces.converter.ShortConverter.SHORT=value must be a number
-javax.faces.converter.ShortConverter.SHORT_detail=value must be a number between -32768 and 32767
-
-
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/components.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/components.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/components.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<components xmlns="http://jboss.com/products/seam/components"
- xmlns:core="http://jboss.com/products/seam/core"
- xmlns:security="http://jboss.com/products/seam/security"
- xmlns:transaction="http://jboss.com/products/seam/transaction"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation=
- "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.3.xsd
- http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.3.xsd
- http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.3.xsd
- http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.3.xsd">
-
- <core:init jndi-pattern="@jndiPattern@" debug="true" distributable="@distributable@"/>
-
- <core:manager conversation-timeout="120000"
- concurrent-request-timeout="500"
- conversation-id-parameter="cid"/>
-
- <transaction:ejb-transaction/>
-
- <security:identity authenticate-method="#{authenticator.authenticate}"/>
-
- <component class="org.jboss.seam.transaction.EjbSynchronizations" jndi-name="java:app/jboss-seam/EjbSynchronizations"/>
- <component class="org.jboss.seam.async.TimerServiceDispatcher" jndi-name="java:app/jboss-seam/TimerServiceDispatcher"/>
-
-</components>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/faces-config.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/faces-config.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,7 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<faces-config version="2.1"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">
-
-</faces-config>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/pages.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/pages.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/pages.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,119 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<pages xmlns="http://jboss.com/products/seam/pages"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.3.xsd"
-
- no-conversation-view-id="/main.xhtml"
- login-view-id="/home.xhtml">
-
- <page view-id="/register.xhtml">
-
- <action if="#{validation.failed}" execute="#{register.invalid}"/>
-
- <navigation>
- <rule if="#{register.registered}">
- <redirect view-id="/home.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/home.xhtml" action="#{identity.isLoggedIn}">
-
- <navigation from-action="#{identity.isLoggedIn}">
- <rule if-outcome="true">
- <redirect view-id="/main.xhtml"/>
- </rule>
- <rule if-outcome="false">
- <render view-id="/home.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/password.xhtml"
- login-required="true">
-
- <navigation>
- <rule if="#{identity.loggedIn and changePassword.changed}">
- <redirect view-id="/main.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/main.xhtml"
- login-required="true">
-
- <navigation from-action="#{hotelBooking.selectHotel(hot)}">
- <redirect view-id="/hotel.xhtml"/>
- </navigation>
-
- <navigation from-action="#{bookingList.cancel}">
- <redirect/>
- </navigation>
-
- </page>
-
- <page view-id="/hotel.xhtml"
- conversation-required="true"
- login-required="true">
-
- <description>View hotel: #{hotel.name}</description>
-
- <navigation from-action="#{hotelBooking.bookHotel}">
- <redirect view-id="/book.xhtml"/>
- </navigation>
-
- </page>
-
- <page view-id="/book.xhtml"
- conversation-required="true"
- login-required="true">
-
- <description>Book hotel: #{hotel.name}</description>
-
- <navigation from-action="#{hotelBooking.setBookingDetails}">
- <rule if="#{hotelBooking.bookingValid}">
- <redirect view-id="/confirm.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/confirm.xhtml"
- conversation-required="true"
- login-required="true">
-
- <description>Confirm booking: #{booking.description}</description>
-
- <navigation from-action="#{hotelBooking.confirm}">
- <redirect view-id="/main.xhtml"/>
- </navigation>
-
- </page>
-
- <page view-id="*">
- <navigation from-action="#{identity.logout}">
- <redirect view-id="/home.xhtml"/>
- </navigation>
-
- <navigation from-action="#{hotelBooking.cancel}">
- <redirect view-id="/main.xhtml"/>
- </navigation>
-
- </page>
-
- <exception class="org.jboss.seam.security.NotLoggedInException">
- <redirect view-id="/home.xhtml">
- <message severity="warn">You must be logged in to use this feature</message>
- </redirect>
- </exception>
-
- <exception class="javax.faces.application.ViewExpiredException">
- <redirect view-id="/home.xhtml">
- <message severity="warn">Session expired, please log in again</message>
- </redirect>
- </exception>
-
-</pages>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/web.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/WEB-INF/web.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app version="3.0"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
-
- <display-name>Seam Metawidget Booking Example</display-name>
-
- <!-- Seam -->
-
- <listener>
- <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
- </listener>
-
- <servlet>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <url-pattern>/seam/resource/*</url-pattern>
- </servlet-mapping>
-
- <filter>
- <filter-name>Seam Filter</filter-name>
- <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
- </filter>
-
- <filter-mapping>
- <filter-name>Seam Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
- <!-- JSF -->
-
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
-
- <context-param>
- <param-name>org.richfaces.enableControlSkinning</param-name>
- <param-value>false</param-value>
- </context-param>
-
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.seam</url-pattern>
- </servlet-mapping>
-
- <session-config>
- <session-timeout>10</session-timeout>
- </session-config>
-
-</web-app>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/conversations.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/conversations.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/conversations.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,36 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:s="http://jboss.org/schema/seam/taglib">
- <div>
-
- <div class="section">
- <h1><h:outputText rendered="#{not empty conversationList}" value="Workspaces"/></h1>
- </div>
-
- <div class="section">
- <h:form id="ConversationListForm">
- <h:dataTable id="ConversationListDataTable" value="#{conversationList}" var="entry">
- <h:column id="column1">
- <h:commandLink id="EntryDescriptionLink" action="#{entry.select}" value="#{entry.description}"/>
-  
- <h:outputText id="CurrentEntry" value="[current]" rendered="#{entry.current}"/>
- </h:column>
- <h:column id="column2">
- <h:outputText id="EntryStartDateTime" value="#{entry.startDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
- -
- <h:outputText id="EntryLastDateTime" value="#{entry.lastDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
- </h:column>
- </h:dataTable>
- </h:form>
- </div>
-
- </div>
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/screen.css
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/screen.css 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/screen.css 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,280 +0,0 @@
-/* Setup defaults since variable in browsers
------------------------------------------------ */
-body, div, span, dd, dt, dl, img, ul, ol, li, p, h1, h2, h3, h4, h5, form, hr, fieldset {
- margin: 0;
- padding: 0;
-}
-/* Element Defaults
------------------------------------------------ */
-html {
- height: 100%;
- background-color: #DBD4C6;
-}
-img {
- border: 0;
-}
-body {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: small;
- line-height: 1.25em;
- color: #362F2D;
- position: relative;
- width: 760px;
- height: 100%;
- margin-left: auto;
- margin-right: auto;
-}
-.label {
- font-weight: bold;
- color: #5E5147;
-}
-input {
- border: 1px solid #C3BBB6;
- padding: 4px;
- margin: 5px 0;
- background: #fff url(../img/input.bg.gif) 0 0 repeat-x;
-}
-select {
- border: 1px solid #C3BBB6;
- padding: 4px;
- margin: 5px 0;
- background: #fff url(../img/input.bg.gif) 0 0 repeat-x;
-}
-ol, ul {
- margin: 10px 0px 10px 6px;
-}
-li {
- margin: 10px 12px;
-}
-fieldset {
- border: 0;
-}
-/* Layout
------------------------------------------------ */
-#document {
- padding: 0 1px;
- background: #fff url(../img/bg.gif) 0 0 repeat-y;
- float: left;
- border-bottom: 1px solid #C3BBB6;
-}
-#header {
- float: left;
- width: 758px;
- height: 46px;
- background: url(../img/hdr.bg.gif) 0 0 repeat-x;
-}
-#container {
- float: left;
- width: 758px;
- background: url(../img/hdr.bar.jpg) 0 0 repeat-x;
-}
-#sidebar {
- float: left;
- width: 190px;
- margin-top: 96px;
- padding: 20px 10px 0 10px;
- background: url(../img/sdb.bg.gif) 0 0 no-repeat;
-}
-#content {
- float: left;
- width: 548px;
- margin-top: 75px;
- padding-top: 5px;
- background: #fff url(../img/cnt.bg.gif) 0 0 repeat-x;
-}
-#footer {
- clear: both;
- margin-top: 40px;
- float: left;
- padding: 20px;
- border-top: 1px solid #C3BBB6;
- background-color: #fff;
- width: 718px;
- text-align: right;
-}
-/* General
------------------------------------------------ */
-input[type="submit"], input[type="button"] {
- font-weight: bold;
- color: #fff;
- border: 1px solid #5D1414;
- height: 26px;
- background: #fff url(../img/btn.bg.gif) 0 0 repeat-x;
- border-style: none;
-}
-.center {
- text-align: center;
-}
-.entry {
- clear: both;
- padding-top: 10px;
-}
-.entry .label {
- float: left;
- padding-right: 5px;
- font-weight: bold;
- width: 150px;
- text-align: right;
-}
-.entry .output {
- float: right;
- width: 360px;
- padding-top: 10px;
- text-align: left;
-}
-.entry .input {
- float: right;
- width: 360px;
- text-align: left;
-}
-.entry .error {
- float: right;
- width: 360px;
- text-align: left;
-}
-/* Sidebar
------------------------------------------------ */
-.notes {
- text-align: center;
- font-size: small;
-}
-.subnotes {
- margin-top: 1em;
- font-size: small;
-}
-.errors {
- font-size: small;
- font-weight: bold;
- text-align: center;
- color: #600;
-}
-.errors div {
- text-align: left;
-}
-.errors span {
- text-align: left;
-}
-.errors input {
- border: 1px solid #600;
-}
-.errors ul {
- list-style: none;
-}
-.buttonBox {
- text-align: center;
- padding: 5px 0;
- clear: both;
-}
-#sidebar p {
- font-size: small;
- color: #8B7869;
- line-height: 150%;
- padding-bottom: 10px;
-}
-#sidebar li {
- font-size: small;
- color: #8B7869;
-}
-#sidebar h1 {
- line-height: normal;
- font-weight: bold;
- font-size: small;
-}
-/*
-#sidebar p:hover {
- color: #362F2D;
-}
-*/
-/* Content
------------------------------------------------ */
-#content .section {
- float: left;
- width: 518px;
- padding: 15px 15px 0 15px;
-}
-#content .section h1 {
- font-family: "Trebuchet MS", Arial, sans-serif;
- line-height: normal;
- font-weight: normal;
- font-size: large;
-}
-#content .section p {
- line-height: 150%;
- padding: 10px 0;
- font-size: small;
-}
-#content table {
- width: 100%;
- border: 1px solid #D2C9C4;
- border-collapse: collapse;
-}
-#content table caption {
- padding-bottom: 6px;
- text-align: left;
- font-weight: bold;
-}
-#content table thead th {
- border-left: 1px solid #D2C9C4;
- background: #fff url(../img/th.bg.gif) 0 100% repeat-x;
- border-bottom: 1px solid #D2C9C4;
- padding: 6px;
- text-align: left;
- font-size: small;
-}
-#content table tbody td {
- border-left: 1px solid #E4DBD5;
- padding: 4px;
- border-bottom: 1px solid #D2C9C4;
- font-size: small;
-}
-#content dt {
- font-weight: bold;
- float: left;
- width: 33%;
-}
-#content dd {
- padding-left: 10px;
- float: left;
- width: 66%;
-}
-#content table.radio {
- border: 0px;
-}
-#content .input table,
-#content .input tbody tr td,
-#content table.radio tbody tr td {
- border: 0px;
- border-left: 0px;
- border-bottom: 0px;
-}
-/* Header
------------------------------------------------ */
-#title {
- float: left;
- padding: 1px 0 6px 15px;
-}
-#status {
- color: #C7B299;
- float: right;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-weight: bold;
- font-size: x-small;
- text-align: right;
- padding-top: 14px;
- padding-right: 15px;
-}
-#status a {
- color: #C7B299;
- text-decoration: none;
-}
-/* Homepage Modifications
------------------------------------------------ */
-#pgHome #container {
- background: url(../img/hdr.ad.jpg) 0 0 repeat-x;
-}
-#pgHome #sidebar {
- margin-top: 207px;
-}
-#pgHome #content {
- margin-top: 183px;
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/trailblazer_main.css
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/trailblazer_main.css 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/css/trailblazer_main.css 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,148 +0,0 @@
-* {
- margin: 0px;
- padding: 0px;
- border: none;
-}
-
-body {
- font: 1em verdana, arial, sans-serif;
- background: #CCCCCC;
-}
-
-div#main {
- margin-left: 0px;
- width: 751px;
- background: #ecefdf;
-}
-
-div#top,div#pictures{
-}
-
-div#pictures img {
- float:left;
-}
-
-img#head1 {
- margin-right: 3px;
-}
-
-img#head2 {
- margin-right: 4px;
-}
-
-div.trail {
- clear:both;
- margin-left: 50px;
- margin-top: 0px;
- margin-right: 50px
-}
-
-div.foot {
- margin-left: 50px;
- margin-right: 50px;
- margin-top: 50px;
- text-align: center;
- font-size: .5em;
- height: 36px;
-}
-
-div.trail h1 {
- margin-top: -30px;
- margin-left: -50px;
- font-size: 1.2em;
- font-weight: bold;
- padding-left: .4em;
-}
-
-div.trail h2 {
- float: left;
- font-size: 1em;
- font-weight: bold;
- padding-left: .4em;
-}
-
-div.trail h3 {
- float: left;
- font-size: .8em;
- font-weight: bold;
- margin-left: -1.4em;
- margin-bottom: 1em;
-}
-
-
-div.trail p {
- clear: both;
- margin-top: 20px;
- font-size: .8em;
- text-decoration: none;
-}
-
-div#next_trail {
- margin-left: 36px;
-}
-
-div.numbox {
- border: thin solid black;
- margin-left: -.8em;
- float: left;
- background: #ffffff;
- padding: .2em .35em .3em;
- font-style: normal;
- font-weight: bold;
- font-size: 1.4em;
-}
-
-div.figure {
- text-align: center;
- font-size: .6em;
- margin-top: 30px;
-}
-
-div.figure img {
- display: block;
- margin-right: auto;
- margin-left: auto;
-}
-
-code {
- font: 1.1em "Courier New", Courier, mono;
-}
-
-code.block {
- white-space: pre;
- font: 10pt "Courier New", Courier, mono;
- display: block;
- border-style: dashed;
- border-width: thin;
- padding: .5em;
- background: #ffffff;
- margin: 20px;
-}
-
-div.foot_image {
- float: left;
- height: 86px;
-}
-
-a:active {
- color : #666666;
- text-decoration: none;
-}
-
-a:hover {
- color : #000000;
- background-color : #D6E0FE;
- text-decoration: none;
-}
-
-a:link {
- color : #005EB6;
- text-decoration: none;
-}
-
-a:visited {
- color : #888888;
- text-decoration: none;
-}
-
-
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/display.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/display.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/display.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,16 +0,0 @@
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib">
-
- <div class="entry">
- <span class="label">
- <ui:insert name="label"/>
- </span>
- <span class="input">
- <ui:insert/>
- </span>
- </div>
-
-</ui:composition>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/edit.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/edit.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/edit.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,21 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib">
-
- <div class="entry">
- <s:label id="Label" styleClass="label #{invalid?'errors':''}">
- <ui:insert name="label"/>
- <s:span id="RequiredStyle" styleClass="required" rendered="#{required}">*</s:span>
- </s:label>
- <span class="input #{invalid?'errors':''}">
- <s:validateAll id="ValidateAll">
- <ui:insert/>
- </s:validateAll>
- </span>
- <s:message id="message" styleClass="error errors"/>
- </div>
-
-</ui:composition>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/bookingExp.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/bookingExp.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/bookingExp.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,161 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>In-depth Explanation</title>
- <link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<div id="main">
- <div class="trail">
- <div class="numbox">5</div>
- <h2>Conversations</h2>
- <img src="../img/header_line.gif" />
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- <p>
- The hotel booking "wizard" is implemented by a conversation-scoped
- stateful session bean. All Seam components are in the
- conversation scope by default.
- The <code>HotelBookingAction</code> maintains
- state associated with the booking process in the Seam conversation
- scope. This ensures that if the user is working in multiple brower
- tabs or multiple brower windows, the various conversations are
- completely isolated from each other.
- </p>
- <p>
- To see this working in practice, right click on the "View Hotel" button
- in the search screen and select "open in new tab" or "open in new window",
- and try working on multiple hotel bookings simultaneously.
- In the <a href="workspaceExp.html">next step</a>, we will discuss
- Seam's built-in components to manage multiple concurrent conversations.
- </p>
-
-<code class="block">
- at Stateful
- at Name("hotelBooking")
- at LoggedIn
-public class HotelBookingAction implements HotelBooking
-{
-
- @PersistenceContext(type=EXTENDED)
- private EntityManager em;
-
- @In
- private User user;
-
- @In(required=false) @Out
- private Hotel hotel;
-
- @In(required=false)
- @Out(required=false)
- private Booking booking;
-
- @In(create=true)
- private FacesMessages facesMessages;
-
- @In(create=true)
- private Events events;
-
- @In
- private HotelSearching hotelSearch;
-
- @Logger
- private Log log;
-
- private boolean bookingValid;
-
- @Begin
- public void selectHotel(Hotel selectedHotel)
- {
- hotel = em.merge(selectedHotel);
- }
-
- public void bookHotel()
- {
- booking = new Booking(hotel, user);
- Calendar calendar = Calendar.getInstance();
- booking.setCheckinDate( calendar.getTime() );
- calendar.add(Calendar.DAY_OF_MONTH, 1);
- booking.setCheckoutDate( calendar.getTime() );
- }
-
-
- public void setBookingDetails()
- {
- Calendar calendar = Calendar.getInstance();
- calendar.add(Calendar.DAY_OF_MONTH, -1);
- if ( booking.getCheckinDate().before( calendar.getTime() ) )
- {
- facesMessages.addToControl("checkinDate", "Check in date must be a future date");
- bookingValid=false;
- }
- else if ( !booking.getCheckinDate().before( booking.getCheckoutDate() ) )
- {
- facesMessages.addToControl("checkoutDate", "Check out date must be later than check in date");
- bookingValid=false;
- }
- else
- {
- bookingValid=true;
- }
- }
-
- public boolean isBookingValid()
- {
- return bookingValid;
- }
-
- @End
- public void confirm()
- {
- em.persist(booking);
- facesMessages.add("Thank you, #{user.name}, your confimation number for #{hotel.name} is #{booking.id}");
- log.info("New booking: #{booking.id} for #{user.username}");
- events.raiseTransactionSuccessEvent("bookingConfirmed");
- }
-
- @End
- public void cancel() {}
-
- @Remove
- public void destroy() {}
-}</code>
-
- <p>
- The conversation begins when the <code>@Begin</code> annotated
- <code>selectHotel()</code> is called, and ends when
- the <code>@End</code> annotated
- <code>confirm()</code> or <code>cancel()</code> is called. Between the
- <code>@Begin</code> and <code>@End</code> methods, the user can do
- any number of things with the application (i.e., invoke any
- event handler method or use the BACK button etc.) and the
- <code>hotelBooking</code> maintains its state throughout the process.
- When the <code>@End</code> method is called, Seam destroys this
- component and avoids any memory leak.
- </p>
-
- <p>
- However, none of the <code>HotelBookingAction</code> bean methods
- may be called outside of a long-running conversation.
- So if we try to use the
- back button after the end of the conversation, Seam will redirect to the main page, with an
- error message.
- </p>
-
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- </div>
-</div>
-
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/confirmExp.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/confirmExp.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/confirmExp.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,104 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>In-depth Explanation</title>
- <link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<div id="main">
- <div class="trail">
- <div class="numbox">7</div>
- <h2>Ending Conversations</h2>
- <img src="../img/header_line.gif" />
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- <p>
- The "Confirm" button is bound to the action method <code>confirm()</code>
- of <code>HotelBookingAction</code>.
- </p>
-
-<code class="block">
-<h:commandButton value="Confirm"
- action="#{hotelBooking.confirm}"
- id="confirm"/>
-</code>
-
- <p>
- The <code>confirm()</code> method is tagged with the <code>@End</code> annotation,
- which ends the long-running conversation and results in all state associated with
- the conversation being destroyed at the end of the request.
- Since the <code>pages.xml</code> file specifies a redirect for this action, the state
- will not be destroyed
- until <em>after the redirect completes</em>. Note that even the success message
- that we create using the built-in <code>facesMessages</code> component is transparently
- propagated across the redirect!
- </p>
-
-<code class="block">
- @End
- public void confirm()
- {
- if (booking==null || hotel==null) return "main";
- em.persist(booking);
- facesMessages.add("Thank you, #{user.name}, your confimation number " +
- "for #{hotel.name} is #{booking.id}");
- log.info("New booking: #{booking.id} for #{user.username}");
- events.raiseEvent("bookingConfirmed");
- }
-
- @End
- public void cancel() {}
-
- @Destroy @Remove
- public void destroy() {}
-}
-</code>
-
- <p>
- When the conversation state is finally destroyed, Seam calls the <code>@Destroy</code> method,
- which results in removal of the SFSB.
- </p>
-
- <p>
- Notice that the <code>HotelBookingAction.confirm()</code> method
- raises a <code>bookingConfirmed</code> event before it finishes. The
- event mechanism allows Seam components to communicate with each other
- without direct coupling. In this case, the <code>BookingListAction</code>
- component captures the <code>bookingConfirmed</code> event and refreshes
- the existing booking list for the current user.
- </p>
-
-<code class="block">
-public class BookingListAction implements BookingList, Serializable
-{
-
- ... ...
-
- @Factory
- @Observer("bookingConfirmed")
- public void getBookings()
- {
- bookings = em.createQuery("from Booking b where b.user.username = " +
- ":username order by b.checkinDate")
- .setParameter("username", user.getUsername())
- .getResultList();
- }
-}
-</code>
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- </div>
-</div>
-
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/introExp.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/introExp.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/introExp.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,73 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>In-depth Explanation</title>
- <link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<div id="main">
- <div class="trail">
- <div class="numbox">1</div>
- <h2>What is JBoss Seam</h2>
- <img src="../img/header_line.gif" />
-
- <p>
- <center>
- <form>
- <INPUT type="button" value="Close Window" onclick="window.close()">
- </form>
- </center>
- </p>
-
- <p>
- EJB 3.0 and JSF are perhaps the most exciting new developments in the Java EE 5 platform.
- Seam is an innovative new application framework that integrates the EJB 3.0 component model
- with JSF as a presentation tier. Seam builds upon the standard extension points provided by
- both specifications and provides a set of Java annotations that extends the standard
- annotations defined by the EJB specification. In addition, Seam introduces several innovative
- new ideas: managed conversations, declarative and contextual application state management,
- bijection and integrated business process management.
- </p>
-
- <p>
- Traditional web applications are incredibly vulnerable to bugs and performance problems
- relating to state management. Developers are forced to handle issues like back button
- navigation, multi-window browsing, session size management in an utterly ad-hoc fashion.
- Access to transactional components from the web tier has also been problematic. J2EE
- provided no way to have simultaneous access to state held in contexts associated with
- the web request, and state held in transactional resources accessed via EJB. Finally,
- J2EE had no first-class construct for representing state associated with a long-running
- business process. Seam tackles all these problems, and provides a uniform model for
- stateful components in Java EE 5.
- </p>
-
- <p>
- Like all JBoss software, this entire software stack is free. The full source code of this
- sample application is available in the <code>examples/booking</code> directory of the
- <a href="http://www.jboss.com/products/list/downloads#seam">Seam distribution</a>.
- <!--
- There is even a
- <a target="_blank" href="http://docs.jboss.com/TrailBlazer/seam-booking/Seam.htm">
- 10-minute flash demo
- </a>
- showing how to build a Seam web application from ground up.
- -->
- </p>
-
- <p>
- <center>
- <form>
- <INPUT type="button" value="Close Window" onclick="window.close()">
- </form>
- </center>
- </p>
-
- </div>
-</div>
-
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/loginExp.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/loginExp.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/loginExp.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,161 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>In-depth Explanation</title>
- <link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<div id="main">
- <div class="trail">
- <div class="numbox">2</div>
- <h2>What happens when you login?</h2>
- <img src="../img/header_line.gif" />
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- <p>
- The login page is defined using pure XHTML with JSF controls.
- The form uses JSF EL value binding and method binding
- expressions to refer to Seam components. For example,
- <code>#{identity.username}</code> refers to a property of the
- <code>Identity</code> component and <code>#{identity.login}</code>
- refers to a method of the <code>Identity</code> component.
- </p>
-
-<code class="block">
-<div>
- <h:outputLabel for="username">Login Name</h:outputLabel>
- <h:inputText id="username" value="#{identity.username}" />
-</div>
-<div>
- <h:outputLabel for="password">Password</h:outputLabel>
- <h:inputSecret id="password" value="#{identity.password}" />
-</div>
-
-... ...
-
-<div class="buttonBox">
- <h:commandButton id="login"
- action="#{identity.login}"
- value="Account Login" />
-</div>
-</code>
-
- <p>
- After logging in, the <code>User</code> enity bean is mapped to the Seam
- context variable named <code>user</code> bean via the
- <code>@Name</code> annotation. <code>User</code> is
- a session scoped bean, meaning that the <code>user</code>
- component value is retained for the entire session for
- each user. You might also notice there are validation annotation
- on the data properties. We will discuss those annotations in the
- <a href="registerExp.html">next step</a>.
- </p>
-
-<code class="block">
- at Entity
- at Name("user")
- at Scope(SESSION)
-public class User implements Serializable {
- private String username;
- private String password;
- private String name;
-
- @NotNull
- @Length(min=5, max=15)
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
-
-
- @Id
- @Length(min=4, max=15)
- @Pattern(regex="^\\w*$", message="not a valid username")
- public String getUsername () {
- return username;
- }
- public void setUsername (String username) {
- this.username = username;
- }
-
- // ... ...
-}
-</code>
-
- <p>
- Seam comes with its own Security framework, based on JAAS. It allows you
- to perform user authentication by configuring your own authentication method
- in <code>components.xml</code>.
- </p>
-
-<code class="block">
- <security:identity authenticate-method="#{authenticator.authenticate}"/>
-</code>
-
- <p>
- <code>AuthenticatorAction</code> is an EJB 3.0 session bean mapped
- to the Seam context variable named <code>authenticator</code>. When
- the login button is clicked, the JSF method binding
- <code>#{identity.login}</code> is evaluated, and based upon the previous configuration, the
- <code>authenticate()</code> method is invoked upon <code>AuthenticatorAction</code>.
- </p>
-
-<code class="block">
- at Stateless
- at Scope(EVENT)
- at Name("authenticator")
-public class AuthenticatorAction implements Authenticator
-{
- @PersistenceContext EntityManager em;
-
- @Out(required=false, scope = SESSION)
- private User user;
-
- public boolean authenticate()
- {
- List results = em.createQuery("select u from User u where" +
- " u.username=#{identity.username}" +
- " and u.password=#{identity.password}")
- .getResultList();
-
- if ( results.size()==0 )
- {
- return false;
- }
- else
- {
- user = (User) results.get(0);
- return true;
- }
- }
-}
-</code>
-
- <p>
- The <code>@Out</code>
- annotation indicates the <code>AuthenticatorAction</code> bean can change the
- value of the <code>user</code> context variable and make the new instance
- available to other session beans and JSF pages. The query expression
- makes use of a special syntax in Seam that allows EL expressions to
- serve as query parameters. This query references the <code>identity</code> component,
- a built-in Seam component that provides security functionality.
- </p>
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- </div>
-</div>
-
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/mainExp.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/mainExp.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/mainExp.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,214 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>In-depth Explanation</title>
- <link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<div id="main">
- <div class="trail">
- <div class="numbox">4</div>
- <h2>Stateful components</h2>
- <img src="../img/header_line.gif" />
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- <p>
- The hotel search page is backed by the a stateful session bean named
- <code>hotelSearch</code> and implemented by the class
- <code>HotelSearchingAction</code>.
- </p>
-
-<code class="block">
-<h:inputText id="searchString" value="#{hotelSearch.searchString}" >
- <a:support event="onkeyup" actionListener="#{hotelSearch.find}"
- reRender="searchResults"/>
-</h:inputText>
-
-<h:selectOneMenu value="#{hotelSearch.pageSize}" id="pageSize">
- <f:selectItem itemLabel="5" itemValue="5"/>
- <f:selectItem itemLabel="10" itemValue="10"/>
- <f::selectItem itemLabel="20" itemValue="20"/>
-</h:selectOneMenu>
-</code>
-
- <p>
- When the button is clicked, the form is submitted and JSF sets the value
- of the text box and drop down menu onto the <code>searchString</code> and
- <code>pageSize</code> attributes of <code>HotelSearchingAction</code>
- before calling the <code>find()</code> action listener method. We've used a
- session-scope stateful bean because we want it's state (the search results) to
- be held in the session between requests to the server. The <code><a:support></code>
- tax specfies that after a keypress, the contents of the <code><a:outputPanel></code> whose
- id is <code>searchResults</code> should be rerendererd. This is done through an AJAX-style
- call back to the server with no additional code required of the application.
- </p>
-
-<code class="block">
- at Stateful
- at Name("hotelSearch")
- at Scope(ScopeType.SESSION)
- at LoggedIn
-public class HotelSearchingAction implements HotelSearching
-{
- @PersistenceContext
- private EntityManager em;
-
- private String searchString;
- private int pageSize = 10;
- private int page;
-
- @DataModel
- private List<Hotel> hotels;
-
- public void find()
- {
- page = 0;
- queryHotels();
- }
- public void nextPage()
- {
- page++;
- queryHotels();
- }
-
- private void queryHotels()
- {
- hotels = em.createQuery("select h from Hotel h where lower(h.name) " +
- "like #{pattern} or lower(h.city) like #{pattern} " +
- "or lower(h.zip) like #{pattern} or " +
- "lower(h.address) like #{pattern}")
- .setMaxResults(pageSize)
- .setFirstResult( page * pageSize )
- .getResultList();
- }
-
- public boolean isNextPageAvailable()
- {
- return hotels!=null && hotels.size()==pageSize;
- }
-
- public int getPageSize() {
- return pageSize;
- }
-
- public void setPageSize(int pageSize) {
- this.pageSize = pageSize;
- }
-
- @Factory(value="pattern", scope=ScopeType.EVENT)
- public String getSearchPattern()
- {
- return searchString==null ?
- "%" : '%' + searchString.toLowerCase().replace('*', '%') + '%';
- }
-
- public String getSearchString()
- {
- return searchString;
- }
-
- public void setSearchString(String searchString)
- {
- this.searchString = searchString;
- }
-
- @Remove
- public void destroy() {}
-}</code>
-
- <p>
- The <code>find()</code> method retrieves a list of hotels from the database and
- initializes the <code>hotels</code> field. The <code>hotels</code> field is marked
- with the <code>@DataModel</code> annotation, so when the <code>find()</code> method
- returns, Seam outjects an instance of <code>ListDataModel</code> to a context
- variable named <code>hotels</code>. So, when the search page is re-rendered, the
- result list is available to the JSF <code>dataTable</code>.
- Each row of the data table has an associated command button or link
- (see below).
- </p>
-
-<code class="block">
-<h:outputText value="No Hotels Found"
- rendered="#{hotels != null and hotels.rowCount==0}"/>
-<h:dataTable value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
- <h:column>
- <f:facet name="header">Name</f:facet>
- #{hot.name}
- </h:column>
- <h:column>
- <f:facet name="header">Address</f:facet>
- #{hot.address}
- </h:column>
- <h:column>
- <f:facet name="header">City, State</f:facet>
- #{hot.city}, #{hot.state}
- </h:column>
- <h:column>
- <f:facet name="header">Zip</f:facet>
- #{hot.zip}
- </h:column>
- <h:column>
- <f:facet name="header">Action</f:facet>
- <s:link value="View Hotel"
- action="#{hotelBooking.selectHotel(hot)}"/>
- </h:column>
-</h:dataTable>
-</code>
-
- <p>
- The "View Hotel" link is the above mentioned command link associated
- with each row of the data table. It is implemented
- using a Seam <code><s:link></code>, which is part of Seam's
- extension of JSF controls.
- This JSF control let's us call an action, and pass a request parameter, without
- submitting any JSF form. The advantage of <code><s:link></code> is that,
- unlike a standard JSF <code><h:commandLink></code>, there is no JavaScript
- used, so "open link in new tab" works seamlessly.
- </p>
- <p>
- When this link is clicked, the <code>selectHotel()</code> method of the
- <code>HotelBookingAction</code> bean is called with the <code>hot</code>
- parameter that is specified in the query. The parameter values are evaluated
- at invocation time, not when the link is generated, so the <code><s:link></code>
- tag adds a dataModelSelection parameter that indicates the value of the
- <code>hot</code> loop variable for the given row.</p>
- <p> The <code>selectHotel()</code> method merges the selected hotel into
- the current persistence context (in case the same
- hotel has been accessed before in the same session),
- and starts a Seam conversation. We will discuss Seam conversations
- in the next step.
- </p>
-
-<code class="block">
- at Stateful
- at Name("hotelBooking")
- at LoggedIn
-public class HotelBookingAction implements HotelBooking
-{
-
- ... ...
-
- @Begin
- public void selectHotel(Hotel selectedHotel)
- {
- hotel = em.merge(selectedHotel);
- }
-}
-</code>
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- </div>
-</div>
-
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/registerExp.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/registerExp.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/registerExp.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,229 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>In-depth Explanation</title>
- <link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<div id="main">
- <div class="trail">
- <div class="numbox">3</div>
- <h2>What happens in the registration process?</h2>
- <img src="img/header_line.gif" />
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- <p>
- The register.xhtml JSF form captures the user input for new account
- registration. It validates the user input, binds the data to a
- Seam data component, and invokes a Seam UI event handler method
- when the form is submitted.
- </p>
-
-<code class="block">
-<s:validateAll>
-<div class="entry">
- <div class="label">
- <h:outputLabel for="username">Username:</h:outputLabel>
- </div>
- <div class="input">
- <h:inputText id="username" value="#{user.username}"/><br/>
- <span class="errors"><h:message for="username" /></span>
- </div>
-</div>
-<div class="entry">
- <div class="label">
- <h:outputLabel for="name">Real Name:</h:outputLabel>
- </div>
- <div class="input">
- <h:inputText id="name" value="#{user.name}" /><br/>
- <span class="errors"><h:message for="name" /></span>
- </div>
-</div>
-</s:validateAll>
-
-... ...
-
- <div class="input">
- <h:commandButton value="Register"
- action="#{register.register}"
- class="button"/>
- <h:commandButton value="Cancel" action="login" class="button"/>
- </div>
-</code>
-
- <p>
- The form fields are bound to properties of a Seam component named
- <code>user</code> via JSF EL value binding expressions such as
- <code>#{user.username}</code>. The form submit button is bound
- to the <code>register()</code> method of the Seam component named
- <code>register</code> using the JSF method binding expression
- <code>#{register.register}</code>.
- </p>
-
- <p>
- Notice that the input fields are enclosed by a <code><s:validateAll</code>
- tag. This tag is part of Seam's extension to JSF. It tells the Seam
- runtime to validate those input fields when the form is submitted.
- The validation conditions are specified on the entity bean classes
- those input fields map to (e.g., here the validation condition is
- on the <code>User</code> class, see later).
- This JSF form also includes <code><h:message></code> tags that
- will display the results of any JSF validation failures.
- </p>
-
- <p>
- The <code>User</code> class is an EJB 3.0 entity bean with a
- <code>@Name</code> annotation that binds the bean instance to a
- context variable named <code>user</code>. In addition to the standard
- EJB 3.0 O/R mapping metadata, this bean features several Hibernate
- Validator annotations such as
- <code>@NotNull</code>, <code>@Length</code>. Due to the
- <code><s:validateAll</code> tag in the form, these constraints are
- automatically validated by Seam when the form is submitted. If the user
- enters invalid data in the JSF form, the form will be redisplayed with
- error messages.
- </p>
-
-<code class="block">
- at Entity
- at Name("user")
- at Scope(SESSION)
-public class User implements Serializable
-{
- private String username;
- private String password;
- private String name;
-
- public User(String name, String password, String username)
- {
- this.name = name;
- this.password = password;
- this.username = username;
- }
-
- public User() {}
-
- @NotNull
- @Length(max=100)
- public String getName()
- {
- return name;
- }
- public void setName(String name)
- {
- this.name = name;
- }
-
- @NotNull
- @Length(min=5, max=15)
- public String getPassword()
- {
- return password;
- }
- public void setPassword(String password)
- {
- this.password = password;
- }
-
- @Id
- @Length(min=5, max=15)
- public String getUsername()
- {
- return username;
- }
- public void setUsername(String username)
- {
- this.username = username;
- }
-
-}</code>
-
- <p>
- <code>RegisterAction</code> is an EJB 3.0 stateful session bean
- bound to the Seam context variable named <code>register</code>.
- The <code>register()</code> method is invoked when the form is
- submitted.
- </p>
-
-<code class="block">
- at Stateful
- at Scope(EVENT)
- at Name("register")
-public class RegisterAction implements Register
-{
-
- @In
- private User user;
-
- @PersistenceContext
- private EntityManager em;
-
- @In(create=true)
- private transient FacesMessages facesMessages;
-
- private String verify;
-
- public String register()
- {
- if ( user.getPassword().equals(verify) )
- {
- List existing = em.createQuery("select username from User " +
- "where username=:username")
- .setParameter("username", user.getUsername())
- .getResultList();
- if (existing.size()==0)
- {
- em.persist(user);
- return "login";
- }
- else
- {
- facesMessages.add("username #{user.username} already exists");
- return null;
- }
- }
- else
- {
- facesMessages.add("re-enter your password");
- verify=null;
- return null;
- }
- }
-
- public String getVerify()
- {
- return verify;
- }
-
- public void setVerify(String verify)
- {
- this.verify = verify;
- }
-
- @Destroy @Remove
- public void destroy() {}
-}</code>
-
- <p>
- The <code>@In</code> annotations inject Seam components into the <code>RegisterAction</code>
- bean. The <code>user</code> component is our entity bean, of course. The <code>facesMessages</code>
- component is a built-in Seam component that makes it very easy to display templated and localized
- messages to the user, even when redirect after post is used.
- </p>
-
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
-
- </div>
-</div>
-
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/workspaceExp.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/workspaceExp.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/exp/workspaceExp.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,92 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>In-depth Explanation</title>
- <link href="../css/trailblazer_main.css" rel="stylesheet" type="text/css" />
-</head>
-
-<body>
-
-<div id="main">
- <div class="trail">
- <div class="numbox">6</div>
- <h2>The Workspace List</h2>
- <img src="../img/header_line.gif" />
-
- <p>
- <center>
- <form>
- <INPUT type="button" value="Close Window" onclick="window.close()">
- </form>
- </center>
- </p>
-
- <p>
- The workspace list allows the user to switch between multiple
- conversations from the same browser tab. There is no Java code
- to write, just the following JSF code to include:
- </p>
-
-<code class="block">
-<h:dataTable value="#{conversationList}" var="entry">
- <h:column>
- <h:commandLink action="#{entry.select}" value="#{entry.description}"/>
-
- <h:outputText value="[current]" rendered="#{entry.current}"/>
- </h:column>
- <h:column>
- <h:outputText value="#{entry.startDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
- -
- <h:outputText value="#{entry.lastDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
- </h:column>
-</h:dataTable>
-</code>
-
- <p>
- We do need to specify what text will be displayed by <code>#{entry.description}</code>.
- We do this by setting the <code>description</code> value for each page in <code>pages.xml</code>.
- </p>
-
-<code class="block">
-<pages>
- <!-- ... -->
- <page view-id="/hotel.xhtml"
- conversation-required="true"
- login-required="true">
-
- <description>View hotel: #{hotel.name}</description>
- <!-- ... -->
- </page>
-
- <page view-id="/book.xhtml"
- conversation-required="true"
- login-required="true">
-
- <description>Book hotel: #{hotel.name}</description>
- <!-- ... -->
- </page>
-<pages>
-</code>
-
- <p>
- Note that you don't need the <code>pages.xml</code> file if you don't want the
- workspace list in your application.
- </p>
-
- <p>
- <form>
- <input type="button" value="Close Window" onclick="window.close()"/>
- </form>
- </p>
-
- </div>
-</div>
-
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/home.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/home.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/home.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,81 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib">
-<h:head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>JBoss Suites: Seam Framework</title>
- <link href="css/screen.css" rel="stylesheet" type="text/css" />
-</h:head>
-<body id="pgHome">
-<f:view>
-<div id="document">
- <div id="header">
- <div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
- </div>
- <div id="container">
- <div id="sidebar">
- <h:form id="login">
- <fieldset>
- <div>
- <h:outputLabel id="UsernameLabel" for="username">Login Name</h:outputLabel>
- <h:inputText id="username" value="#{identity.username}" style="width: 175px;"/>
- <div class="errors"><h:message id="UsernameMessage" for="username"/></div>
- </div>
- <div>
- <h:outputLabel id="PasswordLabel" for="password">Password</h:outputLabel>
- <h:inputSecret id="password" value="#{identity.password}" style="width: 175px;"/>
- </div>
- <div class="errors"><h:messages id="messages" globalOnly="true"/></div>
- <div class="buttonBox"><h:commandButton id="login" action="#{identity.quietLogin}" value="Account Login"/></div>
- <div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
- <div class="subnotes">
- Or use a demo account:
- <ul>
- <li>gavin/foobar</li>
- <li>demo/demo</li>
- </ul>
- </div>
- </fieldset>
- </h:form>
- </div>
- <div id="content">
- <div class="section">
-
- <h1>About this example application</h1>
-
- <p>
- This sample application demonstrates how easy it is to develop stateful web
- applications using JBoss Seam. Just register, login, and book a room to see
- Seam in action. Throughout the application you'll see popup links like
- the ones at the bottom of this page. Click them to see how the application
- works under the hood.
- </p>
-
- <p>
- Note: Please do NOT enter personal information or your credit card number in
- this sample application.
- </p>
-
- <p>
- <a href="#" onclick="window.open('exp/introExp.html','exp','width=752,height=500,scrollbars=yes');">
- What is JBoss Seam?
- </a>
- </p>
-
- <p>
- <a href="#" onclick="window.open('exp/loginExp.html','exp','width=752,height=500,scrollbars=yes');">
- What happens when I login?
- </a>
- </p>
-
- </div>
- </div>
- </div>
- <div id="footer">Created with JBoss EJB 3.0, Seam, JSF (Mojarra), and Facelets</div>
-</div>
-</f:view>
-</body>
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/hotel.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/hotel.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/hotel.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,56 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- template="template.xhtml">
-
-<!-- content -->
-<ui:define name="content">
-
-<div class="section">
- <h1>View Hotel</h1>
-</div>
-
-<div class="section">
- <ui:include src="hotelview.xhtml"/>
-
- <div class="buttonBox">
- <h:form id="hotel">
- <h:commandButton id="bookHotel" action="#{hotelBooking.bookHotel}" value="Book Hotel"/>
-  
- <h:commandButton id="cancel" action="#{hotelBooking.cancel}" value="Back to Search"/>
- </h:form>
- </div>
-
-
-</div>
-
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-
-<h1>Don't kill your database</h1>
-<p>
- Keeping conversational state in memory in the middle tier is a great way to
- improve your application's scalability. It saves hitting the database every
- time we refresh a page, to re-read the data we were just looking at five
- seconds ago. By using Seam's conversation context, we get a natural cache
- of data associated with the what the user is currently doing. By nature,
- this cache has a more efficient eviction policy than the MRU-type algorithms
- used by a typical second-level data cache in an O/R mapping engine like
- Hibernate (at least for some kinds of data). Of course, you should use
- a clever combination of second-level caching and conversational data
- caching to achieve the best performance for your application.
-</p>
-<p>
- <a href="#" onclick="window.open('exp/bookingExp.html','exp','width=752,height=500,scrollbars=yes');">
- How does the hotel booking wizard work?
- </a>
-</p>
-
-</ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/btn.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/cal-next.png
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/cal-prev.png
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/cnt.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/dtpick.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.ad.jpg
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.bar.jpg
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/hdr.title.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/header_line.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/input.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/sdb.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/spinner.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/img/th.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/index.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/index.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/index.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,5 +0,0 @@
-<html>
-<head>
- <meta http-equiv="Refresh" content="0; URL=home.seam">
-</head>
-</html>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/password.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/password.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/password.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,64 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- template="template.xhtml">
-
-<!-- content -->
-<ui:define name="content">
-
-<div class="section">
- <h1>Change Your Password</h1>
-</div>
-
-<div class="section">
-
- <div class="entry errors">
- <h:messages id="messages" globalOnly="true"/>
- </div>
-
- <h:form id="setpassword">
-
- <fieldset>
-
- <s:decorate id="PasswordDecorate" template="edit.xhtml">
- <ui:define name="label">Password:</ui:define>
- <h:inputSecret id="password" value="#{user.password}" required="true"/>
- </s:decorate>
-
- <s:decorate id="VerifyDecorate" template="edit.xhtml">
- <ui:define name="label">Verify:</ui:define>
- <h:inputSecret id="verify" value="#{changePassword.verify}" required="true"/>
- </s:decorate>
-
- <div class="buttonBox">
- <h:commandButton id="change" value="Change" action="#{changePassword.changePassword}"/>
-  
- <s:button id="cancel" value="Cancel" view="/main.xhtml"/>
- </div>
-
- </fieldset>
-
- </h:form>
-</div>
-
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-<h1>Simple things should be easy</h1>
-<p>
- (And so should some complex things.) You shouldn't have to write four different classes
- just to change a password. Traditional J2EE architectures require that developers spend
- more time writing code to make the frameworks happy, than they ever get to spend writing
- code to make the user happy. Seam lets you reduce the size of your code dramatically.
- And that reduces bugs. And it makes refactoring easier. And it makes delivering new
- functionality quicker. Productivity matters. But with Seam, JSF, EJB 3.0 and jBPM, you
- don't need to sacrifice the ability to handle complex problems just to achieve great
- productivity.
-</p>
-</ui:define>
-
-</ui:composition>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/register.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/register.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/register.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,102 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:a="http://richfaces.org/a4j">
-<h:head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>JBoss Suites: Seam Framework</title>
- <link href="css/screen.css" rel="stylesheet" type="text/css" />
-</h:head>
-
-<body id="pgHome">
-
-<div id="document">
-
- <div id="header">
- <div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
- </div>
-
- <div id="container">
-
- <div id="sidebar">
- <h1>Integrated multi-layer validation</h1>
- <p>
- Robust applications need data validation in several different places. Seam integrates Hibernate Validator,
- a set of annotations for expressing data model constraints in your domain model classes. Then, these
- constraints are applied almost completely transparently at three levels of the application: by Seam when
- the user first enters data, by EJB before persisting data to the database, and, if you use Hibernate to
- generate your database schema, by the database constraints themselves. Multi-layer validation hardens
- your application and protects your data. Even better, it's self-documenting, and easy to change when
- your business rules change.
- </p>
- <p>
- <a href="#" onclick="window.open('exp/registerExp.html','exp','width=752,height=500,scrollbars=yes');">
- What happens when I register?
- </a>
- </p>
- </div>
-
- <div id="content">
-
- <div class="section">
- <h1>Register</h1>
- </div>
-
- <div class="section">
-
- <div class="entry errors">
- <h:messages id="messages" globalOnly="true"/>
- </div>
-
- <h:form id="registration">
- <fieldset>
-
- <s:decorate id="usernameDecorate" template="edit.xhtml">
- <ui:define name="label">Username:</ui:define>
- <h:inputText id="username" value="#{user.username}" required="true">
- <a:ajax event="blur" render="usernameDecorate"/>
- </h:inputText>
- </s:decorate>
-
- <s:decorate id="nameDecorate" template="edit.xhtml">
- <ui:define name="label">Real Name:</ui:define>
- <h:inputText id="name" value="#{user.name}" required="true">
- <a:ajax event="blur" render="nameDecorate"/>
- </h:inputText>
- </s:decorate>
-
- <s:decorate id="passwordDecorate" template="edit.xhtml">
- <ui:define name="label">Password:</ui:define>
- <h:inputSecret id="password" value="#{user.password}" required="true"/>
- </s:decorate>
-
- <s:decorate id="verifyDecorate" template="edit.xhtml">
- <ui:define name="label">Verify Password:</ui:define>
- <h:inputSecret id="verify" value="#{register.verify}" required="true"/>
- </s:decorate>
-
- <div class="buttonBox">
- <h:commandButton id="register" value="Register" action="#{register.register}"/>
-  
- <s:button id="cancel" value="Cancel" view="/home.xhtml"/>
- </div>
-
- </fieldset>
- </h:form>
-
- </div>
-
- </div>
-
- </div>
-
- <div id="footer">Created with JBoss EJB 3.0, Seam, JSF (Mojarra) and Facelets</div>
-
-</div>
-
-</body>
-
-</html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/template.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/template.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp/template.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,40 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<f:view contentType="text/html"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib">
-
-<html>
-<h:head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>JBoss Suites: Seam Framework</title>
- <link href="css/screen.css" rel="stylesheet" type="text/css" />
-</h:head>
-<body>
-
-<div id="document">
- <div id="header">
- <div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
- <div id="status">
- Welcome #{user.name}
- | <s:link id="search" view="/main.xhtml" value="Search" propagation="none"/>
- | <s:link id="settings" view="/password.xhtml" value="Settings" propagation="none"/>
- | <s:link id="logout" action="#{identity.logout}" value="Logout"/>
- </div>
- </div>
- <div id="container">
- <div id="sidebar">
- <ui:insert name="sidebar"/>
- </div>
- <div id="content">
- <ui:insert name="content"/>
- <ui:include src="conversations.xhtml" />
- </div>
- </div>
- <div id="footer">Created with JBoss Seam, EJB 3, JSF 1.2, Hibernate 3 and Facelets</div>
-</div>
-</body>
-</html>
-</f:view>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp-cluster/WEB-INF/web.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp-cluster/WEB-INF/web.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/main/webapp-cluster/WEB-INF/web.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<web-app version="2.5"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
-
- <distributable/>
-
- <display-name>Seam Booking Example</display-name>
-
- <!-- Seam -->
-
- <listener>
- <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
- </listener>
-
- <servlet>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <url-pattern>/seam/resource/*</url-pattern>
- </servlet-mapping>
-
- <filter>
- <filter-name>Seam Filter</filter-name>
- <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
- </filter>
-
- <filter-mapping>
- <filter-name>Seam Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
- <!-- JSF -->
-
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
-
- <context-param>
- <param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
- </context-param>
-
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.seam</url-pattern>
- </servlet-mapping>
-
- <session-config>
- <session-timeout>10</session-timeout>
- </session-config>
-
-</web-app>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/WEB-INF/metawidget.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/WEB-INF/metawidget.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/WEB-INF/metawidget.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,53 +0,0 @@
-<?xml version="1.0"?>
-<metawidget xmlns="http://metawidget.org"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://metawidget.org http://metawidget.org/xsd/metawidget-1.0.xsd" version="1.0">
-
- <htmlMetawidget xmlns="java:org.metawidget.faces.component.html">
- <rendererType>
- <string>div</string>
- </rendererType>
- <parameter>
- <string>divStyleClasses</string>
- <string>entry,label,required,input,error errors</string>
- </parameter>
-
- <inspector>
- <compositeInspector xmlns="java:org.metawidget.inspector.composite" config="CompositeInspectorConfig">
- <inspectors>
- <array>
- <propertyTypeInspector xmlns="java:org.metawidget.inspector.propertytype"/>
- <metawidgetAnnotationInspector xmlns="java:org.metawidget.inspector.annotation"/>
- <facesAnnotationInspector xmlns="java:org.metawidget.inspector.faces"/>
- <jpaInspector xmlns="java:org.metawidget.inspector.jpa"/>
- <beanValidationInspector xmlns="java:org.metawidget.inspector.beanvalidation"/>
- </array>
- </inspectors>
- </compositeInspector>
- </inspector>
-
- <widgetBuilder>
- <compositeWidgetBuilder xmlns="java:org.metawidget.widgetbuilder.composite" config="CompositeWidgetBuilderConfig">
- <widgetBuilders>
- <array>
- <overriddenWidgetBuilder xmlns="java:org.metawidget.faces.component.widgetbuilder"/>
- <readOnlyWidgetBuilder xmlns="java:org.metawidget.faces.component.html.widgetbuilder"/>
- <richFacesWidgetBuilder xmlns="java:org.metawidget.faces.component.html.widgetbuilder.richfaces"/>
- <htmlWidgetBuilder xmlns="java:org.metawidget.faces.component.html.widgetbuilder"/>
- </array>
- </widgetBuilders>
- </compositeWidgetBuilder>
- </widgetBuilder>
-
- <widgetProcessors>
- <array>
- <requiredAttributeProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- <standardBindingProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- <readableIdProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- <standardConverterProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- </array>
- </widgetProcessors>
-
- </htmlMetawidget>
-
-</metawidget>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/book.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/book.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/book.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,63 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:a="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:m="http://metawidget.org/faces"
- template="template.xhtml">
-
- <!-- content -->
- <ui:define name="content">
- <div class="section">
- <h1>Book Hotel</h1>
- </div>
- <div class="section">
- <div class="entry errors">
- <h:messages id="messages" globalOnly="true"/>
- </div>
-
- <ui:include src="hotelview.xhtml"/>
-
- <div style="clear:both"/>
-
- <h:form id="booking">
- <fieldset>
-
- <s:validateAll>
-
- <m:metawidget value="#{booking}" validatorClass="org.metawidget.faces.component.validator.RequiredValidator"/>
-
- </s:validateAll>
-
- <div class="buttonBox">
- <h:commandButton id="proceed" value="Proceed" action="#{hotelBooking.setBookingDetails}"/>
-  
- <s:button id="cancel" value="Cancel" action="#{hotelBooking.cancel}"/>
- </div>
-
- </fieldset>
- </h:form>
- </div>
- </ui:define>
-
- <!-- sidebar -->
- <ui:define name="sidebar">
-
- <h1>Workspace management</h1>
- <p>
- As you can see, Seam makes it easy to work in multiple windows or multiple browser
- tabs. But you can even switch between multiple tasks inside a single browser tab!
- The "Workspaces" section showcases this advanced feature.
- </p>
- <p>
- <a href="#" onclick="window.open('exp/workspaceExp.html','exp','width=752,height=500,scrollbars=yes');">
- How does the workspace list work?
- </a>
- </p>
-
- </ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/confirm.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/confirm.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/confirm.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,59 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:m="http://metawidget.org/faces"
- template="template.xhtml">
-
- <!-- content -->
- <ui:define name="content">
-
- <div class="section">
- <h1>Confirm Hotel Booking</h1>
- </div>
-
- <div class="section">
-
- <ui:include src="hotelview.xhtml"/>
-
- <m:metawidget value="#{booking}" readOnly="#{true}">
- <h:outputText value="#{booking.total}"/>
- <m:stub value="#{booking.creditCardExpiryMonth}"/>
- <m:stub value="#{booking.creditCardExpiryYear}"/>
- </m:metawidget>
-
- <div class="buttonBox">
- <h:form id="confirm">
- <h:commandButton id="confirm" value="Confirm" action="#{hotelBooking.confirm}"/>
-  
- <s:button id="revise" value="Revise" view="/book.xhtml"/>
-  
- <h:commandButton id="cancel" value="Cancel" action="#{hotelBooking.cancel}"/>
- </h:form>
- </div>
-
- </div>
-
- </ui:define>
-
- <!-- sidebar -->
- <ui:define name="sidebar">
- <h1>Back button navigation</h1>
- <p>
- When you click "Confirm", the new booking is written to the database, the
- conversation ends, and state associated with the conversation is automatically
- destroyed by Seam. After you confirm your booking, try hitting the back button
- on your web browser and clicking "Confirm" again. Seam makes it easy implement
- applications that behave elegantly in response to the back, forward and refresh
- buttons.
- </p>
- <p>
- <a href="#" onclick="window.open('exp/confirmExp.html','exp','width=752,height=500,scrollbars=yes');">
- What happens when the conversation ends?
- </a>
- </p>
- </ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/hotelview.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/hotelview.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/hotelview.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,9 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:m="http://metawidget.org/faces">
-
- <m:metawidget value="#{hotel}" readOnly="#{true}"/>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/main.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/main.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/booking-web/src/metawidget/webapp/main.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,139 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:a="http://richfaces.org/a4j"
- template="template.xhtml">
-
- <!-- content -->
- <ui:define name="content">
-
- <div class="section">
-
- <span class="errors">
- <h:messages id="messages" globalOnly="true"/>
- </span>
-
- <h1>Search Hotels</h1>
-
- <h:form id="searchCriteria">
- <fieldset>
- <h:inputText id="searchString" value="#{hotelSearch.searchString}" style="width: 165px;">
- <a:ajax id="onkeyup" event="keyup" listener="#{hotelSearch.find}" render="searchResults" />
- </h:inputText>
-  
- <h:commandButton id="findHotels" value="Find Hotels" action="#{hotelSearch.find}"/>
-  
- <a:status id="status">
- <f:facet id="StartStatus" name="start">
- <h:graphicImage id="SpinnerGif" value="/img/spinner.gif"/>
- </f:facet>
- </a:status>
- <br/>
- <h:outputLabel id="MaximumResultsLabel" for="pageSize">Maximum results:</h:outputLabel> 
- <h:selectOneMenu id="pageSize" value="#{hotelSearch.pageSize}">
- <f:selectItem id="PageSize5" itemLabel="5" itemValue="5"/>
- <f:selectItem id="PageSize10" itemLabel="10" itemValue="10"/>
- <f:selectItem id="PageSize20" itemLabel="20" itemValue="20"/>
- </h:selectOneMenu>
- </fieldset>
- </h:form>
-
- </div>
-
- <a:outputPanel id="searchResults">
- <div class="section">
- <h:outputText id="NoHotelsFoundMessage" value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
- <h:dataTable id="hotels" value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
- <h:column id="column1">
- <f:facet id="NameFacet" name="header">Name</f:facet>
- #{hot.name}
- </h:column>
- <h:column id="column2">
- <f:facet id="AddressFacet" name="header">Address</f:facet>
- #{hot.address}
- </h:column>
- <h:column id="column3">
- <f:facet id="CityStateFacet" name="header">City, State</f:facet>
- #{hot.city}, #{hot.state}, #{hot.country}
- </h:column>
- <h:column id="column4">
- <f:facet id="ZipFacet" name="header">Zip</f:facet>
- #{hot.zip}
- </h:column>
- <h:column id="column5">
- <f:facet id="ActionFacet" name="header">Action</f:facet>
- <s:link id="viewHotel" value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
- </h:column>
- </h:dataTable>
- <s:link id="MoreResultsLink" value="More results" action="#{hotelSearch.nextPage}" rendered="#{hotelSearch.nextPageAvailable}"/>
- </div>
- </a:outputPanel>
-
- <div class="section">
- <h1>Current Hotel Bookings</h1>
- </div>
- <div class="section">
- <h:form id="bookings">
- <h:outputText id="NoBookingsFoundMessage" value="No Bookings Found" rendered="#{bookings.rowCount==0}"/>
- <h:dataTable id="bookings" value="#{bookings}" var="book" rendered="#{bookings.rowCount>0}">
- <h:column id="column1">
- <f:facet id="NameFacet" name="header">Name</f:facet>
- #{book.hotel.name}
- </h:column>
- <h:column id="column2">
- <f:facet id="AddressFacet" name="header">Address</f:facet>
- #{book.hotel.address}
- </h:column>
- <h:column id="column3">
- <f:facet id="CityStateFacet" name="header">City, State</f:facet>
- #{book.hotel.city}, #{book.hotel.state}
- </h:column>
- <h:column id="column4">
- <f:facet id="CheckInDateFacet" name="header">Check in date</f:facet>
- <h:outputText id="BookingCheckInDate" value="#{book.checkinDate}"/>
- </h:column>
- <h:column id="column5">
- <f:facet id="CheckOutDateFacet" name="header">Check out date</f:facet>
- <h:outputText id="BookingCheckOutDate" value="#{book.checkoutDate}"/>
- </h:column>
- <h:column id="column6">
- <f:facet id="ConfNumberFacet" name="header">Confirmation number</f:facet>
- #{book.id}
- </h:column>
- <h:column id="column7">
- <f:facet id="ActionFacet" name="header">Action</f:facet>
- <h:commandLink id="cancel" value="Cancel" action="#{bookingList.cancel}"/>
- </h:column>
- </h:dataTable>
- </h:form>
- </div>
-
- </ui:define>
-
- <!-- sidebar -->
- <ui:define name="sidebar">
-
- <h1>State management in Seam</h1>
- <p>
- State in Seam is <em>contextual</em>. When you click "Find Hotels", the application
- retrieves a list of hotels from the database and caches it in the session context. When you
- navigate to one of the hotel records by clicking the "View Hotel" link, a <em>conversation</em>
- begins. The conversation is attached to a particular tab, in a particular browser window. You can
- navigate to multiple hotels using "open in new tab" or "open in new window" in your web browser.
- Each window will execute in the context of a different conversation. The application keeps state
- associated with your hotel booking in the conversation context, which ensures that the concurrent
- conversations do not interfere with each other.
- </p>
-
- <p>
- <a href="#" onclick="window.open('exp/mainExp.html','exp','width=752,height=500,scrollbars=yes');">
- How does the search page work?
- </a>
- </p>
-
- </ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking</artifactId>
- <parent>
- <groupId>org.jboss.seam</groupId>
- <artifactId>examples-ee6</artifactId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
- <packaging>pom</packaging>
- <name>Metawidget Booking Example (EE6)</name>
-
- <properties>
- <example.name>booking</example.name>
- </properties>
-
- <modules>
- <module>booking-ear</module>
- <module>booking-ejb</module>
- <module>booking-web</module>
- <module>booking-tests</module>
- </modules>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ejb</artifactId>
- <version>${project.version}</version>
- <type>ejb</type>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-web</artifactId>
- <version>${project.version}</version>
- <type>war</type>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>booking-ear</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/readme.txt
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/readme.txt 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/booking/readme.txt 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,47 +0,0 @@
-Seam Metawidget Booking Example
-===============================
-
-This example demonstrates the use of Seam in a Java EE 5 environment.
-Transaction and persistence context management is handled by the
-EJB container. This example runs on JBoss AS as an EAR or Tomcat
-with JBoss Embedded as a WAR.
-
-A majority of source files in this project comes from non-metawidget Booking example
-in the distribution. Metawidget source files are placed under src/metawidget
-subdirectories in booking-ejb and booking-web submodules.
-
-To deploy the example to JBossAS, follow these steps:
-
-* In the example root directory run:
-
- mvn clean package
-
-* Set JBOSS_HOME environment property.
-
-* In the booking-ear directory run:
-
- mvn jboss:hard-deploy
-
-* Open this URL in a web browser: http://localhost:8080/seam-metawidget-booking
-
-To deploy the example to Tomcat with Embedded JBoss, follow these steps:
-
-* In the example root directory run:
-
- mvn clean package -Ptomcat
-
-* Deploy the resulting war from booking-web/target directory to Tomcat manually.
-
-* Open this URL in a web browser: http://localhost:8080/jboss-seam-metawidget-booking
-
-To deploy the example to a cluster, follow these steps:
-
-* First follow the steps 1-9 clustering-howto.txt in the root folder of the Seam distribution.
-
-* In the example root directory run:
-
- mvn clean package -Pcluster
-
-* Deploy the resulting ear from booking-ear/target directory to $JBOSS_HOME/server/all/farm
- manually along with a datasource (booking-ear/src/main/resources/jboss-seam-booking-ds.xml)
-
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,200 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>groovybooking</artifactId>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>groovybooking-tests</artifactId>
- <name>Metawidget Groovy Booking Integration Tests Module (EE6)</name>
-
- <dependencies>
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
-
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <type>ejb</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-server</artifactId>
- </dependency>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-java</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>functional-tests</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.arquillian.junit</groupId>
- <artifactId>arquillian-junit-container</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.arquillian.protocol</groupId>
- <artifactId>arquillian-protocol-servlet</artifactId>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-
- <build>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <filtering>true</filtering>
- </testResource>
- <testResource>
- <directory>src/test/resources-integration</directory>
- </testResource>
- </testResources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-test-source</id>
- <phase>generate-test-sources</phase>
- <goals>
- <goal>add-test-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${basedir}/../hibernate-web/src/main/groovy</source>
- <source>${basedir}/../hibernate-web/src/main/java</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>integration-tests</id>
- <activation>
- <property>
- <name>arquillian</name>
- </property>
- </activation>
- </profile>
-
- <profile>
- <id>arq-jbossas-7-managed</id>
- <activation>
- <property>
- <name>arquillian</name>
- <value>jbossas-managed-7</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <id>arq-jbossas-7-remote</id>
- <activation>
- <property>
- <name>arquillian</name>
- <value>jbossas-remote-7</value>
- </property>
- </activation>
- </profile>
-
- <profile>
- <id>ftest-jbossas</id>
- <properties>
- <example.context.path>jboss-seam-metawidget-groovybooking</example.context.path>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jboss-maven-plugin</artifactId>
- <configuration>
- <jbossHome>${jboss.home}</jbossHome>
- <serverName>${jboss.domain}</serverName>
- <fileNames>
- <directory>${basedir}/../groovybooking-web/target/jboss-seam-metawidget-groovybooking-exploded/jboss-seam-metawidget-groovybooking.war</directory>
- </fileNames>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>failsafe-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>ftest-tomcat</id>
- <properties>
- <example.context.path>jboss-seam-metawidget-groovybooking</example.context.path>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>selenium-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>failsafe-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,84 +0,0 @@
- #
- # JBoss, Home of Professional Open Source
- # Copyright 2008, Red Hat Middleware LLC, and individual contributors
- # by the @authors tag. See the copyright.txt in the distribution for a
- # full listing of individual contributors.
- #
- # This is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Lesser General Public License as
- # published by the Free Software Foundation; either version 2.1 of
- # the License, or (at your option) any later version.
- #
- # This software is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # Lesser General Public License for more details.
- #
- # You should have received a copy of the GNU Lesser General Public
- # License along with this software; if not, write to the Free
- # Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- # 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- #
-HOME_PAGE /home.seam
-MAIN_PAGE /main.seam
-PAGE_TITLE JBoss Suites: Seam Framework
-LOGIN_USERNAME_FIELD id=login:username
-LOGIN_PASSWORD_FIELD id=login:password
-LOGIN_SUBMIT id=login:login
-LOGOUT id=logout
-PASSWORD_UPDATED_MESSAGE Password updated
-PASSWORD_REENTER_MESSAGE verify
-PASSWORD_VALUE_REQUIRED_MESSAGE //div[@class='errors']
-PASSWORD_LENGTH_MESSAGE length must be between
-PASSWORD_PASSWORD id=setpassword:PasswordDecorate:password
-PASSWORD_VERIFY id=setpassword:VerifyDecorate:verify
-PASSWORD_SUBMIT id=setpassword:change
-SETTINGS id=settings
-SEARCH_STRING_FIELD id=main:searchString
-SEARCH_SUBMIT id=main:findHotels
-NO_HOTELS_FOUND id=NoHotelsFoundMessage
-SEARCH_RESULT_TABLE xpath=//table[@id = 'hotels']/tbody
-SEARCH_RESULT_TABLE_FIRST_ROW_LINK id=hotels:0:viewHotel
-BOOKING_BOOK id=hotel:bookHotel
-BOOKING_CANCEL id=hotel:cancel
-HOTEL_BED_FIELD id=booking:bookingBeds
-HOTEL_BED_FIELD_SELECT_CRITERIA value=
-HOTEL_CHECKIN_DATE_FIELD id=booking:bookingCheckinDateInputDate
-HOTEL_CHECKIN_DATE_MESSAGE xpath=//li[contains(.,'Check in date')]
-HOTEL_CHECKOUT_DATE_FIELD id=booking:bookingCheckoutDateInputDate
-HOTEL_CHECKOUT_DATE_MESSAGE xpath=//li[contains(.,'Check out date')]
-HOTEL_SMOKING_1 id=booking:bookingSmoking:0
-HOTEL_SMOKING_2 id=booking:bookingSmoking:1
-HOTEL_CREDIT_CARD id=booking:bookingCreditCard
-HOTEL_CREDIT_CARD_NAME id=booking:bookingCreditCardName
-HOTEL_PROCEED id=booking:proceed
-HOTEL_CANCEL id=booking:cancel
-HOTEL_CONFIRM id=confirm:confirm
-HOTEL_MESSAGE xpath=//ul[@id='main:messages']/li
-REGISTRATION id=login:register
-REGISTRATION_USERNAME id=register:usernameDecorate:username
-REGISTRATION_USERNAME_MESSAGE xpath=id('register:usernameDecorate')//div[@class='errors']
-REGISTRATION_NAME id=register:nameDecorate:name
-REGISTRATION_NAME_MESSAGE xpath=id('register:nameDecorate')//div[@class='errors']
-REGISTRATION_PASSWORD id=register:passwordDecorate:password
-REGISTRATION_PASSWORD_MESSAGE xpath=id('register:passwordDecorate')//div[@class='errors']
-REGISTRATION_VERIFY id=register:verifyDecorate:verify
-REGISTRATION_VERIFY_MESSAGE xpath=id('register:verifyDecorate')//div[@class='errors']
-REGISTRATION_SUBMIT id=register:register
-REGISTRATION_REENTER_MESSAGE verify
-REGISTRATION_LENGTH_MESSAGE length must be between
-REGISTRATION_SUCCESSFUL_MESSAGE Successfully registered as {0}
-REGISTRATION_USER_EXISTS_MESSAGE Username {0} already exists
-NOT_LOGGED_IN_MESSAGE Please log in first
-CONVERSATION_TIMEOUT_MESSAGE The conversation ended, timed out or was processing another request
-BOOKING_TABLE_ITEM xpath\=//table[@id\="bookings\:bookings"]/tbody/tr[normalize-space(td[6]/text()) \= "{0}"][normalize-space(td[1]/text()) \= "{1}"]
-BOOKING_TABLE_ITEM_LINK xpath\=//table[@id\="bookings\:bookings"]/tbody/tr[normalize-space(td[6]/text()) \= "{0}"][normalize-space(td[1]/text()) \= "{1}"]/td[7]/a
-BOOKING_CANCELLED_MESSAGE Booking cancelled for confirmation number {0}
-BOOKING_CONFIRMATION_MESSAGE Thank you, {0}, your confimation number for {1} is \\d+
-BOOKING_INVALID_DATE_MESSAGE1 Check out date must be later than check in date
-BOOKING_INVALID_DATE_MESSAGE2 Check in date must be a future date
-WORKSPACE_BOOKING_TEXT Book hotel: {0}
-WORKSPACE_VIEW_TEXT View hotel: {0}
-WORKSPACE_TABLE_LINK_BY_ID id=ConversationListForm:ConversationListDataTable:{0}:EntryDescriptionLink
-WORKSPACE_TABLE_ROW_COUNT = //table[@id='ConversationListForm:ConversationListDataTable']/tbody/tr
-SPINNER id=main:Spinner
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,34 +0,0 @@
-<!--
- JBoss, Home of Professional Open Source Copyright 2008, Red Hat
- Middleware LLC, and individual contributors by the @authors tag. See
- the copyright.txt in the distribution for a full listing of individual
- contributors. This is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License as
- published by the Free Software Foundation; either version 2.1 of the
- License, or (at your option) any later version. This software is
- distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details. You should have received a copy of the GNU
- Lesser General Public License along with this software; if not, write
- to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--->
-<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
-<suite name="Metawidget Groovybooking example" verbose="2" parallel="false">
- <test name="metawidget_groovybooking_tests">
- <parameter name="PROPERTY_FILE" value="/metawidget-groovybooking.properties" />
- <classes>
- <class
- name="org.jboss.seam.example.common.test.booking.selenium.RegistrationTest" />
- <class
- name="org.jboss.seam.example.common.test.booking.selenium.ChangePasswordTest" />
- <class
- name="org.jboss.seam.example.common.test.booking.selenium.BackButtonTest" />
- <class
- name="org.jboss.seam.example.common.test.booking.selenium.SimpleBookingTest" />
- <class
- name="org.jboss.seam.example.common.test.booking.selenium.ConversationTest" />
- </classes>
- </test>
-</suite>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,269 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>groovybooking</artifactId>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
-
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>groovybooking-web</artifactId>
- <packaging>war</packaging>
- <name>Metawidget Groovy Booking Web Module (EE6)</name>
-
- <properties>
- <!-- filtering property for components.xml -->
- <jndiPattern>java:app/groovybooking-ejb/#{ejbName}</jndiPattern>
- <debug>true</debug>
- <loadPersistenceUnits>false</loadPersistenceUnits>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <type>ejb</type>
- <scope>compile</scope>
- <exclusions>
- <exclusion>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- </exclusion>
- <exclusion>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.1_spec</artifactId>
- </exclusion>
- <exclusion>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-ui</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-jul</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-debug</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>richfaces-components-ui</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-impl</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-all</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.servlet</groupId>
- <artifactId>jboss-servlet-api_3.0_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.spec.javax.faces</groupId>
- <artifactId>jboss-jsf-api_2.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- metawidget -->
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-annotation</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules.faces</groupId>
- <artifactId>metawidget-facesannotation</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules.faces</groupId>
- <artifactId>metawidget-faces</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules.faces</groupId>
- <artifactId>metawidget-richfaces</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-jpa</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-beanvalidation</artifactId>
- <version>2.1</version>
- </dependency>
- <dependency>
- <groupId>org.metawidget.modules</groupId>
- <artifactId>metawidget-groovy</artifactId>
- <version>2.1</version>
- </dependency>
- </dependencies>
-
- <build>
- <finalName>jboss-seam-metawidget-groovybooking</finalName>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>compile-groovy-files</id>
- <phase>generate-resources</phase>
- <configuration>
- <tasks>
- <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc">
- <classpath refid="maven.compile.classpath" />
- </taskdef>
- <mkdir dir="${project.build.outputDirectory}" />
- <groovyc destdir="${project.build.outputDirectory}" srcdir="${basedir}/src/main/groovy/model" listfiles="true">
- <classpath refid="maven.compile.classpath" />
- </groovyc>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- <execution>
- <id>copy-class-files</id>
- <phase>prepare-package</phase>
- <configuration>
- <tasks>
- <property name="dev.dir" value="${project.build.directory}/${project.build.finalName}/WEB-INF/dev" />
- <mkdir dir="${dev.dir}" />
- <copy todir="${dev.dir}">
- <fileset dir="${basedir}/src/main/groovy/action">
- <include name="**/*.groovy" />
- </fileset>
- </copy>
- <move todir="${dev.dir}">
- <fileset dir="${project.build.outputDirectory}">
- <include name="**/AuthenticatorAction.class" />
- <include name="**/ChangePasswordAction.class" />
- </fileset>
- </move>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${basedir}/src/main/groovy/action</source>
- </sources>
- <resources>
- <!-- setup classpath with files previously compiled with groovyc -->
- <resource>
- <directory>${project.build.outputDirectory}</directory>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <webResources>
- <resource>
- <directory>src/main/webapp</directory>
- <filtering>true</filtering>
- </resource>
- <resource>
- <directory>src/metawidget/webapp</directory>
- <filtering>true</filtering>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>ftest-jbossas</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <id>wait-for-application</id>
- <phase>none</phase>
- </execution>
- <execution>
- <id>stop-selenium</id>
- <phase>none</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>jbossas42</id>
- <properties>
- <loadPersistenceUnits>true</loadPersistenceUnits>
- </properties>
- </profile>
- </profiles>
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/AuthenticatorAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/AuthenticatorAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/AuthenticatorAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,35 +0,0 @@
-package org.jboss.seam.example.groovy;
-
-import java.util.List;
-import javax.persistence.EntityManager;
-
-import static org.jboss.seam.ScopeType.SESSION;
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Out;
-
- at Name("authenticator")
-public class AuthenticatorAction
-{
- @In EntityManager em;
-
- @Out(required=false, scope = SESSION)
- private User user;
-
- public boolean authenticate()
- {
- List results = em.createQuery("select u from User u where u.username=#{identity.username} and u.password=#{identity.password}")
- .getResultList();
-
- if ( results.size()==0 )
- {
- return false;
- }
- else
- {
- user = (User) results.get(0);
- return true;
- }
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/BookingListAction.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/BookingListAction.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/BookingListAction.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,57 +0,0 @@
-//$Id: BookingListAction.groovy 8748 2008-08-20 12:08:30Z pete.muir at jboss.org $
-package org.jboss.seam.example.groovy
-
-import javax.persistence.EntityManager
-
-import org.jboss.seam.ScopeType
-import org.jboss.seam.annotations.Factory
-import org.jboss.seam.annotations.In
-import org.jboss.seam.annotations.Logger
-import org.jboss.seam.annotations.Name
-import org.jboss.seam.annotations.Scope
-import org.jboss.seam.annotations.datamodel.DataModel
-import org.jboss.seam.annotations.datamodel.DataModelSelection
-import org.jboss.seam.faces.FacesMessages
-import org.jboss.seam.log.Log
-
- at Scope(ScopeType.SESSION)
- at Name("bookingList")
-class BookingListAction implements Serializable
-{
-
- @In
- EntityManager em
-
- @In
- User user
-
- @DataModel
- private List<Booking> bookings
-
- @DataModelSelection
- Booking booking
-
- @Logger
- Log log
-
- @Factory
- public void getBookings()
- {
- bookings = em.createQuery('''
- select b from Booking b
- where b.user.username = :username
- order by b.checkinDate''')
- .setParameter("username", user.username)
- .getResultList()
- }
-
- public void cancel()
- {
- log.info("Cancel booking: #{bookingList.booking.id} for #{user.username}")
- Booking cancelled = em.find(Booking.class, booking.id)
- if (cancelled != null) em.remove( cancelled )
- getBookings()
- FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId())
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/ChangePasswordAction.java
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/ChangePasswordAction.java 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/ChangePasswordAction.java 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,64 +0,0 @@
-//$Id: ChangePasswordAction.java 5305 2007-06-20 01:30:37Z gavin $
-package org.jboss.seam.example.groovy;
-
-import javax.persistence.EntityManager;
-
-import static org.jboss.seam.ScopeType.EVENT;
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Out;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.faces.FacesMessages;
-
- at Scope(EVENT)
- at Name("changePassword")
-public class ChangePasswordAction
-{
-
- @In @Out
- private User user;
-
- @In
- private EntityManager em;
-
- private String verify;
-
- private boolean changed;
-
- public void changePassword()
- {
- if ( user.getPassword().equals(verify) )
- {
- user = em.merge(user);
- FacesMessages.instance().add("Password updated");
- changed = true;
- }
- else
- {
- FacesMessages.instance().add("verify", "Re-enter new password");
- revertUser();
- verify=null;
- }
- }
-
- public boolean isChanged()
- {
- return changed;
- }
-
- private void revertUser()
- {
- user = em.find(User.class, user.getUsername());
- }
-
- public String getVerify()
- {
- return verify;
- }
-
- public void setVerify(String verify)
- {
- this.verify = verify;
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelBookingAction.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelBookingAction.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelBookingAction.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,98 +0,0 @@
-//$Id: HotelBookingAction.groovy 5563 2007-06-26 22:20:03Z gavin $
-package org.jboss.seam.example.groovy
-
-import javax.persistence.EntityManager
-
-import org.jboss.seam.ScopeType
-import org.jboss.seam.annotations.Begin
-import org.jboss.seam.annotations.End
-import org.jboss.seam.annotations.In
-import org.jboss.seam.annotations.Logger
-import org.jboss.seam.annotations.Name
-import org.jboss.seam.annotations.Out
-import org.jboss.seam.core.Events
-import org.jboss.seam.faces.FacesMessages
-import org.jboss.seam.log.Log
-
- at Name("hotelBooking")
-class HotelBookingAction
-{
-
- @In
- EntityManager em
-
- @In
- User user
-
- @In(required=false) @Out
- Hotel hotel
-
- @In(required=false)
- @Out(required=false)
- Booking booking
-
- @In
- FacesMessages facesMessages
-
- @In
- Events events
-
- @Logger
- Log log
-
- boolean bookingValid
-
- @Begin
- void selectHotel(Hotel selectedHotel)
- {
- hotel = em.merge(selectedHotel)
- }
-
- void bookHotel()
- {
- booking = new Booking(hotel, user)
- Calendar calendar = Calendar.getInstance()
- booking.checkinDate = calendar.time
- calendar.add Calendar.DAY_OF_MONTH, 1
- booking.checkoutDate = calendar.time
- }
-
- void setBookingDetails()
- {
- Calendar calendar = Calendar.getInstance()
- calendar.add Calendar.DAY_OF_MONTH, -1
- if ( booking.checkinDate < calendar.time )
- {
- facesMessages.addToControl "checkinDate", "Check in date must be a future date"
- bookingValid=false
- }
- else if ( booking.checkinDate >= booking.checkoutDate )
- {
- facesMessages.addToControl "checkoutDate", "Check out date must be later than check in date"
- bookingValid=false
- }
- else
- {
- bookingValid=true
- }
- }
-
- @Out (required=false, scope=ScopeType.SESSION)
- List <Booking> bookings
-
- @End
- void confirm()
- {
- em.persist(booking)
- facesMessages.add "Thank you, #{user.name}, your confimation number for #{hotel.name} is #{booking.id}", new Object[0]
- log.info("New booking: #{booking.id} for #{user.username}")
- // events.raiseTransactionSuccessEvent("bookingConfirmed")
-
- // force refresh in main.xhtml
- bookings = null
- }
-
- @End
- void cancel() {}
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelSearchingAction.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelSearchingAction.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/HotelSearchingAction.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,70 +0,0 @@
-//$Id: HotelSearchingAction.groovy 4933 2007-05-27 03:13:24Z ebernard $
-package org.jboss.seam.example.groovy
-
-import javax.persistence.EntityManager
-import javax.persistence.PersistenceContext
-
-import org.jboss.seam.ScopeType
-import org.jboss.seam.annotations.Destroy
-import org.jboss.seam.annotations.Name
-import org.jboss.seam.annotations.Scope
-import org.jboss.seam.annotations.datamodel.DataModel
-
-import org.jboss.seam.annotations.In
-
-import org.jboss.seam.annotations.Factory
-
- at Name("hotelSearch")
- at Scope(ScopeType.SESSION)
-class HotelSearchingAction
-{
-
- @In
- private EntityManager em
-
- String searchString
- int pageSize = 10
- int page
-
- @DataModel
- List<Hotel> hotels
-
- void find()
- {
- page = 0
- queryHotels()
- }
-
- void nextPage()
- {
- page++
- queryHotels()
- }
-
- private void queryHotels()
- {
- def query = em.createQuery('''
- select h from Hotel h where
- lower(h.name) like #{pattern}
- or lower(h.city) like #{pattern}
- or lower(h.zip) like #{pattern}
- or lower(h.address) like #{pattern}
- ''')
- query.maxResults = pageSize
- query.firstResult = page * pageSize
- hotels = query.getResultList()
- }
-
- @Factory(value="pattern", scope=ScopeType.EVENT)
- String getSearchPattern()
- {
- return searchString ?
- "%${searchString.toLowerCase().replace('*', '%')}%" :
- "%";
- }
-
- boolean isNextPageAvailable()
- {
- return hotels && hotels.size()==pageSize
- }
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/Random.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/Random.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/Random.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,10 +0,0 @@
-//$Id: Random.groovy 4698 2007-04-18 06:40:06Z ebernard $
-package org.jboss.seam.example.groovy;
-
-/**
- * Not used in the application but a non Seam component is also hot deployable
- */
-class Random
-{
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/RegisterAction.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/RegisterAction.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/org/jboss/seam/example/groovy/RegisterAction.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,63 +0,0 @@
-//$Id: RegisterAction.groovy 5563 2007-06-26 22:20:03Z gavin $
-package org.jboss.seam.example.groovy;
-
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.jboss.seam.annotations.Destroy;
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.faces.FacesMessages;
-import static org.jboss.seam.ScopeType.EVENT;
-
- at Scope(EVENT)
- at Name("register")
-class RegisterAction
-{
-
- @In
- User user;
-
- @In
- EntityManager em;
-
- @In
- FacesMessages facesMessages;
-
- String verify;
-
- boolean registered;
-
- void register()
- {
- if ( user.password == verify ) {
- List existing = em.createQuery(
- '''select u.username
- from User u
- where u.username=#{user.username}
- ''').getResultList()
-
- if (!existing.size())
- {
- em.persist(user)
- facesMessages.add("Successfully registered as #{user.username}", new Object[0]);
- registered = true
- }
- else
- {
- facesMessages.addToControl("username", "Username #{user.username} already exists")
- }
- }
- else
- {
- facesMessages.add("verify", "Re-enter your password")
- verify=null
- }
- }
-
- void invalid()
- {
- facesMessages.add("Please try again", new Object[0])
- }
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/action/seam.properties
===================================================================
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Booking.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Booking.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Booking.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,120 +0,0 @@
-//$Id: Booking.groovy 4698 2007-04-18 06:40:06Z ebernard $
-package org.jboss.seam.example.groovy
-
-import java.text.DateFormat
-import javax.persistence.Basic
-import javax.persistence.Entity
-import javax.persistence.GeneratedValue
-import javax.persistence.Id
-import javax.persistence.ManyToOne
-import javax.persistence.Temporal
-import javax.persistence.TemporalType
-import javax.persistence.Transient
-
-import org.jboss.seam.annotations.Name
-import javax.validation.constraints.NotNull
-import javax.validation.constraints.Pattern
-import javax.validation.constraints.Size
-import org.metawidget.inspector.annotation.*;
-import org.metawidget.inspector.faces.*;
-
- at Entity
- at Name("booking")
-class Booking implements Serializable
-{
- @Id @GeneratedValue
- Long id
-
- @ManyToOne @NotNull
- @UiHidden
- User user
-
- @ManyToOne @NotNull
- @UiHidden
- Hotel hotel
-
- @NotNull
- @Basic @Temporal(TemporalType.DATE)
- @UiComesAfter( [ "total" ] )
- @UiFacesDateTimeConverter( pattern = "MM/dd/yyyy" )
- Date checkinDate
-
- @Basic @Temporal(TemporalType.DATE)
- @NotNull
- @UiComesAfter( [ "checkinDate" ] )
- @UiFacesDateTimeConverter( pattern = "MM/dd/yyyy" )
- Date checkoutDate
-
- @NotNull(message="Credit card number is required")
- @Size(min=16, max=16, message="Credit card number must 16 digits long")
- @Pattern(regexp=/^\d*$/, message="Credit card number must be numeric")
- @UiComesAfter( [ "smoking" ] )
- @UiLabel( "Credit card #" )
- String creditCard
-
- @NotNull(message="Credit card name is required")
- @Size(min=3, max=70)
- @UiComesAfter( [ "creditCard" ] )
- String creditCardName
-
- @UiLookup( value = [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ], labels = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] )
- @UiComesAfter( [ "creditCardName" ] )
- @UiLabel( "Expiry month" )
- int creditCardExpiryMonth
-
- @UiComesAfter( [ "creditCardExpiryMonth" ] )
- @UiLookup( [ "2005", "2006", "2007", "2008", "2009" ] )
- @UiLabel( "Expiry year" )
- int creditCardExpiryYear
-
- @UiLookup( value = [ "true", "false" ], labels = [ "Smoking", "Non Smoking" ] )
- @UiFacesComponent( "javax.faces.HtmlSelectOneRadio" )
- @UiComesAfter( [ "beds" ] )
- boolean smoking
-
- @UiLabel( "Room preference" )
- @UiComesAfter( [ "checkoutDate" ] )
- @UiLookup( value = [ "1", "2", "3" ], labels = [ "One king-size bed", "Two double beds", "Three beds" ] )
- int beds
-
- Booking() {}
-
- Booking(Hotel hotel, User user)
- {
- this.hotel = hotel
- this.user = user
- }
-
- @Transient
- @UiHidden
- @UiFacesNumberConverter(type="currency",currencySymbol="\$")
- @UiLabel("Total payment")
- BigDecimal getTotal()
- {
- return hotel.price * getNights()
- }
-
- @Transient
- @UiHidden
- int getNights()
- {
- return (int) ( ( checkoutDate.time - checkinDate.time ) / 1000 / 60 / 60 / 24 )
- }
-
- @Transient
- @UiHidden
- String getDescription()
- {
- DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM)
- return hotel ?
- "${hotel.name}, ${df.format( checkinDate )} to ${df.format(checkoutDate)}" :
- null
- }
-
- @Override
- String toString()
- {
- return "Booking(" + user + ","+ hotel + ")"
- }
-
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Hotel.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Hotel.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/Hotel.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,57 +0,0 @@
-//$Id: Hotel.groovy 4698 2007-04-18 06:40:06Z ebernard $
-package org.jboss.seam.example.groovy
-
-import javax.persistence.Column
-import javax.persistence.Entity
-import javax.persistence.GeneratedValue
-import javax.persistence.Id
-
-import org.jboss.seam.annotations.Name
-import javax.validation.constraints.NotNull
-import javax.validation.constraints.Size
-
-import org.metawidget.inspector.annotation.*;
-import org.metawidget.inspector.faces.*;
-
- at Entity
- at Name("hotel")
-class Hotel implements Serializable
-{
- @Id @GeneratedValue
- Long id
-
- @Size(max=50) @NotNull
- String name
-
- @Size(max=100) @NotNull
- @UiComesAfter( [ "name" ] )
- String address
-
- @Size(max=40) @NotNull
- @UiComesAfter( [ "address" ] )
- String city
-
- @Size(min=2, max=10) @NotNull
- @UiComesAfter( [ "city" ] )
- String state
-
- @Size(min=4, max=6) @NotNull
- @UiComesAfter( [ "state" ] )
- String zip
-
- @Size(min=2, max=40) @NotNull
- @UiComesAfter( [ "zip" ] )
- String country
-
- @Column(precision=6, scale=2)
- @UiComesAfter( [ "country" ])
- @UiFacesNumberConverter(type="currency",currencySymbol="\$")
- @UiLabel("Nightly rate")
- BigDecimal price
-
- @Override
- String toString()
- {
- return "Hotel(${name},${address},${city},${zip})"
- }
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/User.groovy
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/User.groovy 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/org/jboss/seam/example/groovy/User.groovy 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,48 +0,0 @@
-//$Id: User.groovy 4698 2007-04-18 06:40:06Z ebernard $
-package org.jboss.seam.example.groovy
-
-import javax.persistence.Entity
-import javax.persistence.Id
-import javax.persistence.Table
-
-import org.jboss.seam.ScopeType
-import org.jboss.seam.annotations.Name
-import org.jboss.seam.annotations.Scope
-import javax.validation.constraints.Pattern
-import javax.validation.constraints.NotNull
-import javax.validation.constraints.Size
-
- at Entity
- at Name("user")
- at Scope(ScopeType.SESSION)
- at Table(name="Customer")
-class User implements Serializable
-{
- @Id
- @Size(min=5, max=15)
- @Pattern(regexp=/^\w*$/, message="not a valid username")
- String username
-
- @NotNull
- @Size(min=5, max=15)
- String password
-
- @NotNull
- @Size(max=100)
- String name
-
- User(String name, String password, String username)
- {
- this.name = name
- this.password = password
- this.username = username
- }
-
- User() {}
-
- @Override
- String toString()
- {
- return "User(${username})"
- }
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/groovy/model/seam.properties
===================================================================
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/META-INF/persistence.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/META-INF/persistence.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/META-INF/persistence.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- Persistence deployment descriptor for dev profile -->
-<persistence xmlns="http://java.sun.com/xml/ns/persistence"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
- version="1.0">
-
- <persistence-unit name="groovy" transaction-type="JTA">
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
- <properties>
- <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
- <property name="hibernate.show_sql" value="true"/>
- <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
- <!-- Binds the EntityManagerFactory to JNDI where Seam can look it up.
- This is only relevant when the container automatically loads the persistence unit, as is the case in JBoss AS 5. -->
- <property name="jboss.entity.manager.factory.jndi.name" value="java:/groovyEntityManagerFactory"/>
- </properties>
- </persistence-unit>
-
-</persistence>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/import.sql
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/import.sql 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/import.sql 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,22 +0,0 @@
-insert into Customer (username, password, name) values ('gavin', 'foobar', 'Gavin King')
-insert into Customer (username, password, name) values ('demo', 'demo', 'Demo User')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (1, 120, 'Marriott Courtyard', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (2, 180, 'Doubletree', 'Tower Place, Buckhead', 'Atlanta', 'GA', '30305', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (3, 450, 'W Hotel', 'Union Square, Manhattan', 'NY', 'NY', '10011', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (4, 450, 'W Hotel', 'Lexington Ave, Manhattan', 'NY', 'NY', '10011', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (5, 250, 'Hotel Rouge', '1315 16th Street NW', 'Washington', 'DC', '20036', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (6, 300, '70 Park Avenue Hotel', '70 Park Avenue', 'NY', 'NY', '10011', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (8, 300, 'Conrad Miami', '1395 Brickell Ave', 'Miami', 'FL', '33131', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (9, 80, 'Sea Horse Inn', '2106 N Clairemont Ave', 'Eau Claire', 'WI', '54703', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (10, 90, 'Super 8 Eau Claire Campus Area', '1151 W Macarthur Ave', 'Eau Claire', 'WI', '54701', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (11, 160, 'MarriottDowntown', '55 Fourth Street', 'San Francisco', 'CA', '94103', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (12, 200, 'Hilton Diagonal Mar', 'Passeig del Taulat 262-264', 'Barcelona', 'Catalunya', '08019', 'Spain')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (13, 210, 'Hilton Tel Aviv', 'Independence Park', 'Tel Aviv', '', '63405', 'Israel')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (14, 240, 'InterContinental Tokyo Bay', 'Takeshiba Pier', 'Tokyo', '', '105', 'Japan')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (15, 130, 'Hotel Beaulac', ' Esplanade Léopold-Robert 2', 'Neuchatel', '', '2000', 'Switzerland')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (16, 140, 'Conrad Treasury Place', 'William & George Streets', 'Brisbane', 'QLD', '4001', 'Australia')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (17, 230, 'Ritz Carlton', '1228 Sherbrooke St', 'West Montreal', 'Quebec', 'H3G1H6', 'Canada')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (18, 460, 'Ritz Carlton', 'Peachtree Rd, Buckhead', 'Atlanta', 'GA', '30326', 'USA')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (19, 220, 'Swissotel', '68 Market Street', 'Sydney', 'NSW', '2000', 'Australia')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (20, 250, 'Meliá White House', 'Albany Street', 'Regents Park London', '', 'NW13UP', 'Great Britain')
-insert into Hotel (id, price, name, address, city, state, zip, country) values (21, 210, 'Hotel Allegro', '171 West Randolph Street', 'Chicago', 'IL', '60601', 'USA')
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages.properties
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages.properties 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages.properties 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,75 +0,0 @@
-javax.faces.component.UIInput.CONVERSION=value could not be converted to the expected type
-javax.faces.component.UIInput.REQUIRED=value is required
-javax.faces.component.UIInput.REQUIRED_detail=value is required
-javax.faces.component.UIInput.UPDATE=an error occurred when processing your submitted information
-javax.faces.component.UISelectOne.INVALID=value is not valid
-javax.faces.component.UISelectMany.INVALID=value is not valid
-
-javax.faces.converter.BigDecimalConverter.DECIMAL=value must be a number
-javax.faces.converter.BigDecimalConverter.DECIMAL_detail=value must be a signed decimal number consisting of zero or more digits, optionally followed by a decimal point and fraction, eg. {1}
-javax.faces.converter.BigIntegerConverter.BIGINTEGER=value must be a number
-javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=value must be a signed integer number consisting of zero or more digits
-javax.faces.converter.BooleanConverter.BOOLEAN=value must be true or false
-javax.faces.converter.BooleanConverter.BOOLEAN_detail=value must be true or false (any value other than true will evaluate to false)
-javax.faces.converter.ByteConverter.BYTE=value must be a number between 0 and 255
-javax.faces.converter.ByteConverter.BYTE_detail=value must be a number between 0 and 255
-javax.faces.converter.CharacterConverter.CHARACTER=value must be a character
-javax.faces.converter.CharacterConverter.CHARACTER_detail=value must be a valid ASCII character
-javax.faces.convert.DateTimeConverter.CONVERSION = Conversion Error
-javax.faces.convert.DateTimeConverter.CONVERSION_detail = "{1}": Specified value is not a valid date/time.
-javax.faces.converter.DateTimeConverter.DATE=value must be a date
-javax.faces.converter.DateTimeConverter.DATE_detail=value must be a date, eg. {1}
-javax.faces.converter.DateTimeConverter.TIME=value must be a time
-javax.faces.converter.DateTimeConverter.TIME_detail=value must be a time, eg. {1}
-javax.faces.converter.DateTimeConverter.DATETIME=value must be a date and time
-javax.faces.converter.DateTimeConverter.DATETIME_detail=value must be a date and time, eg. {1}
-javax.faces.converter.DateTimeConverter.PATTERN_TYPE=a pattern or type attribute must be specified to convert the value
-javax.faces.converter.DoubleConverter.DOUBLE=value must be a number
-javax.faces.converter.DoubleConverter.DOUBLE_detail=value must be a number between 4.9E-324 and 1.7976931348623157E308
-javax.faces.converter.EnumConverter.ENUM=value must be convertible to an enum
-javax.faces.converter.EnumConverter.ENUM_detail=value must be convertible to an enum or from the enum that contains the constant {1}
-javax.faces.converter.EnumConverter.ENUM_NO_CLASS=value must be convertible to an enum or from the enum, but no enum class provided
-javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=value must be convertible to an enum or from the enum, but no enum class provided
-javax.faces.converter.FloatConverter.FLOAT=value must be a number
-javax.faces.converter.FloatConverter.FLOAT_detail=value must be a number between 1.4E-45 and 3.4028235E38
-javax.faces.converter.IntegerConverter.INTEGER=value must be a number
-javax.faces.converter.IntegerConverter.INTEGER_detail=value must be a number between -2147483648 and 2147483647
-javax.faces.converter.LongConverter.LONG=value must be a number
-javax.faces.converter.LongConverter.LONG_detail=must be a number between -9223372036854775808 and 9223372036854775807
-javax.faces.converter.NumberConverter.CURRENCY=value must be a currency amount
-javax.faces.converter.NumberConverter.CURRENCY_detail=value must be a currency amount, eg. {1}
-javax.faces.converter.NumberConverter.PERCENT=value must be a percentage amount
-javax.faces.converter.NumberConverter.PERCENT_detail=value must be a percentage amount, eg. {1}
-javax.faces.converter.NumberConverter.NUMBER=value must be a number
-javax.faces.converter.NumberConverter.NUMBER_detail=value must be a number
-javax.faces.converter.NumberConverter.PATTERN=value must be a number
-javax.faces.converter.NumberConverter.PATTERN_detail=value must be a number
-javax.faces.converter.ShortConverter.SHORT=value must be a number
-javax.faces.converter.ShortConverter.SHORT_detail=value must be a number between -32768 and 32767
-
-#JSF 1.1:
-javax.faces.convert.BigDecimalConverter.CONVERSION = value must be a number
-javax.faces.convert.BigDecimalConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.BigIntegerConverter.CONVERSION = value must be an integre
-javax.faces.convert.BigIntegerConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.BooleanConverter.CONVERSION = value must be true or false
-javax.faces.convert.BooleanConverter.CONVERSION_detail = value must be true or false
-javax.faces.convert.ByteConverter.CONVERSION = value must be a byte
-javax.faces.convert.ByteConverter.CONVERSION_detail = value must be a byte
-javax.faces.convert.CharacterConverter.CONVERSION = value must be a character
-javax.faces.convert.CharacterConverter.CONVERSION_detail = value must be a character
-javax.faces.convert.DateTimeConverter.CONVERSION = value must be a datetime
-javax.faces.convert.DateTimeConverter.CONVERSION_detail = value must be a datetime
-javax.faces.convert.DoubleConverter.CONVERSION = value must be a number
-javax.faces.convert.DoubleConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.FloatConverter.CONVERSION = value must be a number
-javax.faces.convert.FloatConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.IntegerConverter.CONVERSION = value must be an integer
-javax.faces.convert.IntegerConverter.CONVERSION_detail = value must be an integer
-javax.faces.convert.LongConverter.CONVERSION = value must be an integer
-javax.faces.convert.LongConverter.CONVERSION_detail = value must be a long integer
-javax.faces.convert.NumberConverter.CONVERSION = value must be a number
-javax.faces.convert.NumberConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.ShortConverter.CONVERSION = value must be an integer
-javax.faces.convert.ShortConverter.CONVERSION_detail = value must be a short integer
-
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages_en.properties
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages_en.properties 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/messages_en.properties 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,75 +0,0 @@
-javax.faces.component.UIInput.CONVERSION=value could not be converted to the expected type
-javax.faces.component.UIInput.REQUIRED=value is required
-javax.faces.component.UIInput.REQUIRED_detail=value is required
-javax.faces.component.UIInput.UPDATE=an error occurred when processing your submitted information
-javax.faces.component.UISelectOne.INVALID=value is not valid
-javax.faces.component.UISelectMany.INVALID=value is not valid
-
-javax.faces.converter.BigDecimalConverter.DECIMAL=value must be a number
-javax.faces.converter.BigDecimalConverter.DECIMAL_detail=value must be a signed decimal number consisting of zero or more digits, optionally followed by a decimal point and fraction, eg. {1}
-javax.faces.converter.BigIntegerConverter.BIGINTEGER=value must be a number
-javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=value must be a signed integer number consisting of zero or more digits
-javax.faces.converter.BooleanConverter.BOOLEAN=value must be true or false
-javax.faces.converter.BooleanConverter.BOOLEAN_detail=value must be true or false (any value other than true will evaluate to false)
-javax.faces.converter.ByteConverter.BYTE=value must be a number between 0 and 255
-javax.faces.converter.ByteConverter.BYTE_detail=value must be a number between 0 and 255
-javax.faces.converter.CharacterConverter.CHARACTER=value must be a character
-javax.faces.converter.CharacterConverter.CHARACTER_detail=value must be a valid ASCII character
-javax.faces.convert.DateTimeConverter.CONVERSION = Conversion Error
-javax.faces.convert.DateTimeConverter.CONVERSION_detail = "{1}": Specified value is not a valid date/time.
-javax.faces.converter.DateTimeConverter.DATE=value must be a date
-javax.faces.converter.DateTimeConverter.DATE_detail=value must be a date, eg. {1}
-javax.faces.converter.DateTimeConverter.TIME=value must be a time
-javax.faces.converter.DateTimeConverter.TIME_detail=value must be a time, eg. {1}
-javax.faces.converter.DateTimeConverter.DATETIME=value must be a date and time
-javax.faces.converter.DateTimeConverter.DATETIME_detail=value must be a date and time, eg. {1}
-javax.faces.converter.DateTimeConverter.PATTERN_TYPE=a pattern or type attribute must be specified to convert the value
-javax.faces.converter.DoubleConverter.DOUBLE=value must be a number
-javax.faces.converter.DoubleConverter.DOUBLE_detail=value must be a number between 4.9E-324 and 1.7976931348623157E308
-javax.faces.converter.EnumConverter.ENUM=value must be convertible to an enum
-javax.faces.converter.EnumConverter.ENUM_detail=value must be convertible to an enum or from the enum that contains the constant {1}
-javax.faces.converter.EnumConverter.ENUM_NO_CLASS=value must be convertible to an enum or from the enum, but no enum class provided
-javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=value must be convertible to an enum or from the enum, but no enum class provided
-javax.faces.converter.FloatConverter.FLOAT=value must be a number
-javax.faces.converter.FloatConverter.FLOAT_detail=value must be a number between 1.4E-45 and 3.4028235E38
-javax.faces.converter.IntegerConverter.INTEGER=value must be a number
-javax.faces.converter.IntegerConverter.INTEGER_detail=value must be a number between -2147483648 and 2147483647
-javax.faces.converter.LongConverter.LONG=value must be a number
-javax.faces.converter.LongConverter.LONG_detail=must be a number between -9223372036854775808 and 9223372036854775807
-javax.faces.converter.NumberConverter.CURRENCY=value must be a currency amount
-javax.faces.converter.NumberConverter.CURRENCY_detail=value must be a currency amount, eg. {1}
-javax.faces.converter.NumberConverter.PERCENT=value must be a percentage amount
-javax.faces.converter.NumberConverter.PERCENT_detail=value must be a percentage amount, eg. {1}
-javax.faces.converter.NumberConverter.NUMBER=value must be a number
-javax.faces.converter.NumberConverter.NUMBER_detail=value must be a number
-javax.faces.converter.NumberConverter.PATTERN=value must be a number
-javax.faces.converter.NumberConverter.PATTERN_detail=value must be a number
-javax.faces.converter.ShortConverter.SHORT=value must be a number
-javax.faces.converter.ShortConverter.SHORT_detail=value must be a number between -32768 and 32767
-
-#JSF 1.1:
-javax.faces.convert.BigDecimalConverter.CONVERSION = value must be a number
-javax.faces.convert.BigDecimalConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.BigIntegerConverter.CONVERSION = value must be an integre
-javax.faces.convert.BigIntegerConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.BooleanConverter.CONVERSION = value must be true or false
-javax.faces.convert.BooleanConverter.CONVERSION_detail = value must be true or false
-javax.faces.convert.ByteConverter.CONVERSION = value must be a byte
-javax.faces.convert.ByteConverter.CONVERSION_detail = value must be a byte
-javax.faces.convert.CharacterConverter.CONVERSION = value must be a character
-javax.faces.convert.CharacterConverter.CONVERSION_detail = value must be a character
-javax.faces.convert.DateTimeConverter.CONVERSION = value must be a datetime
-javax.faces.convert.DateTimeConverter.CONVERSION_detail = value must be a datetime
-javax.faces.convert.DoubleConverter.CONVERSION = value must be a number
-javax.faces.convert.DoubleConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.FloatConverter.CONVERSION = value must be a number
-javax.faces.convert.FloatConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.IntegerConverter.CONVERSION = value must be an integer
-javax.faces.convert.IntegerConverter.CONVERSION_detail = value must be an integer
-javax.faces.convert.LongConverter.CONVERSION = value must be an integer
-javax.faces.convert.LongConverter.CONVERSION_detail = value must be a long integer
-javax.faces.convert.NumberConverter.CONVERSION = value must be a number
-javax.faces.convert.NumberConverter.CONVERSION_detail = value must be a number
-javax.faces.convert.ShortConverter.CONVERSION = value must be an integer
-javax.faces.convert.ShortConverter.CONVERSION_detail = value must be a short integer
-
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/resources/seam.properties
===================================================================
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/components.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/components.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/components.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<components xmlns="http://jboss.com/products/seam/components"
- xmlns:core="http://jboss.com/products/seam/core"
- xmlns:persistence="http://jboss.com/products/seam/persistence"
- xmlns:drools="http://jboss.com/products/seam/drools"
- xmlns:security="http://jboss.com/products/seam/security"
- xmlns:mail="http://jboss.com/products/seam/mail"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation=
- "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.3.xsd
- http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.3.xsd
- http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.3.xsd
- http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.3.xsd
- http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.3.xsd
- http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.3.xsd">
-
- <core:init debug="true" jndi-pattern="@jndiPattern@"/>
-
- <core:manager concurrent-request-timeout="500"
- conversation-timeout="120000"
- conversation-id-parameter="cid"/>
-
- <persistence:entity-manager-factory name="groovyEntityManagerFactory"
- persistence-unit-name="groovy" installed="@loadPersistenceUnits@"/>
-
- <!-- If Seam loads the persistence unit (JBoss 4.x), the EntityManagerFactory will be resolved from #{groovyEntityManagerFactory}.
- On JBoss AS 5, the EntityManagerFactory is retrieved from JNDI (the binding occurs during application deployment). -->
- <persistence:managed-persistence-context name="em" auto-create="true"
- entity-manager-factory="#{groovyEntityManagerFactory}"
- persistence-unit-jndi-name="java:/groovyEntityManagerFactory"/>
-
- <security:identity authenticate-method="#{authenticator.authenticate}"
- remember-me="true"/>
-
- <event type="org.jboss.seam.security.notLoggedIn">
- <action execute="#{redirect.captureCurrentView}"/>
- </event>
- <event type="org.jboss.seam.security.loginSuccessful">
- <action execute="#{redirect.returnToCapturedView}"/>
- </event>
-
- <mail:mail-session host="localhost" port="2525" username="test" password="test" />
-
- <!-- For use with jBPM pageflow or process management -->
- <!--
- <core:jbpm>
- <core:process-definitions></core:process-definitions>
- <core:pageflow-definitions></core:pageflow-definitions>
- </core:jbpm>
- -->
-
-</components>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/faces-config.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/faces-config.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,6 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<faces-config version="2.1"
- xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">
-</faces-config>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,12 +0,0 @@
-<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
- <deployment>
- <dependencies>
- <module name="org.apache.log4j" export="true"/>
- <module name="org.dom4j" export="true"/>
- <module name="org.apache.commons.logging" export="true"/>
- <module name="org.apache.commons.collections" export="true"/>
- <module name="javax.faces.api" export="true"/>
- <module name="com.sun.jsf-impl" export="true"/>
- </dependencies>
- </deployment>
-</jboss-deployment-structure>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/pages.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/pages.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/pages.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<pages xmlns="http://jboss.com/products/seam/pages"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.3.xsd"
-
- no-conversation-view-id="/main.xhtml"
- login-view-id="/home.xhtml">
-
- <page view-id="/register.xhtml">
-
- <action if="#{validation.failed}"
- execute="#{register.invalid}"/>
-
- <navigation>
- <rule if="#{register.registered}">
- <redirect view-id="/home.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/home.xhtml">
-
- <navigation>
- <rule if="#{identity.loggedIn}">
- <redirect view-id="/main.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/password.xhtml"
- login-required="true">
-
- <navigation>
- <rule if="#{changePassword.changed}">
- <redirect view-id="/main.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/main.xhtml"
- login-required="true">
-
- <navigation from-action="#{hotelBooking.selectHotel(hot)}">
- <redirect view-id="/hotel.xhtml"/>
- </navigation>
-
- </page>
-
- <page view-id="/hotel.xhtml"
- conversation-required="true">
-
- <description>View hotel: #{hotel.name}</description>
-
- <navigation from-action="#{hotelBooking.bookHotel}">
- <redirect view-id="/book.xhtml"/>
- </navigation>
-
- </page>
-
- <page view-id="/book.xhtml"
- conversation-required="true">
-
- <description>Book hotel: #{hotel.name}</description>
-
- <navigation from-action="#{hotelBooking.setBookingDetails}">
- <rule if="#{hotelBooking.bookingValid}">
- <redirect view-id="/confirm.xhtml"/>
- </rule>
- </navigation>
-
- </page>
-
- <page view-id="/confirm.xhtml"
- conversation-required="true">
-
- <description>Confirm booking: #{booking.description}</description>
-
- <navigation from-action="#{hotelBooking.confirm}">
- <redirect view-id="/main.xhtml"/>
- </navigation>
-
- </page>
-
- <page view-id="*">
-
- <navigation from-action="#{identity.logout}">
- <redirect view-id="/home.xhtml"/>
- </navigation>
-
- <navigation from-action="#{hotelBooking.cancel}">
- <redirect view-id="/main.xhtml"/>
- </navigation>
-
- </page>
-
- <exception class="org.jboss.seam.security.NotLoggedInException">
- <redirect view-id="/home.xhtml">
- <message severity="warn">You must be logged in to use this feature</message>
- </redirect>
- </exception>
-
- <exception class="javax.faces.application.ViewExpiredException">
- <redirect view-id="/home.xhtml">
- <message severity="warn">Session expired, please log in again</message>
- </redirect>
- </exception>
-
-</pages>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/web.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/WEB-INF/web.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,74 +0,0 @@
-<?xml version="1.0" ?>
-<web-app xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
- version="3.0">
-
- <!-- Seam -->
-
- <listener>
- <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
- </listener>
-
- <filter>
- <filter-name>Seam Filter</filter-name>
- <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
- </filter>
-
- <filter-mapping>
- <filter-name>Seam Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
- <servlet>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Seam Resource Servlet</servlet-name>
- <url-pattern>/seam/resource/*</url-pattern>
- </servlet-mapping>
-
- <!-- Facelets development mode (disable in production) -->
-
- <context-param>
- <param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
- </context-param>
-
- <!-- JSF -->
-
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
-
- <context-param>
- <param-name>org.richfaces.enableControlSkinning</param-name>
- <param-value>false</param-value>
- </context-param>
-
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.seam</url-pattern>
- </servlet-mapping>
-
- <security-constraint>
- <display-name>Restrict raw XHTML Documents</display-name>
- <web-resource-collection>
- <web-resource-name>XHTML</web-resource-name>
- <url-pattern>*.xhtml</url-pattern>
- </web-resource-collection>
- <auth-constraint>
- <role-name>NONE</role-name>
- </auth-constraint>
- </security-constraint>
-
-</web-app>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/conversations.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/conversations.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/conversations.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,34 +0,0 @@
-<!-- DOCTYPE div PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" -->
-<div xmlns="http://www.w3.org/1999/xhtml"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:s="http://jboss.org/schema/seam/taglib">
-
-<div class="section">
- <h1><h:outputText rendered="#{not empty conversationList}" value="Workspaces"/></h1>
-</div>
-
-<div class="section">
- <h:form id="ConversationListForm">
- <h:dataTable id="ConversationListDataTable" value="#{conversationList}" var="entry">
- <h:column id="column1">
- <h:commandLink id="EntryDescriptionLink" action="#{entry.select}" value="#{entry.description}"/>
-  
- <h:outputText id="CurrentEntry" value="[current]" rendered="#{entry.current}"/>
- </h:column>
- <h:column id="column2">
- <h:outputText id="EntryStartDateTime" value="#{entry.startDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
- -
- <h:outputText id="EntryLastDateTime" value="#{entry.lastDatetime}">
- <f:convertDateTime type="time" pattern="hh:mm"/>
- </h:outputText>
- </h:column>
- </h:dataTable>
- </h:form>
-</div>
-
-</div>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/screen.css
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/screen.css 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/screen.css 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,274 +0,0 @@
-/* Setup defaults since variable in browsers
------------------------------------------------ */
-body, div, dd, dt, dl, img, ul, ol, li, p, h1, h2, h3, h4, h5, form, hr, fieldset {
- margin: 0;
- padding: 0;
-}
-/* Element Defaults
------------------------------------------------ */
-html {
- height: 100%;
- background-color: #DBD4C6;
-}
-img {
- border: 0;
-}
-body {
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: small;
- line-height: 1.25em;
- color: #362F2D;
- position: relative;
- width: 760px;
- height: 100%;
- margin-left: auto;
- margin-right: auto;
-}
-label {
- font-weight: bold;
- color: #5E5147;
-}
-input {
- border: 1px solid #C3BBB6;
- padding: 4px;
- margin: 5px 0;
- background: #fff url(../img/input.bg.gif) 0 0 repeat-x;
-}
-select {
- border: 1px solid #C3BBB6;
- padding: 4px;
- margin: 5px 0;
- background: #fff url(../img/input.bg.gif) 0 0 repeat-x;
-}ol, ul {
- margin: 10px 0px 10px 6px;
-}
-li {
- margin: 10px 12px;
-}
-fieldset {
- border: 0;
-}
-/* Layout
------------------------------------------------ */
-#document {
- padding: 0 1px;
- background: #fff url(../img/bg.gif) 0 0 repeat-y;
- float: left;
- border-bottom: 1px solid #C3BBB6;
-}
-#header {
- float: left;
- width: 758px;
- height: 46px;
- background: url(../img/hdr.bg.gif) 0 0 repeat-x;
-}
-#container {
- float: left;
- width: 758px;
- background: url(../img/hdr.bar.jpg) 0 0 repeat-x;
-}
-#sidebar {
- float: left;
- width: 190px;
- margin-top: 96px;
- padding: 20px 10px 0 10px;
- background: url(../img/sdb.bg.gif) 0 0 no-repeat;
-}
-#content {
- float: left;
- width: 548px;
- margin-top: 75px;
- padding-top: 5px;
- background: #fff url(../img/cnt.bg.gif) 0 0 repeat-x;
-}
-#footer {
- clear: both;
- margin-top: 40px;
- float: left;
- padding: 20px;
- border-top: 1px solid #C3BBB6;
- background-color: #fff;
- width: 718px;
- text-align: right;
-}
-/* General
------------------------------------------------ */
-input[type="submit"], input[type="button"] {
- font-weight: bold;
- color: #fff;
- border: 1px solid #5D1414;
- height: 26px;
- background: #fff url(../img/btn.bg.gif) 0 0 repeat-x;
- border-style: none;
-}
-.center {
- text-align: center;
-}
-.entry {
- clear: both;
- padding-top: 10px;
-}
-.entry .label {
- float: left;
- padding-top: 10px;
- padding-right: 5px;
- font-weight: bold;
- width: 150px;
- text-align: right;
-}
-.entry .output {
- float: left;
- width: 250px;
- padding-top: 10px;
- text-align: left;
-}
-.entry .input {
- float: left;
- width: 250px;
- text-align: left;
-}
-/* Sidebar
------------------------------------------------ */
-.notes {
- text-align: center;
- font-size: small;
-}
-.subnotes {
- margin-top: 1em;
- font-size: small;
-}
-.errors {
- font-size: small;
- font-weight: bold;
- text-align: center;
- color: #600;
-}
-.errors div {
- text-align: left;
-}
-.errors input {
- border: 1px solid #600;
-}
-.errors ul {
- list-style: none;
-}
-.buttonBox {
- text-align: center;
- padding: 5px 0;
-}
-#sidebar p {
- font-size: small;
- color: #8B7869;
- line-height: 150%;
- padding-bottom: 10px;
-}
-#sidebar li {
- font-size: small;
- color: #8B7869;
-}
-#sidebar h1 {
- line-height: normal;
- font-weight: bold;
- font-size: small;
-}
-/*
-#sidebar p:hover {
- color: #362F2D;
-}
-*/
-/* Content
------------------------------------------------ */
-#content .section {
- float: left;
- width: 518px;
- padding: 15px 15px 0 15px;
-}
-#content .section h1 {
- font-family: "Trebuchet MS", Arial, sans-serif;
- line-height: normal;
- font-weight: normal;
- font-size: large;
-}
-#content .section p {
- line-height: 150%;
- padding: 10px 0;
- font-size: small;
-}
-#content table {
- width: 100%;
- border: 1px solid #D2C9C4;
- border-collapse: collapse;
-}
-#content table caption {
- padding-bottom: 6px;
- text-align: left;
- font-weight: bold;
-}
-#content table thead th {
- border-left: 1px solid #D2C9C4;
- background: #fff url(../img/th.bg.gif) 0 100% repeat-x;
- border-bottom: 1px solid #D2C9C4;
- padding: 6px;
- text-align: left;
- font-size: small;
-}
-#content table tbody td {
- border-left: 1px solid #E4DBD5;
- padding: 4px;
- border-bottom: 1px solid #D2C9C4;
- font-size: small;
-}
-#content dt {
- font-weight: bold;
- float: left;
- width: 33%;
-}
-#content dd {
- padding-left: 10px;
- float: left;
- width: 66%;
-}
-#radio table {
- border: 0px;
-}
-#content .input table,
-#content .input tbody tr td,
-#radio table tr td {
- border: 0px;
- border-left: 0px;
- border-bottom: 0px;
-}
-/* Header
------------------------------------------------ */
-#title {
- float: left;
- padding: 1px 0 6px 15px;
-}
-#status {
- color: #C7B299;
- float: right;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-weight: bold;
- font-size: x-small;
- text-align: right;
- padding-top: 14px;
- padding-right: 15px;
-}
-#status a {
- color: #C7B299;
- text-decoration: none;
-}
-/* Homepage Modifications
------------------------------------------------ */
-#pgHome #container {
- background: url(../img/hdr.ad.jpg) 0 0 repeat-x;
-}
-#pgHome #sidebar {
- margin-top: 207px;
-}
-#pgHome #content {
- margin-top: 183px;
-}
-#pgHome #sidebar input[type="submit"] {
- height: 30px;
-}
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/trailblazer_main.css
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/trailblazer_main.css 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/css/trailblazer_main.css 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,148 +0,0 @@
-* {
- margin: 0px;
- padding: 0px;
- border: none;
-}
-
-body {
- font: 1em verdana, arial, sans-serif;
- background: #CCCCCC;
-}
-
-div#main {
- margin-left: 0px;
- width: 751px;
- background: #ecefdf;
-}
-
-div#top,div#pictures{
-}
-
-div#pictures img {
- float:left;
-}
-
-img#head1 {
- margin-right: 3px;
-}
-
-img#head2 {
- margin-right: 4px;
-}
-
-div.trail {
- clear:both;
- margin-left: 50px;
- margin-top: 0px;
- margin-right: 50px
-}
-
-div.foot {
- margin-left: 50px;
- margin-right: 50px;
- margin-top: 50px;
- text-align: center;
- font-size: .5em;
- height: 36px;
-}
-
-div.trail h1 {
- margin-top: -30px;
- margin-left: -50px;
- font-size: 1.2em;
- font-weight: bold;
- padding-left: .4em;
-}
-
-div.trail h2 {
- float: left;
- font-size: 1em;
- font-weight: bold;
- padding-left: .4em;
-}
-
-div.trail h3 {
- float: left;
- font-size: .8em;
- font-weight: bold;
- margin-left: -1.4em;
- margin-bottom: 1em;
-}
-
-
-div.trail p {
- clear: both;
- margin-top: 20px;
- font-size: .8em;
- text-decoration: none;
-}
-
-div#next_trail {
- margin-left: 36px;
-}
-
-div.numbox {
- border: thin solid black;
- margin-left: -.8em;
- float: left;
- background: #ffffff;
- padding: .2em .35em .3em;
- font-style: normal;
- font-weight: bold;
- font-size: 1.4em;
-}
-
-div.figure {
- text-align: center;
- font-size: .6em;
- margin-top: 30px;
-}
-
-div.figure img {
- display: block;
- margin-right: auto;
- margin-left: auto;
-}
-
-code {
- font: 1.1em "Courier New", Courier, mono;
-}
-
-code.block {
- white-space: pre;
- font: 10pt "Courier New", Courier, mono;
- display: block;
- border-style: dashed;
- border-width: thin;
- padding: .5em;
- background: #ffffff;
- margin: 20px;
-}
-
-div.foot_image {
- float: left;
- height: 86px;
-}
-
-a:active {
- color : #666666;
- text-decoration: none;
-}
-
-a:hover {
- color : #000000;
- background-color : #D6E0FE;
- text-decoration: none;
-}
-
-a:link {
- color : #005EB6;
- text-decoration: none;
-}
-
-a:visited {
- color : #888888;
- text-decoration: none;
-}
-
-
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/home.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/home.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/home.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,49 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<h:html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib">
-<h:head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>JBoss Suites: Seam Framework</title>
- <link href="css/screen.css" rel="stylesheet" type="text/css" />
-</h:head>
-<h:body id="pgHome">
-<f:view>
-<div id="document">
- <div id="header">
- <div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
- </div>
- <div id="container">
- <div id="sidebar">
- <h:form id="login">
- <fieldset>
- <div>
- <h:outputLabel for="username">Login Name</h:outputLabel>
- <h:inputText id="username" value="#{identity.username}" style="width: 175px;"/>
- <div class="errors"><h:message for="username"/></div>
- </div>
- <div>
- <h:outputLabel for="password">Password</h:outputLabel>
- <h:inputSecret id="password" value="#{identity.password}" style="width: 175px;"/>
- </div>
- <div class="errors"><h:messages globalOnly="true"/></div>
- <div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
- <div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
- <div class="subnotes">
- Or use a demo account:
- <ul>
- <li>gavin/foobar</li>
- <li>demo/demo</li>
- </ul>
- </div>
- </fieldset>
- </h:form>
- </div>
- </div>
- <div id="footer">Created with JBoss EJB 3.0, Seam, JSF (Mojarra), and Facelets</div>
-</div>
-</f:view>
-</h:body>
-</h:html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/btn.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/cal-next.png
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/cal-prev.png
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/cnt.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/dtpick.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.ad.jpg
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.bar.jpg
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/hdr.title.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/header_line.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/input.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/sdb.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/spinner.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/img/th.bg.gif
===================================================================
(Binary files differ)
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/index.html
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/index.html 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/index.html 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,5 +0,0 @@
-<html>
-<head>
- <meta http-equiv="Refresh" content="0; URL=home.seam">
-</head>
-</html>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/password.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/password.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/password.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,82 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- template="template.xhtml">
-
-<!-- content -->
-<ui:define name="content">
-<div class="section">
- <h1>Change Your Password</h1>
-</div>
-<div class="section">
- <h:form id="setpassword">
-
- <f:facet name="aroundInvalidField">
- <s:span id="Error" styleClass="errors"/>
- </f:facet>
- <f:facet name="afterInvalidField">
- <s:div id="Message" styleClass="errors">
- <s:message/>
- </s:div>
- </f:facet>
-
- <fieldset>
-
- <div class="entry">
- <div class="label"><h:outputLabel for="password">Password:</h:outputLabel></div>
- <div class="input">
- <s:decorate id="PasswordDecorate">
- <h:inputSecret id="password" value="#{user.password}" required="true">
- <!--<s:validate/>-->
- <f:validator validatorId="org.jboss.seam.ui.ModelValidator"/>
- </h:inputSecret>
- </s:decorate>
- </div>
- </div>
-
- <div class="entry">
- <div class="label"><h:outputLabel for="verify">Verify:</h:outputLabel></div>
- <div class="input">
- <s:decorate id="VerifyDecorate">
- <h:inputSecret id="verify" value="#{changePassword.verify}" required="true"/>
- </s:decorate>
- </div>
- </div>
-
- <div class="entry errors">
- <h:messages id="Messages" globalOnly="true"/>
- </div>
-
- <div class="entry">
- <div class="label"> </div>
- <div class="input">
- <h:commandButton id="change" value="Change" action="#{changePassword.changePassword}"/> 
- <s:button id="cancel" value="Cancel" view="/main.xhtml"/>
- </div>
- </div>
-
- </fieldset>
-
- </h:form>
-</div>
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-<h1>Simple things should be easy</h1>
-<p>
- (And so should some complex things.) You shouldn't have to write four different classes
- just to change a password. Traditional J2EE architectures require that developers spend
- more time writing code to make the frameworks happy, than they ever get to spend writing
- code to make the user happy. Seam lets you reduce the size of your code dramatically.
- And that reduces bugs. And it makes refactoring easier. And it makes delivering new
- functionality quicker. Productivity matters. But with Seam, JSF, EJB 3.0 and jBPM, you
- don't need to sacrifice the ability to handle complex problems just to achieve great
- productivity.
-</p>
-</ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/register.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/register.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/register.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,102 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<h:html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:a="http://richfaces.org/a4j">
-<h:head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>JBoss Suites: Seam Framework</title>
- <link href="css/screen.css" rel="stylesheet" type="text/css" />
-</h:head>
-<h:body id="pgHome">
-<div id="document">
- <div id="header">
- <div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
- </div>
- <div id="container">
- <div id="content">
- <div class="section">
- <h1>Register</h1>
- </div>
- <div class="section">
-
- <h:form id="register">
- <fieldset>
-
- <s:validateAll>
-
- <f:facet name="aroundInvalidField">
- <s:span styleClass="errors"/>
- </f:facet>
- <f:facet name="afterInvalidField">
- <s:div styleClass="errors">
- <s:message/>
- </s:div>
- </f:facet>
-
- <div class="entry">
- <div class="label"><h:outputLabel for="username">Username:</h:outputLabel></div>
- <div class="input">
- <s:decorate id="usernameDecorate">
- <h:inputText id="username" value="#{user.username}" required="true">
- <a:ajax event="blur" render="usernameDecorate"/>
- </h:inputText>
- </s:decorate>
- </div>
- </div>
-
- <div class="entry">
- <div class="label"><h:outputLabel for="name">Real Name:</h:outputLabel></div>
- <div class="input">
- <s:decorate id="nameDecorate">
- <h:inputText id="name" value="#{user.name}" required="true">
- <a:ajax event="blur" render="nameDecorate"/>
- </h:inputText>
- </s:decorate>
- </div>
- </div>
-
- <div class="entry">
- <div class="label"><h:outputLabel for="password">Password:</h:outputLabel></div>
- <div class="input">
- <s:decorate id="passwordDecorate">
- <h:inputSecret id="password" value="#{user.password}" required="true"/>
- </s:decorate>
- </div>
- </div>
-
- <div class="entry">
- <div class="label"><h:outputLabel for="verify">Verify Password:</h:outputLabel></div>
- <div class="input">
- <s:decorate id="verifyDecorate">
- <h:inputSecret id="verify" value="#{register.verify}" required="true"/>
- </s:decorate>
- </div>
- </div>
-
- </s:validateAll>
-
- <div class="entry errors">
- <h:messages id="messages" globalOnly="true"/>
- </div>
-
- <div class="entry">
- <div class="label"> </div>
- <div class="input">
- <h:commandButton id="register" value="Register" action="#{register.register}"/> 
- <s:button id="cancel" value="Cancel" view="/home.xhtml"/>
- </div>
- </div>
-
- </fieldset>
- </h:form>
-
- </div>
- </div>
- </div>
- <div id="footer">Created with JBoss EJB 3.0, Seam, JSF (Mojarra), and Facelets</div>
-</div>
-</h:body>
-</h:html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/template.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/template.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/main/webapp/template.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,35 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<h:html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:s="http://jboss.org/schema/seam/taglib">
-<h:head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>JBoss Suites: Seam Framework</title>
- <link href="css/screen.css" rel="stylesheet" type="text/css" />
-</h:head>
-<h:body>
-
-<div id="document">
- <div id="header">
- <div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
- <div id="status">
- Welcome #{user.name}
- | <s:link id="search" view="/main.xhtml" value="Search" propagation="none"/>
- | <s:link id="settings" view="/password.xhtml" value="Settings" propagation="none"/>
- | <s:link id="logout" action="#{identity.logout}" value="Logout"/>
- </div>
- </div>
- <div id="container">
- <div id="sidebar">
- <ui:insert name="sidebar"/>
- </div>
- <div id="content">
- <ui:insert name="content"/>
- <ui:include src="conversations.xhtml" />
- </div>
- </div>
- <div id="footer">Created with Groovy, JBoss Seam, and Facelets</div>
-</div>
-</h:body>
-</h:html>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/WEB-INF/metawidget.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/WEB-INF/metawidget.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/WEB-INF/metawidget.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,73 +0,0 @@
-<?xml version="1.0"?>
-<metawidget xmlns="http://metawidget.org"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://metawidget.org http://metawidget.org/xsd/metawidget-1.0.xsd" version="1.0">
-
- <htmlMetawidget xmlns="java:org.metawidget.faces.component.html">
- <rendererType>
- <string>div</string>
- </rendererType>
- <parameter>
- <string>divStyleClasses</string>
- <string>entry,label,required,output,error errors</string>
- </parameter>
-
- <inspector>
- <compositeInspector xmlns="java:org.metawidget.inspector.composite" config="CompositeInspectorConfig">
- <inspectors>
- <array>
- <propertyTypeInspector xmlns="java:org.metawidget.inspector.propertytype" config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>
- <groovyPropertyStyle xmlns="java:org.metawidget.inspector.impl.propertystyle.groovy"/>
- </propertyStyle>
- </propertyTypeInspector>
- <metawidgetAnnotationInspector xmlns="java:org.metawidget.inspector.annotation" config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>
- <groovyPropertyStyle xmlns="java:org.metawidget.inspector.impl.propertystyle.groovy"/>
- </propertyStyle>
- </metawidgetAnnotationInspector>
- <facesAnnotationInspector xmlns="java:org.metawidget.inspector.faces" config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>
- <groovyPropertyStyle xmlns="java:org.metawidget.inspector.impl.propertystyle.groovy"/>
- </propertyStyle>
- </facesAnnotationInspector>
- <jpaInspector xmlns="java:org.metawidget.inspector.jpa" config="JpaInspectorConfig">
- <propertyStyle>
- <groovyPropertyStyle xmlns="java:org.metawidget.inspector.impl.propertystyle.groovy"/>
- </propertyStyle>
- </jpaInspector>
- <beanValidationInspector xmlns="java:org.metawidget.inspector.beanvalidation" config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>
- <groovyPropertyStyle xmlns="java:org.metawidget.inspector.impl.propertystyle.groovy"/>
- </propertyStyle>
- </beanValidationInspector>
- </array>
- </inspectors>
- </compositeInspector>
- </inspector>
-
- <widgetBuilder>
- <compositeWidgetBuilder xmlns="java:org.metawidget.widgetbuilder.composite" config="CompositeWidgetBuilderConfig">
- <widgetBuilders>
- <array>
- <overriddenWidgetBuilder xmlns="java:org.metawidget.faces.component.widgetbuilder"/>
- <readOnlyWidgetBuilder xmlns="java:org.metawidget.faces.component.html.widgetbuilder"/>
- <richFacesWidgetBuilder xmlns="java:org.metawidget.faces.component.html.widgetbuilder.richfaces"/>
- <htmlWidgetBuilder xmlns="java:org.metawidget.faces.component.html.widgetbuilder"/>
- </array>
- </widgetBuilders>
- </compositeWidgetBuilder>
- </widgetBuilder>
-
- <widgetProcessors>
- <array>
- <requiredAttributeProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- <standardBindingProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- <readableIdProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- <standardConverterProcessor xmlns="java:org.metawidget.faces.component.widgetprocessor"/>
- </array>
- </widgetProcessors>
-
- </htmlMetawidget>
-
-</metawidget>
\ No newline at end of file
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/book.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/book.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/book.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,51 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:a="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich"
- xmlns:m="http://metawidget.org/faces"
- template="template.xhtml">
-
-<!-- content -->
-<ui:define name="content">
-<div class="section">
- <h1>Book Hotel</h1>
-</div>
-<div class="section">
- <h:form id="booking">
- <fieldset>
-
- <m:metawidget value="#{hotel}" readOnly="#{true}"/>
-
- <s:validateAll>
-
- <m:metawidget value="#{booking}" validatorClass="org.metawidget.faces.component.validator.RequiredValidator">
- <f:param name="divStyleClasses" value="entry,label,required,input,error errors"/>
- </m:metawidget>
-
- </s:validateAll>
-
- <div class="entry errors">
- <h:messages globalOnly="true"/>
- </div>
-
- <div class="entry">
- <div class="label"> </div>
- <div class="input">
- <h:commandButton id="proceed" value="Proceed" action="#{hotelBooking.setBookingDetails}"/> 
- <s:button id="cancel" value="Cancel" action="#{hotelBooking.cancel}"/>
- </div>
- </div>
- </fieldset>
- </h:form>
-</div>
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-</ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/confirm.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/confirm.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/confirm.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,44 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:m="http://metawidget.org/faces"
- template="template.xhtml">
-
-<!-- content -->
-<ui:define name="content">
-<div class="section">
- <h1>Confirm Hotel Booking</h1>
-</div>
-<div class="section">
- <h:form id="confirm">
- <fieldset>
-
- <m:metawidget value="#{hotel}" readOnly="#{true}"/>
-
- <m:metawidget value="#{booking}" readOnly="#{true}">
- <h:outputText value="#{booking.total}"/>
- <m:stub value="#{booking.creditCardExpiryMonth}"/>
- <m:stub value="#{booking.creditCardExpiryYear}"/>
- </m:metawidget>
-
- <div class="entry">
- <div class="label"> </div>
- <div class="input">
- <h:commandButton id="confirm" value="Confirm" action="#{hotelBooking.confirm}"/> 
- <s:button id="revise" value="Revise" view="/book.xhtml"/> 
- <h:commandButton id="cancel" value="Cancel" action="#{hotelBooking.cancel}"/>
- </div>
- </div>
- </fieldset>
- </h:form>
-</div>
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-</ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/hotel.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/hotel.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/hotel.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,34 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:m="http://metawidget.org/faces"
- template="template.xhtml">
-
-<!-- content -->
-<ui:define name="content">
-<div class="section">
- <h1>View Hotel</h1>
-</div>
-<div class="section">
-
- <m:metawidget value="#{hotel}" readOnly="#{true}"/>
-
-</div>
-<div class="section">
- <h:form id="hotel">
- <fieldset class="buttonBox">
- <h:commandButton id="bookHotel" action="#{hotelBooking.bookHotel}" value="Book Hotel"/> 
- <h:commandButton id="cancel" action="#{hotelBooking.cancel}" value="Back to Search"/>
- </fieldset>
- </h:form>
-</div>
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-</ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/main.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/main.xhtml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/groovybooking-web/src/metawidget/webapp/main.xhtml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,119 +0,0 @@
-<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:s="http://jboss.org/schema/seam/taglib"
- xmlns:a="http://richfaces.org/a4j"
- template="template.xhtml">
-
-<!-- content -->
-<ui:define name="content">
-
-<div class="section">
- <h:form id="main">
-
- <span class="errors">
- <h:messages id="messages" globalOnly="true"/>
- </span>
-
- <h1>Search Hotels</h1>
- <fieldset>
- <h:inputText id="searchString" value="#{hotelSearch.searchString}" style="width: 165px;">
- <a:ajax event="keyup" listener="#{hotelSearch.find}" render="searchResults" />
- </h:inputText>
-  
- <a:commandButton id="findHotels" value="Find Hotels" action="#{hotelSearch.find}" render="searchResults"/>
-  
- <a:status>
- <f:facet name="start">
- <h:graphicImage id="Spinner" value="/img/spinner.gif"/>
- </f:facet>
- </a:status>
- <br/>
- <h:outputLabel for="pageSize">Maximum results:</h:outputLabel> 
- <h:selectOneMenu value="#{hotelSearch.pageSize}" id="pageSize">
- <f:selectItem itemLabel="5" itemValue="5"/>
- <f:selectItem itemLabel="10" itemValue="10"/>
- <f:selectItem itemLabel="20" itemValue="20"/>
- </h:selectOneMenu>
- </fieldset>
-
- </h:form>
-</div>
-
-<a:outputPanel id="searchResults">
- <div class="section">
- <h:outputText id="NoHotelsFoundMessage" value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
- <h:dataTable id="hotels" value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
- <h:column>
- <f:facet name="header">Name</f:facet>
- #{hot.name}
- </h:column>
- <h:column>
- <f:facet name="header">Address</f:facet>
- #{hot.address}
- </h:column>
- <h:column>
- <f:facet name="header">City, State</f:facet>
- #{hot.city}, #{hot.state}, #{hot.country}
- </h:column>
- <h:column>
- <f:facet name="header">Zip</f:facet>
- #{hot.zip}
- </h:column>
- <h:column>
- <f:facet name="header">Action</f:facet>
- <s:link id="viewHotel" value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
- </h:column>
- </h:dataTable>
- <s:link id="MoreResultsLink" value="More results" action="#{hotelSearch.nextPage}" rendered="#{hotelSearch.nextPageAvailable}"/>
- </div>
-</a:outputPanel>
-
-<div class="section">
- <h1>Current Hotel Bookings</h1>
-</div>
-<div class="section">
- <h:form id="bookings">
- <h:outputText value="No Bookings Found" rendered="#{bookings.rowCount==0}"/>
- <h:dataTable id="bookings" value="#{bookings}" var="book" rendered="#{bookings.rowCount>0}">
- <h:column>
- <f:facet name="header">Name</f:facet>
- #{book.hotel.name}
- </h:column>
- <h:column>
- <f:facet name="header">Address</f:facet>
- #{book.hotel.address}
- </h:column>
- <h:column>
- <f:facet name="header">City, State</f:facet>
- #{book.hotel.city}, #{book.hotel.state}
- </h:column>
- <h:column>
- <f:facet name="header">Check in date</f:facet>
- <h:outputText value="#{book.checkinDate}"/>
- </h:column>
- <h:column>
- <f:facet name="header">Check out date</f:facet>
- <h:outputText value="#{book.checkoutDate}"/>
- </h:column>
- <h:column>
- <f:facet name="header">Confirmation number</f:facet>
- #{book.id}
- </h:column>
- <h:column>
- <f:facet name="header">Action</f:facet>
- <h:commandLink id="cancel" value="Cancel" action="#{bookingList.cancel}"/>
- </h:column>
- </h:dataTable>
- </h:form>
-</div>
-
-</ui:define>
-
-<!-- sidebar -->
-<ui:define name="sidebar">
-</ui:define>
-
-</ui:composition>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>groovybooking</artifactId>
- <parent>
- <groupId>org.jboss.seam</groupId>
- <artifactId>examples-ee6</artifactId>
- <version>2.3.0.Beta2-redhat-1</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
- <packaging>pom</packaging>
- <name>Metawidget Groovy Booking Example (EE6)</name>
-
- <properties>
- <example.name>groovybooking</example.name>
- </properties>
-
- <modules>
- <module>groovybooking-web</module>
- <module>groovybooking-tests</module>
- </modules>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
- <artifactId>groovybooking-web</artifactId>
- <version>${project.version}</version>
- <type>war</type>
- </dependency>
- </dependencies>
- </dependencyManagement>
-</project>
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/readme.txt
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/readme.txt 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/groovybooking/readme.txt 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,29 +0,0 @@
-Seam Metawidget GroovyBooking Example
-=====================================
-
-This is the Hotel Booking example implemented in Groovy Beans, Metawidget
-and Hibernate JPA. This application runs on JBoss AS, but is deployed as
-an *exploded* WAR rather than an EAR.
-
-A majority of source files in this project comes from non-metawidget GroovyBooking example
-in the distribution. Metawidget resource files are placed under src/metawidget
-subdirectory of a booking-web submodule.
-
-To deploy the example to JBossAS, follow these steps:
-
-* In the example root directory run:
-
- mvn clean package
-
-* Set JBOSS_HOME environment property.
-
-* In the groovybooking-web directory run:
-
- mvn jboss:hard-deploy
-
-When deploying to JBossAS 4, use a -Pjbossas42 maven profile to package the
-application.
-
-* Open this URL in a web browser: http://localhost:8080/jboss-seam-metawidget-grovybooking
-
-For further Metawidget documentation see http://metawidget.org/documentation.html
Deleted: branches/enterprise/WFK-2_0/examples-ee6/metawidget/readme.txt
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/metawidget/readme.txt 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/metawidget/readme.txt 2012-05-30 10:39:08 UTC (rev 14814)
@@ -1,23 +0,0 @@
-Metawidget Examples
-===================
-
-These examples demonstrate the use of Metawidget. Metawidget is a 'smart User
-Interface widget' that populates itself, at runtime, with UI components to
-match the properties of business objects. While Metawidget supports many other
-user interface platforms, only the Metawidget JSF componenents are being used
-in these examples.
-
-The reason we are hosting metawidget examples are because Metawidget embraces
-the same declarative style of programming that Seam espouses. Through the use
-of annotations, you can control how the user interface is dynamically built and
-layed out, reducing a lot of boilerplate code that you are used to writing (or
-generating).
-
-You can find information about Metawidget on the project's homepage:
-
-http://metawidget.org
-
-Thanks to Richard Kennard for porting the original Seam examples to use the
-Metawidget JSF components.
-
-Metawidget version: 0.75
Modified: branches/enterprise/WFK-2_0/examples-ee6/pom.xml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/pom.xml 2012-05-30 10:31:06 UTC (rev 14813)
+++ branches/enterprise/WFK-2_0/examples-ee6/pom.xml 2012-05-30 10:39:08 UTC (rev 14814)
@@ -28,9 +28,6 @@
<module>jpa</module>
<module>mail</module>
<module>messages</module>
-<!-- <module>metawidget/booking</module>
- <module>metawidget/groovybooking</module>
--->
<module>nestedbooking</module>
<!-- <module>numberguess</module> -->
<module>openid</module>
More information about the seam-commits
mailing list