[seam-commits] Seam SVN: r14503 - in branches/community/Seam_2_3/examples-ee6/jpa: jpa-tests/src/test/java/org/jboss/seam/example/jpa/test and 5 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Apr 4 09:27:33 EDT 2012


Author: maschmid
Date: 2012-04-04 09:27:32 -0400 (Wed, 04 Apr 2012)
New Revision: 14503

Added:
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/resources-integration/arquillian.xml
Modified:
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/pom.xml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/BookingTest.java
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/ChangePasswordTest.java
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/Deployments.java
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/LoginTest.java
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/pom.xml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/resources/META-INF/persistence.xml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/faces-config.xml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/web.xml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/book.xhtml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/home.xhtml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/main.xhtml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/register.xhtml
   branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/template.xhtml
Log:
update jpa example to a mostly working state


Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/pom.xml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/pom.xml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -93,6 +93,12 @@
          <groupId>javassist</groupId>
          <artifactId>javassist</artifactId>
       </dependency>
+
+      <dependency>
+        <groupId>org.hibernate</groupId>
+        <artifactId>hibernate-validator</artifactId>
+        <scope>provided</scope>
+      </dependency>
    </dependencies>
 
    <build>
@@ -175,23 +181,12 @@
       <profile>
          <id>ftest-jbossas</id>
          <properties>
-            <example.context.path>seam-guice</example.context.path>
+            <example.context.path>jboss-seam-jpa</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}/../guice-ear/target/jpa-web.war</param>
-                     </fileNames>
-                  </configuration>
-               </plugin>
-               <plugin>
-                  <groupId>org.codehaus.mojo</groupId>
                   <artifactId>selenium-maven-plugin</artifactId>
                </plugin>
                <plugin>
@@ -208,7 +203,7 @@
       <profile>
          <id>ftest-tomcat</id>
          <properties>
-            <example.context.path>jboss-seam-guice</example.context.path>
+            <example.context.path>jboss-seam-jpa</example.context.path>
          </properties>
          <build>
             <plugins>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/BookingTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/BookingTest.java	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/BookingTest.java	2012-04-04 13:27:32 UTC (rev 14503)
@@ -12,6 +12,7 @@
 
 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.jpa.Booking;
@@ -25,6 +26,9 @@
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Test;
 
+import org.junit.runner.RunWith;
+
+ at RunWith(Arquillian.class)
 public class BookingTest extends JUnitSeamTest
 {
    @Deployment(name="BookingTest")

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/ChangePasswordTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/ChangePasswordTest.java	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/ChangePasswordTest.java	2012-04-04 13:27:32 UTC (rev 14503)
@@ -1,6 +1,7 @@
 //$Id: ChangePasswordTest.java 6505 2007-10-12 11:24:54Z pmuir $
 package org.jboss.seam.example.jpa.test;
 
+import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.container.test.api.OverProtocol;
 import org.jboss.seam.contexts.Contexts;
@@ -12,7 +13,9 @@
 import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 
+ at RunWith(Arquillian.class)
 public class ChangePasswordTest extends JUnitSeamTest
 {
 

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/Deployments.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/Deployments.java	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/Deployments.java	2012-04-04 13:27:32 UTC (rev 14503)
@@ -9,7 +9,7 @@
 
 public class Deployments {
 	public static WebArchive jpaDeployment() {
-		return ShrinkWrap.create(ZipImporter.class, "jpa.war").importFrom(new File("../booking-ear/target/jpa.war"))
+		return ShrinkWrap.create(ZipImporter.class, "jboss-seam-jpa.war").importFrom(new File("../jpa-web/target/jboss-seam-jpa.war"))
 				.as(WebArchive.class);
 	}
 }

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/LoginTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/LoginTest.java	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/java/org/jboss/seam/example/jpa/test/LoginTest.java	2012-04-04 13:27:32 UTC (rev 14503)
@@ -1,6 +1,7 @@
 //$Id: LoginTest.java 6505 2007-10-12 11:24:54Z pmuir $
 package org.jboss.seam.example.jpa.test;
 
+import org.jboss.arquillian.junit.Arquillian;
 import org.jboss.arquillian.container.test.api.Deployment;
 import org.jboss.arquillian.container.test.api.OverProtocol;
 import org.jboss.seam.core.Manager;
@@ -11,7 +12,9 @@
 import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
 import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.junit.Test;
+import org.junit.runner.RunWith;
 
+ at RunWith(Arquillian.class)
 public class LoginTest extends JUnitSeamTest
 {
 

Added: branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/resources-integration/arquillian.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/resources-integration/arquillian.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-tests/src/test/resources-integration/arquillian.xml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -0,0 +1,17 @@
+<?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>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/pom.xml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/pom.xml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -23,16 +23,6 @@
             <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>org.jboss.seam</groupId>
@@ -44,11 +34,18 @@
                 </exclusion>
             </exclusions>
         </dependency>
+<!--
         <dependency>
             <groupId>org.jboss.seam</groupId>
             <artifactId>jboss-seam-debug</artifactId>
         </dependency>
+-->
         <dependency>
+            <groupId>org.hibernate.javax.persistence</groupId>
+            <artifactId>hibernate-jpa-2.0-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
             <groupId>commons-beanutils</groupId>
             <artifactId>commons-beanutils</artifactId>
             <exclusions>
@@ -59,54 +56,33 @@
             </exclusions>
         </dependency>
         <dependency>
-            <groupId>com.sun.facelets</groupId>
-            <artifactId>jsf-facelets</artifactId>
-            <version>1.1.15</version>
-        </dependency>
-        <dependency>
             <groupId>commons-logging</groupId>
             <artifactId>commons-logging</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.richfaces.framework</groupId>
-            <artifactId>richfaces-impl</artifactId>
-            <version>3.3.3.Final</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>commons-collections</groupId>
-                    <artifactId>commons-collections</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.richfaces.ui</groupId>
-            <artifactId>richfaces-ui</artifactId>
-            <version>3.3.3.Final</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>commons-collections</groupId>
-                    <artifactId>commons-collections</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
             <groupId>org.jboss.el</groupId>
             <artifactId>jboss-el</artifactId>
         </dependency>
         <dependency>
-            <groupId>javax.persistence</groupId>
-            <artifactId>persistence-api</artifactId>
-            <version>1.0</version>
-        </dependency>
-        <dependency>
             <groupId>org.hibernate</groupId>
             <artifactId>hibernate-validator</artifactId>
             <scope>provided</scope>
         </dependency>
         <dependency>
-            <groupId>javax.faces</groupId>
-            <artifactId>jsf-api</artifactId>
-            <version>1.2_15</version>
+            <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.jboss.spec.javax.faces</groupId>
+            <artifactId>jboss-jsf-api_2.0_spec</artifactId>
             <scope>provided</scope>
         </dependency>
     </dependencies>
@@ -240,9 +216,6 @@
         </profile>
         <profile>
             <id>jbossas51</id>
-            <activation>
-                <activeByDefault>true</activeByDefault>
-            </activation>
             <build>
                 <plugins>
                     <plugin>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/resources/META-INF/persistence.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/resources/META-INF/persistence.xml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/resources/META-INF/persistence.xml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -5,7 +5,7 @@
              version="1.0">
    <persistence-unit name="bookingDatabase" transaction-type="RESOURCE_LOCAL">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>
-      <non-jta-data-source>java:/DefaultDS</non-jta-data-source>
+      <non-jta-data-source>java:jboss/datasources/ExampleDS</non-jta-data-source>
       <properties>
          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
          <property name="hibernate.show_sql" value="true"/>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/faces-config.xml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/faces-config.xml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -1,12 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<faces-config version="1.2"
+<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_1_2.xsd">
+   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">
 
-    <!-- Facelets support -->
-    <application>
-        <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
-    </application>
-    
 </faces-config>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/jboss-deployment-structure.xml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -1,16 +1,12 @@
 <jboss-deployment-structure> 
    <deployment>
-	    <exclusions>
-	      <module name="javax.faces.api" slot="main"/>
-	      <module name="com.sun.jsf-impl" slot="main"/>
-	    </exclusions>
-	    <dependencies>
-	      <module name="org.apache.log4j" />
-	      <module name="org.dom4j" />
-	      <module name="org.apache.commons.logging" />
-	      <module name="org.apache.commons.collections" />
-	      <module name="javax.faces.api" slot="1.2"/>
-          <module name="com.sun.jsf-impl" slot="1.2"/>
-	    </dependencies>
+      <dependencies>
+          <module name="org.apache.log4j" />
+          <module name="org.dom4j" />
+          <module name="org.apache.commons.logging" />
+          <module name="org.apache.commons.collections" />
+          <module name="javax.faces.api"/>
+          <module name="com.sun.jsf-impl"/>
+      </dependencies>
     </deployment>   
 </jboss-deployment-structure> 

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/web.xml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/WEB-INF/web.xml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<web-app version="2.5" 
+<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_2_5.xsd">     
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
     
     <!-- Seam -->
     

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/book.xhtml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/book.xhtml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/book.xhtml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -104,7 +104,7 @@
 				<div class="input">
 					<s:decorate id="creditCardDecorate">
 						<h:inputText id="creditCard" value="#{booking.creditCard}" required="true">
-                           <a:support id="onblur" event="onblur" reRender="creditCardDecorate"/>
+                           <a:ajax event="blur" render="creditCardDecorate"/>
                         </h:inputText>
 					</s:decorate>
 				</div>
@@ -115,7 +115,7 @@
 				<div class="input">
 					<s:decorate id="creditCardNameDecorate">
 						<h:inputText id="creditCardName" value="#{booking.creditCardName}" required="true">
-                           <a:support id="onblur" event="onblur" reRender="creditCardNameDecorate"/>
+                           <a:ajax event="blur" render="creditCardNameDecorate"/>
                         </h:inputText>
 					</s:decorate>
 				</div>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/home.xhtml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/home.xhtml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/home.xhtml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -4,12 +4,12 @@
 	  xmlns:h="http://java.sun.com/jsf/html"
 	  xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib">
-<head>
+<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" />
-</head>
-<body id="pgHome">
+</h:head>
+<h:body id="pgHome">
 <f:view>
 <div id="document">
 	<div id="header">
@@ -45,5 +45,5 @@
 	<div id="footer">Created with JBoss EJB 3.0, Seam, JSF (Mojarra), and Facelets</div>
 </div>
 </f:view>
-</body>
+</h:body>
 </html>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/main.xhtml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/main.xhtml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/main.xhtml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -20,7 +20,7 @@
 	<h1>Search Hotels</h1>
 	<fieldset> 
 	   <h:inputText id="searchString" value="#{hotelSearch.searchString}" style="width: 165px;">
-         <a:support id="onkeyup" event="onkeyup" actionListener="#{hotelSearch.find}" reRender="searchResults" />
+         <a:ajax id="onkeyup" event="keyup" listener="#{hotelSearch.find}" render="searchResults" />
        </h:inputText>
        &#160;
 	   <a:commandButton id="findHotels" value="Find Hotels" action="#{hotelSearch.find}" reRender="searchResults"/>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/register.xhtml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/register.xhtml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/register.xhtml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -5,12 +5,12 @@
 	  xmlns:f="http://java.sun.com/jsf/core"
 	  xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:a="http://richfaces.org/a4j">
-<head>
+<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" />
-</head>
-<body id="pgHome">
+</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>
@@ -43,7 +43,7 @@
 							<div class="input">
 								<s:decorate id="usernameDecorate">
 									<h:inputText id="username" value="#{user.username}" required="true">
-                                        <a:support id="onblur" event="onblur" reRender="usernameDecorate"/>
+                                        <a:ajax event="blur" render="usernameDecorate"/>
                                     </h:inputText>
 								</s:decorate>
 							</div>
@@ -54,7 +54,7 @@
 							<div class="input">
 								<s:decorate id="nameDecorate">
 									<h:inputText id="name" value="#{user.name}" required="true">
-                                        <a:support id="onblur" event="onblur" reRender="nameDecorate"/>
+                                        <a:ajax event="blur" render="nameDecorate"/>
                                     </h:inputText>
 								</s:decorate>
 							</div>
@@ -100,5 +100,5 @@
 	</div>
 	<div id="footer">Created with JBoss EJB 3.0, Seam, JSF (Mojarra), and Facelets</div>
 </div>
-</body>
+</h:body>
 </html>

Modified: branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/template.xhtml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/template.xhtml	2012-04-04 12:36:58 UTC (rev 14502)
+++ branches/community/Seam_2_3/examples-ee6/jpa/jpa-web/src/main/webapp/template.xhtml	2012-04-04 13:27:32 UTC (rev 14503)
@@ -3,12 +3,12 @@
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:s="http://jboss.com/products/seam/taglib">
-<head>
+<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" />
-</head>
-<body>
+</h:head>
+<h:body>
 
 <div id="document">
 	<div id="header">
@@ -31,5 +31,5 @@
 	</div>
 	<div id="footer">Created with JBoss Seam, JSF 1.2, Hibernate 3 and Facelets</div>
 </div>
-</body>
+</h:body>
 </html>



More information about the seam-commits mailing list