Author: alexsmirnov
Date: 2007-09-10 19:04:22 -0400 (Mon, 10 Sep 2007)
New Revision: 2855
Added:
trunk/samples/richfaces-ear-demo/ejb/src/main/java/META-INF/
trunk/samples/richfaces-ear-demo/ejb/src/main/java/META-INF/MANIFEST.MF
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Guess.java
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/GuessBean.java
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/application/META-INF/
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/application/META-INF/MANIFEST.MF
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/richfaces/
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/richfaces/samples/
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/richfaces/samples/GuessViewBean.java
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/META-INF/
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/META-INF/MANIFEST.MF
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/pages/
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/pages/guess.xhtml
Modified:
trunk/samples/richfaces-ear-demo/ejb/pom.xml
trunk/samples/richfaces-ear-demo/webapp/pom.xml
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp
Log:
EAR demo started in the glassfish & jboss 4.2
Modified: trunk/samples/richfaces-ear-demo/ejb/pom.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/ejb/pom.xml 2007-09-10 22:44:20 UTC (rev 2854)
+++ trunk/samples/richfaces-ear-demo/ejb/pom.xml 2007-09-10 23:04:22 UTC (rev 2855)
@@ -2,58 +2,59 @@
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">
<parent>
- <artifactId>richfaces-ear-demo</artifactId>
- <groupId>org.richfaces.samples</groupId>
- <version>3.1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
- <artifactId>ejb</artifactId>
- <packaging>ejb</packaging>
- <name>ejb</name>
- <version>3.1.0-SNAPSHOT</version>
- <url>http://maven.apache.org</url>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.framework</groupId>
- <artifactId>richfaces-api</artifactId>
- <version>3.1.0-SNAPSHOT</version>
- <exclusions>
- <exclusion>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>javax.ejb</groupId>
- <artifactId>ejb-api</artifactId>
- <version>3.0</version>
- <scope>provided</scope>
- <optional>true</optional>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-ejb-plugin</artifactId>
- <configuration>
- <!-- this is false by default -->
- <generateClient>true</generateClient>
- <ejbVersion>3.0</ejbVersion>
- <archive>
- <manifest>
-
<addClasspath>true</addClasspath>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <artifactId>richfaces-ear-demo</artifactId>
+ <groupId>org.richfaces.samples</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>ejb</artifactId>
+ <packaging>ejb</packaging>
+ <name>ejb</name>
+ <version>3.1.0-SNAPSHOT</version>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>javax.ejb</groupId>
+ <artifactId>ejb-api</artifactId>
+ <version>3.0</version>
+ <scope>provided</scope>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>ejb</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <configuration>
+ <!-- this is false by default -->
+ <generateClient>true</generateClient>
+ <ejbVersion>3.0</ejbVersion>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
Added: trunk/samples/richfaces-ear-demo/ejb/src/main/java/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/richfaces-ear-demo/ejb/src/main/java/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/samples/richfaces-ear-demo/ejb/src/main/java/META-INF/MANIFEST.MF 2007-09-10
23:04:22 UTC (rev 2855)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on:
trunk/samples/richfaces-ear-demo/ejb/src/main/java/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Guess.java
===================================================================
--- trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Guess.java
(rev 0)
+++
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Guess.java 2007-09-10
23:04:22 UTC (rev 2855)
@@ -0,0 +1,70 @@
+/**
+ *
+ */
+package org.richfaces.samples;
+
+import javax.ejb.Local;
+import javax.ejb.LocalHome;
+
+/**
+ * @author asmirnov
+ *
+ */
+@Local
+public interface Guess {
+
+ /**
+ * @return the min
+ */
+ public int getMin();
+
+ /**
+ * @param min the min to set
+ */
+ public void setMin(int min);
+
+ /**
+ * @return the max
+ */
+ public int getMax();
+
+ /**
+ * @param max the max to set
+ */
+ public void setMax(int max);
+
+ /**
+ * @return the attempts
+ */
+ public int getAttempts();
+
+ /**
+ * @param attempts the attempts to set
+ */
+ public void setAttempts(int attempts);
+
+ /**
+ * @return the maxAttempts
+ */
+ public int getMaxAttempts();
+
+ /**
+ * @param maxAttempts the maxAttempts to set
+ */
+ public void setMaxAttempts(int maxAttempts);
+
+ /**
+ * @return the userGuess
+ */
+ public int getUserGuess();
+
+ /**
+ * @param userGuess the userGuess to set
+ */
+ public void setUserGuess(int userGuess);
+
+ public void start();
+
+ public int guess();
+
+}
Property changes on:
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Guess.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added:
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/GuessBean.java
===================================================================
---
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/GuessBean.java
(rev 0)
+++
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/GuessBean.java 2007-09-10
23:04:22 UTC (rev 2855)
@@ -0,0 +1,138 @@
+/**
+ *
+ */
+package org.richfaces.samples;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+
+/**
+ * @author asmirnov
+ *
+ */
+@Stateful
+public class GuessBean implements Guess {
+
+ int random;
+
+ int min;
+
+ int max;
+
+ int attempts;
+
+ int maxAttempts;
+
+ int userGuess;
+
+ public GuessBean() {
+ }
+
+
+
+ @Remove
+ public void destroy(){
+
+ }
+
+ /**
+ * @return the random
+ */
+ public int getRandom() {
+ return random;
+ }
+
+ /**
+ * @param random the random to set
+ */
+ public void setRandom(int random) {
+ this.random = random;
+ }
+
+ /**
+ * @return the min
+ */
+ public int getMin() {
+ return min;
+ }
+
+ /**
+ * @param min the min to set
+ */
+ public void setMin(int min) {
+ this.min = min;
+ }
+
+ /**
+ * @return the max
+ */
+ public int getMax() {
+ return max;
+ }
+
+ /**
+ * @param max the max to set
+ */
+ public void setMax(int max) {
+ this.max = max;
+ }
+
+ /**
+ * @return the attempts
+ */
+ public int getAttempts() {
+ return attempts;
+ }
+
+ /**
+ * @param attempts the attempts to set
+ */
+ public void setAttempts(int attempts) {
+ this.attempts = attempts;
+ }
+
+
+
+ /**
+ * @return the maxAttempts
+ */
+ public int getMaxAttempts() {
+ return maxAttempts;
+ }
+
+
+
+ /**
+ * @param maxAttempts the maxAttempts to set
+ */
+ public void setMaxAttempts(int maxAttempts) {
+ this.maxAttempts = maxAttempts;
+ }
+
+
+
+ /**
+ * @return the userGuess
+ */
+ public int getUserGuess() {
+ return userGuess;
+ }
+
+
+
+ /**
+ * @param userGuess the userGuess to set
+ */
+ public void setUserGuess(int userGuess) {
+ this.userGuess = userGuess;
+ }
+
+ public void start(){
+
+ }
+
+ public int guess(){
+ return userGuess-random;
+ }
+
+}
Property changes on:
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/GuessBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added:
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/application/META-INF/MANIFEST.MF
===================================================================
---
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/application/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/application/META-INF/MANIFEST.MF 2007-09-10
23:04:22 UTC (rev 2855)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on:
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/application/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/samples/richfaces-ear-demo/webapp/pom.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/pom.xml 2007-09-10 22:44:20 UTC (rev 2854)
+++ trunk/samples/richfaces-ear-demo/webapp/pom.xml 2007-09-10 23:04:22 UTC (rev 2855)
@@ -2,77 +2,84 @@
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">
<parent>
- <artifactId>richfaces-ear-demo</artifactId>
- <groupId>org.richfaces.samples</groupId>
- <version>3.1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
- <artifactId>webapp</artifactId>
- <packaging>war</packaging>
- <name>webapp Maven Webapp</name>
- <version>3.1.0-SNAPSHOT</version>
- <url>http://maven.apache.org</url>
- <build>
- <finalName>webapp</finalName>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.framework</groupId>
- <artifactId>richfaces-impl</artifactId>
- <version>3.1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>richfaces-ui</artifactId>
- <version>3.1.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.richfaces.framework</groupId>
- <artifactId>richfaces-api</artifactId>
- <version>3.1.0-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
- <artifactId>ejb</artifactId>
- <version>3.1.0-SNAPSHOT</version>
- <type>ejb-client</type>
- </dependency>
- <dependency>
- <groupId>com.sun.facelets</groupId>
- <artifactId>jsf-facelets</artifactId>
- <version>1.1.12</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.5</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet.jsp</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.1</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <version>1.2_04</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <version>1.2_04</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
+ <artifactId>richfaces-ear-demo</artifactId>
+ <groupId>org.richfaces.samples</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>webapp</artifactId>
+ <packaging>war</packaging>
+ <name>webapp Maven Webapp</name>
+ <version>3.1.0-SNAPSHOT</version>
+ <url>http://maven.apache.org</url>
+ <build>
+ <finalName>webapp</finalName>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.ejb</groupId>
+ <artifactId>ejb-api</artifactId>
+ <version>3.0</version>
+ <scope>provided</scope>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>ejb</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <type>ejb-client</type>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.12</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.2_04</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>1.2_04</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
</project>
\ No newline at end of file
Added:
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/richfaces/samples/GuessViewBean.java
===================================================================
---
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/richfaces/samples/GuessViewBean.java
(rev 0)
+++
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/richfaces/samples/GuessViewBean.java 2007-09-10
23:04:22 UTC (rev 2855)
@@ -0,0 +1,31 @@
+/**
+ *
+ */
+package org.richfaces.samples;
+
+import javax.ejb.EJB;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class GuessViewBean {
+
+ @EJB
+ private Guess guess;
+
+ /**
+ * @return the guess
+ */
+ public Guess getGuess() {
+ return guess;
+ }
+
+ /**
+ * @param guess the guess to set
+ */
+ public void setGuess(Guess guess) {
+ this.guess = guess;
+ }
+
+}
Property changes on:
trunk/samples/richfaces-ear-demo/webapp/src/main/java/org/richfaces/samples/GuessViewBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/META-INF/MANIFEST.MF 2007-09-10
23:04:22 UTC (rev 2855)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on:
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp 2007-09-10 22:44:20
UTC (rev 2854)
+++ trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp 2007-09-10 23:04:22
UTC (rev 2855)
@@ -1,5 +1,11 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
<html>
-<body>
-<h2>Hello World!</h2>
-</body>
+
+<head></head>
+
+ <body>
+ <jsp:forward page="/faces/pages/guess.xhtml" />
+ </body>
+
</html>
Added: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/pages/guess.xhtml
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/pages/guess.xhtml
(rev 0)
+++ trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/pages/guess.xhtml 2007-09-10
23:04:22 UTC (rev 2855)
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+<head>
+<title>Guess number demo</title>
+</head>
+<body>
+<f:view>
+ <h:form id="form" >
+ <rich:panel>
+ <f:facet name="header" >
+ <h:outputText value="Guess number demo application"/>
+ </f:facet>
+ Hello, world !
+ </rich:panel>
+ </h:form>
+ <a4j:log hotkey="D" />
+</f:view>
+</body>
+</html>
Property changes on:
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/pages/guess.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain