Author: amarkhel
Date: 2008-12-29 08:41:01 -0500 (Mon, 29 Dec 2008)
New Revision: 12045
Added:
trunk/samples/editorSeam-sample/src/main/webapp/index.html
Modified:
trunk/samples/editorSeam-sample/pom.xml
trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml
trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml
Log:
now this sample can build under Tomcat
Modified: trunk/samples/editorSeam-sample/pom.xml
===================================================================
--- trunk/samples/editorSeam-sample/pom.xml 2008-12-29 13:28:10 UTC (rev 12044)
+++ trunk/samples/editorSeam-sample/pom.xml 2008-12-29 13:41:01 UTC (rev 12045)
@@ -30,18 +30,6 @@
<version>2.1.0.SP1</version>
<exclusions>
<exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>el-api</artifactId>
- <groupId>javax.el</groupId>
- </exclusion>
- <exclusion>
- <artifactId>javassist</artifactId>
- <groupId>jboss</groupId>
- </exclusion>
- <exclusion>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
</exclusion>
@@ -57,30 +45,45 @@
<artifactId>servlet-api</artifactId>
<groupId>javax.servlet</groupId>
</exclusion>
- <exclusion>
- <artifactId>el-api</artifactId>
- <groupId>javax.el</groupId>
- </exclusion>
- <exclusion>
- <groupId>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- </exclusion>
</exclusions>
</dependency>
<dependency>
+ <groupId>javax.persistence</groupId>
+ <artifactId>persistence-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>3.8.0.GA</version>
+</dependency>
+<dependency>
+<groupId>org.apache.geronimo.specs</groupId>
+<artifactId>geronimo-jta_1.0.1B_spec</artifactId>
+<version>1.1</version>
+</dependency>
+<dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>3.0.0.ga</version>
+ </dependency>
+<dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+</dependency>
+<dependency>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr</artifactId>
+ <version>3.0</version>
+ </dependency>
+
+ <dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-ui</artifactId>
<version>2.1.0.SP1</version>
<exclusions>
<exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>javassist</artifactId>
- <groupId>jboss</groupId>
- </exclusion>
- <exclusion>
<artifactId>jsf-api</artifactId>
<groupId>javax.faces</groupId>
</exclusion>
@@ -92,41 +95,10 @@
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-ioc</artifactId>
- <version>2.1.0.SP1</version>
- <exclusions>
- <exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>javassist</artifactId>
- <groupId>jboss</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-api</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-impl</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-debug</artifactId>
<version>2.1.0.SP1</version>
<exclusions>
<exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>javassist</artifactId>
- <groupId>jboss</groupId>
- </exclusion>
- <exclusion>
<artifactId>jsf-api</artifactId>
<groupId>javax.faces</groupId>
</exclusion>
@@ -136,75 +108,6 @@
</exclusion>
</exclusions>
</dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-mail</artifactId>
- <version>2.1.0.SP1</version>
- <exclusions>
- <exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>javassist</artifactId>
- <groupId>jboss</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-api</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-impl</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-pdf</artifactId>
- <version>2.1.0.SP1</version>
- <exclusions>
- <exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>javassist</artifactId>
- <groupId>jboss</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-api</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-impl</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam-remoting</artifactId>
- <version>2.1.0.SP1</version>
- <exclusions>
- <exclusion>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>javassist</artifactId>
- <groupId>jboss</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-api</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jsf-impl</artifactId>
- <groupId>javax.faces</groupId>
- </exclusion>
- </exclusions>
- </dependency>
</dependencies>
<build>
<finalName>editorSeam-sample</finalName>
Modified: trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml
===================================================================
--- trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml 2008-12-29
13:28:10 UTC (rev 12044)
+++ trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/components.xml 2008-12-29
13:41:01 UTC (rev 12045)
@@ -6,18 +6,20 @@
xmlns:bpm="http://jboss.com/products/seam/bpm"
xmlns:security="http://jboss.com/products/seam/security"
xmlns:mail="http://jboss.com/products/seam/mail"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xmlns:pdf="http://jboss.com/products/seam/pdf"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:pdf="http://jboss.com/products/seam/pdf"
+
xmlns:transaction="http://jboss.com/products/seam/transaction"
xsi:schemaLocation=
"http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-2.0.xsd
+
http://jboss.com/products/seam/transaction
http://jboss.com/products/seam/transaction-2.1.0.xsd
http://jboss.com/products/seam/persistence
http://jboss.com/products/seam/persistence-2.0.xsd
http://jboss.com/products/seam/drools
http://jboss.com/products/seam/drools-2.0.xsd
http://jboss.com/products/seam/bpm
http://jboss.com/products/seam/bpm-2.0.xsd
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-2.0.xsd
http://jboss.com/products/seam/mail
http://jboss.com/products/seam/mail-2.0.xsd
-
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.0.xsd">
- <core:init debug="true" jndi-pattern="@jndiPattern@"/>
-
+
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.0.xsd">
+ <core:init debug="true" transaction-management-enabled="false"
jndi-pattern="@jndiPattern@"/>
+ <transaction:no-transaction/>
<core:manager concurrent-request-timeout="500"
conversation-timeout="120000"
conversation-id-parameter="cid"
Modified: trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-12-29
13:28:10 UTC (rev 12044)
+++ trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-12-29
13:41:01 UTC (rev 12045)
@@ -7,6 +7,16 @@
<managed-bean-class>org.richfaces.EditorBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
-
+<application>
+ <locale-config>
+ <default-locale>en</default-locale>
+ <supported-locale>bg</supported-locale>
+ <supported-locale>de</supported-locale>
+ <supported-locale>en</supported-locale>
+ <supported-locale>fr</supported-locale>
+ <supported-locale>tr</supported-locale>
+ </locale-config>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
</faces-config>
Modified: trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml 2008-12-29 13:28:10
UTC (rev 12044)
+++ trunk/samples/editorSeam-sample/src/main/webapp/WEB-INF/web.xml 2008-12-29 13:41:01
UTC (rev 12045)
@@ -16,25 +16,46 @@
<param-value>true</param-value>
</context-param>
<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>
+ <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>*.jsf</url-pattern>
- </servlet-mapping>
+ <filter-name>Seam Filter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <!-- Facelets development mode (disable in production) -->
+
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <!-- JSF -->
+
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+
+ <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>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
Added: trunk/samples/editorSeam-sample/src/main/webapp/index.html
===================================================================
--- trunk/samples/editorSeam-sample/src/main/webapp/index.html
(rev 0)
+++ trunk/samples/editorSeam-sample/src/main/webapp/index.html 2008-12-29 13:41:01 UTC
(rev 12045)
@@ -0,0 +1,5 @@
+<html>
+<head>
+ <meta http-equiv="Refresh" content="0;
URL=pages/editor.seam">
+</head>
+</html>
\ No newline at end of file
Property changes on: trunk/samples/editorSeam-sample/src/main/webapp/index.html
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:eol-style
+ native