[seam-commits] Seam SVN: r14394 - in branches/community/Seam_2_3/examples-ee6: todo and 35 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Mar 14 13:43:09 EDT 2012


Author: manaRH
Date: 2012-03-14 13:43:07 -0400 (Wed, 14 Mar 2012)
New Revision: 14394

Added:
   branches/community/Seam_2_3/examples-ee6/todo/
   branches/community/Seam_2_3/examples-ee6/todo/pom.xml
   branches/community/Seam_2_3/examples-ee6/todo/readme.txt
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/pom.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/.gpd.todo.jpdl.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/META-INF/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/META-INF/jboss-deployment-structure.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/pom.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/Login.java
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/TodoList.java
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/hibernate.cfg.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/jbpm.cfg.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/seam.properties
   branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/todo.jpdl.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/pom.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/TodoTest.java
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/selenium/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/selenium/SeleniumTodoTest.java
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-ftest/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-ftest/testng.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-integration/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-integration/arquillian.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/WEB-INF/
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/WEB-INF/components.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/seam.properties
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/pom.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/components.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/web.xml
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/index.html
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/login.jsp
   branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp
Modified:
   branches/community/Seam_2_3/examples-ee6/pom.xml
Log:
added todo example in EE6 variant JBSEAM-4852

Modified: branches/community/Seam_2_3/examples-ee6/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/pom.xml	2012-03-14 17:41:32 UTC (rev 14393)
+++ branches/community/Seam_2_3/examples-ee6/pom.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -8,7 +8,6 @@
         <relativePath>../jboss-seam-parent/pom.xml</relativePath>
     </parent>
 
-    <groupId>org.jboss.seam</groupId>
     <artifactId>examples-ee6</artifactId>
     <packaging>pom</packaging>
 
@@ -19,6 +18,7 @@
         <module>booking</module>
         <module>mail</module>
         <module>messages</module>
+        <module>todo</module>
     </modules>
 
     <build>
@@ -55,6 +55,19 @@
 		                </lifecycleMappingMetadata>
 		            </configuration>
 		        </plugin>
+		         <plugin>
+                <groupId>org.jboss.as.plugins</groupId>
+                <artifactId>jboss-as-maven-plugin</artifactId>
+                <version>7.1.0.Final</version>
+                <executions>
+                    <execution>
+                        <phase></phase>
+                        <goals>
+                            <goal>deploy</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
             </plugins>
         </pluginManagement>
     </build>

Added: branches/community/Seam_2_3/examples-ee6/todo/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/pom.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/pom.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,48 @@
+<?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</groupId>
+    <artifactId>todo</artifactId>
+    
+    <parent>
+        <groupId>org.jboss.seam</groupId>
+        <artifactId>examples-ee6</artifactId>
+        <version>2.3.0.Beta1-SNAPSHOT</version>
+    </parent>
+    
+    <packaging>pom</packaging>
+    <name>Todo Example</name>
+    
+    <properties>
+        <example.name>todo</example.name>
+    </properties>
+    
+    <modules>
+        <module>todo-ejb</module>
+        <module>todo-web</module>
+        <module>todo-ear</module>
+        <module>todo-tests</module>
+    </modules>
+    
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+                <artifactId>todo-ejb</artifactId>
+                <version>${project.version}</version>
+                <type>ejb</type>
+            </dependency>
+            <dependency>
+                <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+                <artifactId>todo-web</artifactId>
+                <version>${project.version}</version>
+                <type>war</type>
+            </dependency>
+            <dependency>
+                <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+                <artifactId>todo-ear</artifactId>
+                <version>${project.version}</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+</project>

Added: branches/community/Seam_2_3/examples-ee6/todo/readme.txt
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/readme.txt	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/readme.txt	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,29 @@
+Seam Todo List Example
+======================
+
+This is a simple example for the Seam tutorial, demonstrating the
+use of jBPM-based business process management.
+
+To deploy the example to JBoss AS, follow these steps:
+
+* In the example root directory run:
+
+    mvn clean package
+
+* Set JBOSS_HOME environment property.
+
+* In the tasks-ear directory run:
+
+    mvn jboss:hard-deploy
+
+* Open this URL in a web browser: http://localhost:8080/seam-todo
+
+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 todo-web/target directory to Tomcat manually
+
+* Open this URL in a web browser: http://localhost:8080/jboss-seam-todo

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ear/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ear/pom.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ear/pom.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,153 @@
+<?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>todo</artifactId>
+        <groupId>org.jboss.seam.examples-ee6</groupId>
+        <version>2.3.0.Beta1-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+    <artifactId>todo-ear</artifactId>
+    <packaging>ear</packaging>
+    <name>Todo EAR Module</name>
+    
+    <properties>
+        <jboss.home>${env.JBOSS_HOME}</jboss.home>
+        <jboss.domain>default</jboss.domain>
+    </properties>
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+            <artifactId>todo-web</artifactId>
+            <type>war</type>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+            <artifactId>todo-ejb</artifactId>
+            <type>ejb</type>
+        </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>
+    </dependencies>
+    
+
+    <build>
+        <finalName>seam-todo</finalName>
+        <plugins>
+            <plugin>
+                <artifactId>maven-ear-plugin</artifactId>
+                <configuration>
+                    <version>6</version>
+                    <defaultLibBundleDir>lib</defaultLibBundleDir>
+                    <!-- Exclude eclipse generated application.xml and manually modified jboss-app.xml during mvn build  -->
+                    <earSourceExcludes>**/application.xml, **/jboss-app.xml</earSourceExcludes>
+                    <filtering>true</filtering>
+                    <modules>
+                        <webModule>
+                            <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+                            <artifactId>todo-web</artifactId>
+                            <contextRoot>/seam-todo</contextRoot>
+                            <bundleFileName>todo-web.war</bundleFileName>
+                        </webModule>
+                        <ejbModule>
+                            <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+                            <artifactId>todo-ejb</artifactId>
+                            <bundleFileName>todo-ejb.jar</bundleFileName>
+                        </ejbModule>
+                    </modules>
+                </configuration>
+            </plugin>
+             <plugin>
+                <groupId>org.jboss.as.plugins</groupId>
+                <artifactId>jboss-as-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase></phase>
+                        <goals>
+                            <goal>deploy</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>exploded</id>
+            <properties>
+                <example.name>todo</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.todo</groupId>
+                                            <artifactId>todo-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.todo</groupId>
+                                            <artifactId>todo-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.todo</groupId>
+                                            <artifactId>todo-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>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>jboss-maven-plugin</artifactId>
+                        <configuration>
+                            <jbossHome>${jboss.home}</jbossHome>
+                            <serverName>${jboss.domain}</serverName>
+                            <fileNames>
+                                <directory>${project.build.directory}/${project.build.finalName}-exploded/${project.build.finalName}.ear</directory>
+                            </fileNames>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/.gpd.todo.jpdl.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/.gpd.todo.jpdl.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/.gpd.todo.jpdl.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process-diagram name="todo" width="752" height="547">
+  <node name="start" x="115" y="51" width="140" height="40">
+    <transition>
+      <label x="5" y="-10"/>
+    </transition>
+  </node>
+  <node name="todo" x="114" y="168" width="140" height="40">
+    <transition>
+      <label x="5" y="-10"/>
+    </transition>
+  </node>
+  <node name="done" x="113" y="295" width="140" height="40"/>
+</process-diagram>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/META-INF/jboss-deployment-structure.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/META-INF/jboss-deployment-structure.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ear/src/main/application/META-INF/jboss-deployment-structure.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,14 @@
+<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
+  <deployment>
+      <dependencies>
+          <module name="org.dom4j" export="true"/>
+          <module name="javax.faces.api" export="true"/>
+          <module name="com.sun.jsf-impl" export="true"/>
+          <module name="org.javassist" export="true"/>
+          <module name="org.hibernate" export="true"/>
+          <module name="org.hibernate.envers" export="true"/>
+          <module name="org.apache.commons.logging" export="true"/>
+          <module name="org.apache.commons.collections" export="true"/>
+        </dependencies>
+  </deployment>  
+</jboss-deployment-structure> 
\ No newline at end of file

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/pom.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/pom.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,121 @@
+<?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>todo</artifactId>
+        <groupId>org.jboss.seam.examples-ee6</groupId>
+        <version>2.3.0.Beta1-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+    <artifactId>todo-ejb</artifactId>
+    <packaging>ejb</packaging>
+    <name>Todo EJB Module</name>
+    
+    <build>
+        <plugins>
+
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>add-resource</id>
+                        <phase>generate-resources</phase>
+                        <goals>
+                            <goal>add-resource</goal>
+                        </goals>
+                        <configuration>
+                            <resources>
+                                <resource>
+                                    <directory>${basedir}/../todo-ear/src/main/application</directory>
+                                    <targetPath>${build.output.directory}</targetPath>
+                                    <includes>
+                                        <include>**/todo.jpdl.xml</include>
+                                    </includes>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.jboss.seam</groupId>
+            <artifactId>jboss-seam</artifactId>
+            <type>ejb</type>
+        </dependency>
+        <dependency>
+            <groupId>javax.persistence</groupId>
+            <artifactId>persistence-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.hibernate</groupId>
+            <artifactId>hibernate-validator</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.ejb</groupId>
+            <artifactId>ejb-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.sun.faces</groupId>
+            <artifactId>jsf-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.jbpm.jbpm3</groupId>
+            <artifactId>jbpm-jpdl</artifactId>
+        </dependency>
+    </dependencies>
+    
+    <profiles>
+        <profile>
+            <id>tomcat</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-ejb-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>build-helper-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>add-resource</id>
+                                <phase>generate-resources</phase>
+                                <goals>
+                                    <goal>add-resource</goal>
+                                </goals>
+                                <configuration>
+                                    <resources>
+                                        <resource>
+                                            <directory>${basedir}/../todo-ear/src/main/application</directory>
+                                            <targetPath>${build.output.directory}</targetPath>
+                                            <includes>
+                                                <include>**/*.xml</include>
+                                            </includes>
+                                        </resource>
+                                    </resources>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+   
+</project>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/Login.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/Login.java	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/Login.java	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,28 @@
+package org.jboss.seam.example.todo;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.bpm.Actor;
+
+ at Name("login")
+public class Login 
+{
+   
+   @In private Actor actor;
+   
+   private String user;
+
+   public String getUser() {
+      return user;
+   }
+
+   public void setUser(String user) {
+      this.user = user;
+   }
+   
+   public String login()
+   {
+      actor.setId(user);
+      return "/todo.jsp";
+   }
+}

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/TodoList.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/TodoList.java	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/java/org/jboss/seam/example/todo/TodoList.java	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,29 @@
+package org.jboss.seam.example.todo;
+
+import org.jboss.seam.annotations.bpm.CreateProcess;
+import org.jboss.seam.annotations.bpm.EndTask;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.bpm.StartTask;
+
+ at Name("todoList")
+public class TodoList 
+{
+   
+   private String description;
+   
+   public String getDescription()
+   {
+      return description;
+   }
+
+   public void setDescription(String description) {
+      this.description = description;
+   }
+   
+   @CreateProcess(definition="todo")
+   public void createTodo() {}
+   
+   @StartTask @EndTask
+   public void done() {}
+
+}

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/hibernate.cfg.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/hibernate.cfg.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/hibernate.cfg.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,170 @@
+<?xml version='1.0' encoding='utf-8'?>
+
+<!DOCTYPE hibernate-configuration PUBLIC
+          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+          "http://www.hibernate.org/dtd//hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+  <session-factory>
+
+    <property name="show_sql">true</property>
+    <property name="connection.datasource">java:/jboss/datasources/ExampleDS</property>
+    <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
+    <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
+<!--     <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property> -->
+    <property name="hbm2ddl.auto">create-drop</property>
+    <!--property name="transaction.flush_before_completion">true</property-->
+    
+    <!-- ############################################ -->
+    <!-- # mapping files with external dependencies # -->
+    <!-- ############################################ -->
+
+    <!-- following mapping file has a dependendy on   -->
+    <!-- 'bsh-{version}.jar'.                         -->
+    <!-- uncomment this if you don't have bsh on your -->
+    <!-- classpath.  you won't be able to use the     -->
+    <!-- script element in process definition files   -->
+    <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
+
+    <!-- following mapping files have a dependendy on  -->
+    <!-- 'jbpm-identity.jar', mapping files            -->
+    <!-- of the pluggable jbpm identity component.     -->
+    <!-- Uncomment the following 3 lines if you        -->
+    <!-- want to use the jBPM identity mgmgt           -->
+    <!-- component.                                    -->
+    <!-- identity mappings (begin) ===
+    <mapping resource="org/jbpm/identity/User.hbm.xml"/>
+    <mapping resource="org/jbpm/identity/Group.hbm.xml"/>
+    <mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
+    ==== identity mappings (end) -->
+    
+    <!-- following mapping files have a dependendy on  -->
+    <!-- the JCR API                                   -->
+    <!-- jcr mappings (begin) ===
+    <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
+    ==== jcr mappings (end) -->
+
+
+    <!-- ###################### -->
+    <!-- # jbpm mapping files # -->
+    <!-- ###################### -->
+
+    <!-- hql queries and type defs -->
+    <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
+    <mapping resource="org/jbpm/db/hibernate.types.hbm.xml"/>
+    
+    <!-- graph.action mapping files -->
+    <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
+    
+    <!-- graph.def mapping files -->
+    <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
+    <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
+
+    <!-- graph.node mapping files -->
+    <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
+
+    <!-- context.def mapping files -->
+    <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
+    <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
+
+    <!-- taskmgmt.def mapping files -->
+    <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
+
+    <!-- module.def mapping files -->
+    <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
+
+    <!-- bytes mapping files -->
+    <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
+
+    <!-- file.def mapping files -->
+    <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
+
+    <!-- scheduler.def mapping files -->
+    <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
+    <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
+
+    <!-- graph.exe mapping files -->
+    <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
+
+    <!-- module.exe mapping files -->
+    <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
+        
+    <!-- context.exe mapping files -->
+    <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
+
+    <!-- job mapping files -->
+    <mapping resource="org/jbpm/job/Job.hbm.xml"/>
+    <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
+    <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
+    <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
+
+    <!-- taskmgmt.exe mapping files -->
+    <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
+
+    <!-- logging mapping files -->
+    <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
+    <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
+    <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
+    <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
+    <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
+    
+  </session-factory>
+</hibernate-configuration>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/jbpm.cfg.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/jbpm.cfg.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/jbpm.cfg.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,18 @@
+<jbpm-configuration>
+
+  <jbpm-context>
+    <service name="persistence">
+       <factory>
+          <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
+             <field name="isTransactionEnabled"><false/></field>
+          </bean>
+       </factory>
+    </service>
+    <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
+    <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
+    <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
+    <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
+    <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
+  </jbpm-context>
+
+</jbpm-configuration>
\ No newline at end of file

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/seam.properties
===================================================================
Added: branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/todo.jpdl.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/todo.jpdl.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-ejb/src/main/resources/todo.jpdl.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,21 @@
+<process-definition 
+	name="todo"
+	xmlns="urn:jbpm.org:jpdl-3.2"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/xsd/jpdl-3.2.xsd"
+	>
+   
+   <start-state name="start">
+      <transition to="todo"/>
+   </start-state>
+   
+   <task-node name="todo">
+      <task name="todo" description="#{todoList.description}">
+         <assignment actor-id="#{actor.id}"/>
+      </task>
+      <transition to="done"/>
+   </task-node>
+   
+   <end-state name="done"/>
+   
+</process-definition>
\ No newline at end of file

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-tests/pom.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-tests/pom.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,210 @@
+<?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>todo</artifactId>
+        <groupId>org.jboss.seam.examples-ee6</groupId>
+        <version>2.3.0.Beta1-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+    <artifactId>todo-tests</artifactId>
+    <name>Todo Integration Tests Module</name>
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+            <artifactId>todo-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>com.sun.faces</groupId>
+            <artifactId>jsf-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.seleniumhq.selenium.server</groupId>
+            <artifactId>selenium-server</artifactId>
+            <classifier>standalone</classifier>
+        </dependency>
+        <dependency>
+            <groupId>org.seleniumhq.selenium.client-drivers</groupId>
+            <artifactId>selenium-java-client-driver</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>
+                <filtering>false</filtering>
+            </testResource>
+        </testResources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <skipTests>true</skipTests>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                       <id>copy-seam-bootstrap</id>
+                       <phase>process-resources</phase>
+                       <goals>
+                          <goal>unpack</goal>
+                       </goals>
+                       <configuration>
+                          <includes>bootstrap/**</includes>
+                          <artifactItems>
+                              <artifactItem>
+                                   <groupId>org.jboss.seam</groupId>
+                                   <artifactId>jboss-embedded-bootstrap</artifactId>
+                                   <version>${project.version}</version>
+                                   <type>jar</type>
+                                   <overWrite>false</overWrite>
+                              </artifactItem>
+                          </artifactItems>
+                       </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>seam-todo</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>
+                                <param>${basedir}/../todo-ear/target/seam-todo.ear</param>
+                            </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-todo</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>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/TodoTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/TodoTest.java	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/TodoTest.java	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,116 @@
+//$Id: TodoTest.java 5299 2007-06-20 00:16:21Z gavin $
+package org.jboss.seam.example.todo.test;
+
+import java.io.File;
+import java.util.List;
+
+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.bpm.Actor;
+import org.jboss.seam.bpm.TaskInstanceList;
+import org.jboss.seam.mock.JUnitSeamTest;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.importer.ZipImporter;
+import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.jbpm.taskmgmt.exe.TaskInstance;
+import org.junit.runner.RunWith;
+import org.testng.annotations.Test;
+
+ at RunWith(Arquillian.class)
+public class TodoTest extends JUnitSeamTest
+{
+   @Deployment(name = "TodoTest")
+   @OverProtocol("Servlet 3.0")
+   public static Archive<?> createDeployment()
+   {
+      EnterpriseArchive er = ShrinkWrap.create(ZipImporter.class, "seam-todo.ear").importFrom(new File("../todo-ear/target/seam-todo.ear")).as(EnterpriseArchive.class);
+      WebArchive web = er.getAsType(WebArchive.class, "todo-web.war");
+      web.addClasses(TodoTest.class);
+      return er;
+   }
+   
+   private long taskId;
+   
+   @Test
+   public void testTodo() throws Exception
+   {
+      
+      new FacesRequest() {
+
+         @Override
+         protected void updateModelValues() throws Exception
+         {
+            setValue("#{login.user}", "gavin");
+         }
+
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assert invokeMethod("#{login.login}").equals("/todo.jsp");
+            assert Actor.instance().getId().equals("gavin");
+         }
+
+         @Override
+         protected void renderResponse() throws Exception
+         {
+            assert ( (List) getInstance(TaskInstanceList.class) ).size()==0;
+         }
+         
+      }.run();
+      
+      new FacesRequest()
+      {
+
+         @Override
+         protected void updateModelValues() throws Exception
+         {
+            setValue("#{todoList.description}", "Kick Roy out of my office");
+         }
+
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            invokeMethod("#{todoList.createTodo}");
+         }
+         
+         @Override
+         protected void renderResponse() throws Exception
+         {
+            List<TaskInstance> tasks = (List<TaskInstance>) getInstance(TaskInstanceList.class);
+            assert tasks.size()==1;
+            TaskInstance taskInstance = tasks.get(0);
+            assert taskInstance.getDescription().equals("Kick Roy out of my office");
+            taskId = taskInstance.getId();
+         }
+         
+      }.run();
+
+   
+      new FacesRequest()
+      {
+   
+         @Override
+         protected void beforeRequest()
+         {
+            setParameter("taskId", Long.toString(taskId));
+         }
+
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            invokeMethod("#{todoList.done}");
+         }
+         
+         @Override
+         protected void renderResponse() throws Exception
+         {
+            assert ( (List) getInstance(TaskInstanceList.class) ).size()==0;
+         }
+         
+      }.run();
+   }
+   
+}

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/selenium/SeleniumTodoTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/selenium/SeleniumTodoTest.java	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/java/org/jboss/seam/example/todo/test/selenium/SeleniumTodoTest.java	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,109 @@
+/*
+ * 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.
+ */ 
+package org.jboss.seam.example.todo.test.selenium;
+
+import java.text.MessageFormat;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+import static org.testng.AssertJUnit.assertTrue;
+import static org.testng.AssertJUnit.assertFalse;
+import static org.testng.AssertJUnit.assertEquals;
+
+/**
+ * This is a base class for todo example selenium tests
+ * @author Jozef Hartinger
+ *
+ */
+public class SeleniumTodoTest extends SeamSeleniumTest
+{
+   
+   public static final String LOGIN_URL = "/login.seam";
+   public static final String TODO_URL = "/todo.seam";
+   public static final String LOGIN_USERNAME = "id=login:username";
+   public static final String LOGIN_SUBMIT = "id=login:submit";
+   public static final String NEW_ITEM_DESCRIPTION = "id=new:description";
+   public static final String NEW_ITEM_CREATE = "id=new:create";
+   
+   public static final String NO_ITEMS_FOUND = "id=list:noItems";
+   public static final String FIRST_ITEM_DESCRIPTION = "id=list:items:0:description";
+   public static final String FIRST_ITEM_PRIORITY = "id=list:items:0:priority";
+   public static final String FIRST_ITEM_DONE = "id=list:items:0:done";
+   public static final String NTH_ITEM_DESCRIPTION = "id=list:items:{0}:description";
+   public static final String NTH_ITEM_PRIORITY = "id=list:items:{0}:priority";
+   public static final String NTH_ITEM_DONE = "id=list:items:{0}:done";
+   public static final String ITEMS_COUNT = "//table[@id=\"list:items\"]/tbody/tr";
+   public static final String ITEMS_UPDATE = "list:update";
+   
+   
+   public static final String DEFAULT_USERNAME = "tester";
+   
+   @BeforeClass
+   public void prepareTestFixture() {
+      String[] fixture = {"selenium test for todo example", "buy milk", "clean the bathroom"};
+      setUp();
+      assertTrue("Item list should be empty", browser.isElementPresent(NO_ITEMS_FOUND));
+      for (String item : fixture) {
+         browser.type(NEW_ITEM_DESCRIPTION, item);
+         browser.clickAndWait(NEW_ITEM_CREATE);
+      }
+      assertEquals("Unexpected count of items.", fixture.length, browser.getXpathCount(ITEMS_COUNT));
+      super.tearDown();
+   }
+   
+   @BeforeMethod
+   @Override
+   public void setUp() {
+      super.setUp();
+      browser.open(CONTEXT_PATH + LOGIN_URL);
+      browser.type(LOGIN_USERNAME, DEFAULT_USERNAME);
+      browser.clickAndWait(LOGIN_SUBMIT);
+      assertTrue("Navigation failure. Todo page expected.", browser.getLocation().contains(TODO_URL));
+   }
+   
+   @Test
+   public void getEntryDoneTest() {
+      String description = browser.getValue(FIRST_ITEM_DESCRIPTION);
+      int itemCount = browser.getXpathCount(ITEMS_COUNT).intValue();
+      browser.clickAndWait(FIRST_ITEM_DONE);
+      assertFalse("Item should disappear from item list when done.", browser.isTextPresent(description));
+      assertEquals("Unexpected count of items.", --itemCount, browser.getXpathCount(ITEMS_COUNT));
+   }
+
+   /**
+    * This test sets high priority to first item and verifies that the item is be moved to the bottom and the priority number is kept.
+    */
+   @Test
+   public void priorityTest() {
+      String description = browser.getValue(FIRST_ITEM_DESCRIPTION);
+      String priority = "10";
+      int itemCount = browser.getXpathCount(ITEMS_COUNT).intValue();
+      int lastItemRowId = itemCount - 1;
+      browser.type(FIRST_ITEM_PRIORITY, priority);
+      browser.clickAndWait(ITEMS_UPDATE);
+      assertEquals("Message should move to the end of item list after priority change.", description, browser.getValue(MessageFormat.format(NTH_ITEM_DESCRIPTION, lastItemRowId)));
+      assertEquals("Unexpected priority.", priority, browser.getValue(MessageFormat.format(NTH_ITEM_PRIORITY, lastItemRowId)));
+   }
+}

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/WEB-INF/components.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/WEB-INF/components.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/WEB-INF/components.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components"
+            xmlns:bpm="http://jboss.com/products/seam/bpm"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation=
+                "http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.3.xsd
+                 http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.3.xsd">
+
+    <bpm:jbpm>
+        <bpm:process-definitions>
+        	<value>todo.jpdl.xml</value>
+        </bpm:process-definitions>
+    </bpm:jbpm>
+    
+</components>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources/seam.properties
===================================================================
Added: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-ftest/testng.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-ftest/testng.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-ftest/testng.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,30 @@
+<!--
+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="Todo example" verbose="2" parallel="false">
+   <test name="todo_jboss5">
+      <parameter name="PROPERTY_FILE" value="" />
+      <classes>
+         <class name="org.jboss.seam.example.todo.test.selenium.SeleniumTodoTest" />
+      </classes>
+   </test>
+</suite>


Property changes on: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-ftest/testng.xml
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-integration/arquillian.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-integration/arquillian.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-tests/src/test/resources-integration/arquillian.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,18 @@
+<?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>
+			<property name="serverConfig">standalone-full.xml</property>
+		</configuration>
+	</container>
+
+</arquillian>
\ No newline at end of file

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-web/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-web/pom.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-web/pom.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,137 @@
+<?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>todo</artifactId>
+        <groupId>org.jboss.seam.examples-ee6</groupId>
+        <version>2.3.0.Beta1-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+    <artifactId>todo-web</artifactId>
+    <packaging>war</packaging>
+    <name>Todo Web Module</name>
+    
+    <properties>
+        <!-- filtering property for components.xml -->
+        <jndiPattern>seam-todo/#{ejbName}/local</jndiPattern>
+    </properties>
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.jboss.seam.examples-ee6.todo</groupId>
+            <artifactId>todo-ejb</artifactId>
+            <type>ejb</type>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.seam</groupId>
+            <artifactId>jboss-seam</artifactId>
+            <type>ejb</type>
+        </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>
+                <exclusion>
+                    <groupId>commons-beanutils</groupId>
+                    <artifactId>commons-beanutils</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>commons-beanutils</groupId>
+            <artifactId>commons-beanutils</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>commons-collections</groupId>
+                    <artifactId>commons-collections</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+    </dependencies>
+  
+    <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>
+                        </resource>
+                    </webResources>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    
+    <profiles>
+        <profile>
+            <id>tomcat</id>
+            <dependencies>
+                <dependency>
+                    <groupId>org.jboss.seam.examples</groupId>
+                    <artifactId>todo-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>
+                <dependency>
+                    <groupId>javax.servlet</groupId>
+                    <artifactId>jstl</artifactId>
+                </dependency>
+                 <dependency>
+                    <groupId>org.jbpm.jbpm3</groupId>
+                    <artifactId>jbpm-jpdl</artifactId>
+                    <exclusions>
+                         <exclusion>
+                              <groupId>org.hibernate</groupId>
+                              <artifactId>hibernate</artifactId>
+                         </exclusion>
+                    </exclusions>
+                </dependency>
+                <dependency>
+                    <groupId>org.beanshell</groupId>
+                    <artifactId>bsh</artifactId>
+                </dependency>
+            </dependencies>
+            <build>
+                <finalName>jboss-seam-todo</finalName>
+            </build>
+        </profile>
+    </profiles>
+    
+</project>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/components.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/components.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/components.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components"
+            xmlns:bpm="http://jboss.com/products/seam/bpm"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation=
+                "http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.3.xsd
+                 http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.3.xsd">
+
+    <bpm:jbpm>
+        <bpm:process-definitions>
+        	<value>todo.jpdl.xml</value>
+        </bpm:process-definitions>
+    </bpm:jbpm>
+    
+     <!-- This is required for JBoss AS7 due these EJB components are bound to jboss-seam module  -->
+    <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>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/web.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/WEB-INF/web.xml	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,36 @@
+<?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">
+
+    <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>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>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/index.html
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/index.html	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/index.html	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,5 @@
+<html>
+<head>
+  <meta http-equiv="Refresh" content="0; URL=login.seam">
+</head>
+</html>
\ No newline at end of file

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/login.jsp
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/login.jsp	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/login.jsp	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,18 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<html>
+<head>
+<title>Login</title>
+</head>
+<body>
+<h1>Login</h1>
+<f:view>
+	<h:form id="login">
+	  <div>
+	    <h:inputText id="username" value="#{login.user}"/>
+	    <h:commandButton id="submit" value="Login" action="#{login.login}"/>
+	  </div>
+	</h:form>
+</f:view>
+</body>
+</html>

Added: branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp
===================================================================
--- branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp	2012-03-14 17:43:07 UTC (rev 14394)
@@ -0,0 +1,63 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s"%>
+<html>
+<head>
+<title>Todo List</title>
+</head>
+<body>
+<h1>Todo List</h1>
+<f:view>
+   <h:form id="list">
+      <div>
+         <h:outputText id="noItems" value="There are no todo items." rendered="#{empty taskInstancePriorityList}"/>
+         <h:dataTable id="items" value="#{taskInstancePriorityList}" var="task" rendered="#{not empty taskInstancePriorityList}">
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Description"/>
+                </f:facet>
+                <h:inputText id="description" value="#{task.description}" style="width: 400"/>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Created"/>
+                </f:facet>
+                <h:outputText value="#{task.taskMgmtInstance.processInstance.start}">
+                    <s:convertDateTime type="date"/>
+                </h:outputText>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Priority"/>
+                </f:facet>
+                <h:inputText id="priority" value="#{task.priority}" style="width: 30"/>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Due Date"/>
+                </f:facet>
+                <h:inputText id="dueDate" value="#{task.dueDate}" style="width: 100">
+                    <s:convertDateTime type="date" dateStyle="short"/>
+                </h:inputText>
+            </h:column>
+            <h:column>
+                <s:button id="done" action="#{todoList.done}" taskInstance="#{task}" value="Done"/>
+            </h:column>
+         </h:dataTable>
+      </div>
+      <div>
+      <h:messages/>
+      </div>
+      <div>
+         <h:commandButton id="update" value="Update Items" rendered="#{not empty taskInstanceList}"/>
+      </div>
+   </h:form>
+   <h:form id="new">
+      <div>
+         <h:inputText id="description" value="#{todoList.description}" style="width: 400"/>
+         <h:commandButton id="create" value="Create New Item" action="#{todoList.createTodo}"/>
+      </div>
+   </h:form>
+</f:view>
+</body>
+</html>



More information about the seam-commits mailing list