[webbeans-commits] Webbeans SVN: r490 - in ri/trunk/examples: numberguess and 5 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Tue Dec 9 04:12:55 EST 2008


Author: pete.muir at jboss.org
Date: 2008-12-09 04:12:55 -0500 (Tue, 09 Dec 2008)
New Revision: 490

Added:
   ri/trunk/examples/numberguess/
   ri/trunk/examples/numberguess/pom.xml
   ri/trunk/examples/numberguess/src/
   ri/trunk/examples/numberguess/src/main/
   ri/trunk/examples/numberguess/src/main/java/
   ri/trunk/examples/numberguess/src/main/resources/
   ri/trunk/examples/numberguess/src/main/resources/META-INF/
   ri/trunk/examples/numberguess/src/main/webapp/
   ri/trunk/examples/numberguess/src/main/webapp/WEB-INF/
   ri/trunk/examples/numberguess/src/main/webapp/home.xhtml
   ri/trunk/examples/numberguess/src/main/webapp/index.html
   ri/trunk/examples/numberguess/src/main/webapp/style/
   ri/trunk/examples/numberguess/src/main/webapp/style/header.png
   ri/trunk/examples/numberguess/src/main/webapp/style/main.css
   ri/trunk/examples/numberguess/src/main/webapp/style/sidebar.png
   ri/trunk/examples/numberguess/src/main/webapp/template.xhtml
Modified:
   ri/trunk/examples/pom.xml
Log:
add numberguess example

Added: ri/trunk/examples/numberguess/pom.xml
===================================================================
--- ri/trunk/examples/numberguess/pom.xml	                        (rev 0)
+++ ri/trunk/examples/numberguess/pom.xml	2008-12-09 09:12:55 UTC (rev 490)
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+   
+   <parent>
+      <groupId>org.jboss.webbeans.examples</groupId>
+      <artifactId>parent</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+   </parent>
+   
+   <groupId>org.jboss.webbeans.examples</groupId>
+   <artifactId>webbeans-numberguess</artifactId>
+   <packaging>war</packaging>
+   <name>Web Beans Examples: Numberguess</name>
+   
+   <pluginRepositories>
+        <pluginRepository>
+            <id>codehaus snapshot repository</id>
+            <url>http://snapshots.repository.codehaus.org/</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+        </pluginRepository>
+    </pluginRepositories>
+   
+   <dependencies>
+      <dependency>
+         <groupId>org.testng</groupId>
+         <artifactId>testng</artifactId>
+         <scope>test</scope>
+         <classifier>jdk15</classifier>
+      </dependency>
+      
+      <dependency>
+         <groupId>org.jboss.webbeans</groupId>
+         <artifactId>webbeans-api</artifactId>
+         <scope>provided</scope>
+      </dependency>
+      
+      <dependency>
+        <groupId>com.sun.facelets</groupId>
+        <artifactId>jsf-facelets</artifactId>
+        <version>1.1.15.B1</version>
+      </dependency>
+   </dependencies>
+   
+</project>
+

Added: ri/trunk/examples/numberguess/src/main/webapp/home.xhtml
===================================================================
--- ri/trunk/examples/numberguess/src/main/webapp/home.xhtml	                        (rev 0)
+++ ri/trunk/examples/numberguess/src/main/webapp/home.xhtml	2008-12-09 09:12:55 UTC (rev 490)
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:ui="http://java.sun.com/jsf/facelets"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:f="http://java.sun.com/jsf/core"
+    xmlns:s="http://jboss.com/products/seam/taglib">
+
+  <ui:composition template="template.xhtml">
+    <ui:define name="content">
+      A Web Beans example
+      <h:outputText value="#{game.number}" />
+    </ui:define>
+  </ui:composition>
+</html>
\ No newline at end of file

Added: ri/trunk/examples/numberguess/src/main/webapp/index.html
===================================================================
--- ri/trunk/examples/numberguess/src/main/webapp/index.html	                        (rev 0)
+++ ri/trunk/examples/numberguess/src/main/webapp/index.html	2008-12-09 09:12:55 UTC (rev 490)
@@ -0,0 +1,5 @@
+<html>
+<head>
+  <meta http-equiv="Refresh" content="0; URL=home.seam">
+</head>
+</html>
\ No newline at end of file

Added: ri/trunk/examples/numberguess/src/main/webapp/style/header.png
===================================================================
(Binary files differ)


Property changes on: ri/trunk/examples/numberguess/src/main/webapp/style/header.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: ri/trunk/examples/numberguess/src/main/webapp/style/main.css
===================================================================
--- ri/trunk/examples/numberguess/src/main/webapp/style/main.css	                        (rev 0)
+++ ri/trunk/examples/numberguess/src/main/webapp/style/main.css	2008-12-09 09:12:55 UTC (rev 490)
@@ -0,0 +1,26 @@
+body {
+  margin: 0px;
+  background-color: #ffffff;
+}
+
+#header {
+  background: url(header.png) top left no-repeat;
+  height: 116px;
+}
+
+#container {
+  width: 1024px;
+  background-color: #ffffff;
+}
+
+#sidebar {
+  background: url(sidebar.png) top left no-repeat;
+  background-color: #ffffff;
+  float: left;
+  width: 150px;
+  height: 487px;
+}
+
+#content {
+
+}
\ No newline at end of file

Added: ri/trunk/examples/numberguess/src/main/webapp/style/sidebar.png
===================================================================
(Binary files differ)


Property changes on: ri/trunk/examples/numberguess/src/main/webapp/style/sidebar.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: ri/trunk/examples/numberguess/src/main/webapp/template.xhtml
===================================================================
--- ri/trunk/examples/numberguess/src/main/webapp/template.xhtml	                        (rev 0)
+++ ri/trunk/examples/numberguess/src/main/webapp/template.xhtml	2008-12-09 09:12:55 UTC (rev 490)
@@ -0,0 +1,35 @@
+<!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:s="http://jboss.com/products/seam/taglib"
+    xmlns:h="http://java.sun.com/jsf/html"
+    xmlns:f="http://java.sun.com/jsf/core">
+
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <title>Pizza Shack</title>
+  <link href="style/main.css" rel="stylesheet" type="text/css"/>
+  <ui:insert name="head"/>
+</head>
+
+<body>
+  
+  <div id="container">
+    <div id="header">
+  
+    </div>
+
+    <div id="sidebar">
+    
+    </div>
+  
+    <div id="content">
+      <ui:insert name="content"/>
+    </div>
+    
+    <br style="clear:both"/>
+  </div>
+   
+</body>
+</html>
+

Modified: ri/trunk/examples/pom.xml
===================================================================
--- ri/trunk/examples/pom.xml	2008-12-09 07:20:53 UTC (rev 489)
+++ ri/trunk/examples/pom.xml	2008-12-09 09:12:55 UTC (rev 490)
@@ -18,7 +18,7 @@
    </description>
 
    <modules>
-      <module>webbeans-numberguess</module>
+      <module>numberguess</module>
    </modules>
    
    <profiles>




More information about the weld-commits mailing list