[weld-commits] Weld SVN: r5349 - in archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp: WEB-INF and 4 other directories.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Thu Dec 17 17:38:37 EST 2009


Author: dan.j.allen
Date: 2009-12-17 17:38:37 -0500 (Thu, 17 Dec 2009)
New Revision: 5349

Added:
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/home.xhtml
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/css/
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/weld.png
Removed:
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
Modified:
   archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.jsp
Log:
add template and theme to jee archetype


Added: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml
===================================================================
--- archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml	                        (rev 0)
+++ archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/templates/default.xhtml	2009-12-17 22:38:37 UTC (rev 5349)
@@ -0,0 +1,52 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+   xmlns:h="http://java.sun.com/jsf/html"
+   xmlns:ui="http://java.sun.com/jsf/facelets">
+   <h:head>
+      <title>Java EE 6 Starter Application</title>
+      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+      <h:outputStylesheet name="css/screen.css"/>
+   </h:head>
+   <h:body>
+      <div id="container">
+         <div id="content">
+            <div id="sidebar">
+               <h3>Find out more</h3>
+               <p>
+                  Explore JavaServer Faces.
+               </p>
+               <ul>
+                  <li><a href="http://www.javaserverfaces.org">JSF community site</a></li>
+               </ul>
+               <p>
+                  Learn more about Java EE 6 and the extensions provided by Weld and Seam.
+               </p>
+               <ul>
+                  <li><a href="http://seamframework.org/Weld/JSR299AndWeldOverview">Overview</a></li>
+                  <li><a href="http://seamframework.org">Project site</a></li>
+                  <li><a href="http://seamframework.org/Documentation/SeamDocumentation#H-WeldReferenceDocumentation">Documentation</a></li>
+                  <li><a href="http://seamframework.org/Community/Forums">User forums</a></li>
+                  <li><a href="http://seamframework.org/Community/MailingLists">Mailing lists</a></li>
+                  <li><a href="https://jira.jboss.org/jira/browse/WELD">Issue tracker</a></li>
+               </ul>
+               <p>
+                  If you have an add-on, please <a href="http://seamframework.org/Community/Forums">let us know</a> and
+                  consider <a href="http://seamframework.org/Community/Contribute">contributing</a> it back to the
+                  community!
+               </p>
+            </div>
+            <ui:insert name="content">
+               [Template content will be inserted here]
+            </ui:insert>
+         </div>
+         <div id="footer">
+            <h:graphicImage value="/resources/gfx/weld.png" alt="Weld logo"/>
+            <p>
+               This project was generated from a Maven archetype maintained by the Weld team.<br/>
+               Weld is the reference implementation of CDI, released under the Apache License, Version 2.0.<br/>
+            </p>
+         </div>
+      </div>
+   </h:body>
+</html>

Copied: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/home.xhtml (from rev 5317, archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml)
===================================================================
--- archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/home.xhtml	                        (rev 0)
+++ archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/home.xhtml	2009-12-17 22:38:37 UTC (rev 5349)
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+   xmlns:ui="http://java.sun.com/jsf/facelets"
+   xmlns:f="http://java.sun.com/jsf/core"
+   xmlns:h="http://java.sun.com/jsf/html"
+   template="/WEB-INF/templates/default.xhtml">
+   <ui:define name="content">
+      <h1>Hello World!</h1>
+      <p>Your CDI bean <code>HelloWorld</code> says <span style="color: blue;">#{helloWorld.text}</span> using the Unified EL.</p>
+
+      <h:form id="bv">
+         <h2>Bean Validation examples</h2>
+         <p>Enforces annotation-based constraints defined on the model class.</p>
+         <table>
+            <tr>
+               <th style="text-align: right;">
+                  <h:outputLabel for="letters" value="Letters:"/>
+               </th>
+               <td>
+                  <h:inputText id="letters" value="#{helloWorld.letters}"/>
+                  <h:message for="letters" errorClass="invalid"/>
+               </td>
+            </tr>
+            <tr>
+               <th style="text-align: right;">
+                  <h:outputLabel for="numbers" value="Numbers:"/>
+               </th>
+               <td>
+                  <h:inputText id="numbers" value="#{helloWorld.numbers}"/>
+                  <h:message for="numbers" errorClass="invalid"/>
+               </td>
+            </tr>
+            <tr>
+               <th style="text-align: right;">
+                  <h:outputLabel for="email" value="Email:"/>
+               </th>
+               <td>
+                  <h:inputText id="email" value="#{helloWorld.email}"/>
+                  <h:message for="email" errorClass="invalid"/>
+               </td>
+            </tr>
+         </table>
+         <p>
+            <h:commandButton id="check" action="check" value="Check values"/>
+            <h:outputText value=" All clear!" rendered="#{facesContext.postback and empty facesContext.messageList}" style="color: green;"/>
+         </p>
+      </h:form>
+      <h2>Widgets</h2>
+      <h:dataTable var="_widget" value="#{widgets}">
+         <h:column>
+            <f:facet name="header">Id</f:facet>
+            #{_widget.id}
+         </h:column>
+         <h:column>
+            <f:facet name="header">Part Number</f:facet>
+            #{_widget.partNumber}
+         </h:column>
+         <h:column>
+            <f:facet name="header">Name</f:facet>
+            #{_widget.name}
+         </h:column>
+         <h:column>
+            <f:facet name="header">Description</f:facet>
+            #{_widget.description}
+         </h:column>
+      </h:dataTable>
+   </ui:define>
+</ui:composition>

Modified: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.jsp
===================================================================
--- archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.jsp	2009-12-17 22:29:50 UTC (rev 5348)
+++ archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.jsp	2009-12-17 22:38:37 UTC (rev 5349)
@@ -1 +1 @@
-<% response.sendRedirect("index.jsf"); %>
+<% response.sendRedirect("home.jsf"); %>

Deleted: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
===================================================================
--- archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml	2009-12-17 22:29:50 UTC (rev 5348)
+++ archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml	2009-12-17 22:38:37 UTC (rev 5349)
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
-   xmlns:f="http://java.sun.com/jsf/core"
-   xmlns:h="http://java.sun.com/jsf/html">
-   <h:head>
-      <title>Java EE 6 Starter Application</title>
-   </h:head>
-   <h:body>
-      <h1>Hello World!</h1>
-      <p>My CDI bean says <span style="color: blue;">#{helloWorld.text}</span> using the Unified EL.</p>
-
-      <h:form>
-         <h2>Bean Validation examples</h2>
-         <p>Enforces annotation-based constraints defined on the model class.</p>
-         <table>
-            <tr>
-               <th style="text-align: right;">
-                  <h:outputLabel for="letters" value="Letters:"/>
-               </th>
-               <td>
-                  <h:inputText id="letters" value="#{helloWorld.letters}"/>
-                  <h:message for="letters" style="color: red;"/>
-               </td>
-            </tr>
-            <tr>
-               <th style="text-align: right;">
-                  <h:outputLabel for="numbers" value="Numbers (max two digits):"/>
-               </th>
-               <td>
-                  <h:inputText id="numbers" value="#{helloWorld.numbers}"/>
-                  <h:message for="numbers" style="color: red;"/>
-               </td>
-            </tr>
-            <tr>
-               <th style="text-align: right;">
-                  <h:outputLabel for="email" value="Email:"/>
-               </th>
-               <td>
-                  <h:inputText id="email" value="#{helloWorld.email}"/>
-                  <h:message for="email" style="color: red;"/>
-               </td>
-            </tr>
-         </table>
-         <p>
-            <h:commandButton action="check" value="Check"/>
-            <h:outputText value=" All clear!" rendered="#{facesContext.postback and empty facesContext.messageList}" style="color: green;"/>
-         </p>
-      </h:form>
-   
-      <h2>Widgets</h2>
-      <h:dataTable var="_widget" value="#{widgets}">
-         <h:column>
-            <f:facet name="header">Id</f:facet>
-            #{_widget.id}
-         </h:column>
-         <h:column>
-            <f:facet name="header">Part Number</f:facet>
-            #{_widget.partNumber}
-         </h:column>
-         <h:column>
-            <f:facet name="header">Name</f:facet>
-            #{_widget.name}
-         </h:column>
-         <h:column>
-            <f:facet name="header">Description</f:facet>
-            #{_widget.description}
-         </h:column>
-      </h:dataTable>
-
-   </h:body>
-</html>

Added: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css
===================================================================
--- archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css	                        (rev 0)
+++ archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/css/screen.css	2009-12-17 22:38:37 UTC (rev 5349)
@@ -0,0 +1,39 @@
+body {
+   margin: 0;
+   padding: 0;
+   background-color: #EAECEE;
+   font-family: Verdana, sans-serif;
+   font-size: 0.9em;
+}
+#container {
+   margin: 0 auto;
+   padding: 0 20px 10px 20px;
+   border: 1px solid #666666;
+   width: 865px; /* subtract 40px from banner width for padding */
+   background: #FFFFFF url(#{request.contextPath}/resources/gfx/banner.png) no-repeat;
+   padding-top: 110px;
+}
+#sidebar {
+   font-size: 0.9em;
+   width: 225px;
+   float: right;
+   border: 1px solid #666666;
+   background: #EAECEE;
+   padding: 0 15px 5px 15px;
+}
+#sidebar ul {
+   padding-left: 30px;
+}
+#footer {
+   clear: both;
+   text-align: center;
+   color: #666666;
+   font-size: 0.85em;
+}
+code {
+   font-size: 1.1em;
+}
+span.invalid {
+   padding-left: 3px;
+   color: red;
+}
\ No newline at end of file

Added: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
===================================================================
(Binary files differ)


Property changes on: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/banner.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/weld.png
===================================================================
(Binary files differ)


Property changes on: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/src/main/webapp/resources/gfx/weld.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the weld-commits mailing list