[seam-commits] Seam SVN: r14851 - branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Jun 7 06:32:55 EDT 2012


Author: manaRH
Date: 2012-06-07 06:32:55 -0400 (Thu, 07 Jun 2012)
New Revision: 14851

Added:
   branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.xhtml
   branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.xhtml
Removed:
   branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.jsp
   branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp
Log:
JBSEAM-4967 migrated todo example to facelets from JSP template

Deleted: branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.jsp
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.jsp	2012-06-07 10:32:42 UTC (rev 14850)
+++ branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.jsp	2012-06-07 10:32:55 UTC (rev 14851)
@@ -1,18 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<html>
-<head>
-<title>Login</title>
-</head>
-<body>
-<h1>Login</h1>
-<f:view>
-	<h:form id="login">
-	  <div>
-	    <h:inputText id="username" value="#{login.user}"/>
-	    <h:commandButton id="submit" value="Login" action="#{login.login}"/>
-	  </div>
-	</h:form>
-</f:view>
-</body>
-</html>

Added: branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.xhtml
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.xhtml	                        (rev 0)
+++ branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/login.xhtml	2012-06-07 10:32:55 UTC (rev 14851)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!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:s="http://jboss.org/schema/seam/taglib"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core">
+   <head>
+      <title>Login</title>
+   </head>
+   <body>
+      <h1>Login</h1>
+      <f:view>
+         <h:form id="login">
+            <div>
+               <h:inputText id="username" value="#{login.user}"/>
+               <h:commandButton id="submit" value="Login" action="#{login.login}"/>
+            </div>
+         </h:form>
+      </f:view>
+   </body>
+</html>

Deleted: branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp	2012-06-07 10:32:42 UTC (rev 14850)
+++ branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp	2012-06-07 10:32:55 UTC (rev 14851)
@@ -1,63 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s"%>
-<html>
-<head>
-<title>Todo List</title>
-</head>
-<body>
-<h1>Todo List</h1>
-<f:view>
-   <h:form id="list">
-      <div>
-         <h:outputText id="noItems" value="There are no todo items." rendered="#{empty taskInstancePriorityList}"/>
-         <h:dataTable id="items" value="#{taskInstancePriorityList}" var="task" rendered="#{not empty taskInstancePriorityList}">
-            <h:column>
-                <f:facet name="header">
-                    <h:outputText value="Description"/>
-                </f:facet>
-                <h:inputText id="description" value="#{task.description}" style="width: 400"/>
-            </h:column>
-            <h:column>
-                <f:facet name="header">
-                    <h:outputText value="Created"/>
-                </f:facet>
-                <h:outputText value="#{task.taskMgmtInstance.processInstance.start}">
-                    <f:convertDateTime type="date"/>
-                </h:outputText>
-            </h:column>
-            <h:column>
-                <f:facet name="header">
-                    <h:outputText value="Priority"/>
-                </f:facet>
-                <h:inputText id="priority" value="#{task.priority}" style="width: 30"/>
-            </h:column>
-            <h:column>
-                <f:facet name="header">
-                    <h:outputText value="Due Date"/>
-                </f:facet>
-                <h:inputText id="dueDate" value="#{task.dueDate}" style="width: 100">
-                    <f:convertDateTime type="date" dateStyle="short"/>
-                </h:inputText>
-            </h:column>
-            <h:column>
-                <s:button id="done" action="#{todoList.done}" taskInstance="#{task}" value="Done"/>
-            </h:column>
-         </h:dataTable>
-      </div>
-      <div>
-      <h:messages/>
-      </div>
-      <div>
-         <h:commandButton id="update" value="Update Items" rendered="#{not empty taskInstanceList}"/>
-      </div>
-   </h:form>
-   <h:form id="new">
-      <div>
-         <h:inputText id="description" value="#{todoList.description}" style="width: 400"/>
-         <h:commandButton id="create" value="Create New Item" action="#{todoList.createTodo}"/>
-      </div>
-   </h:form>
-</f:view>
-</body>
-</html>

Copied: branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.xhtml (from rev 14850, branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.jsp)
===================================================================
--- branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.xhtml	                        (rev 0)
+++ branches/enterprise/WFK-2_0/examples-ee6/todo/todo-web/src/main/webapp/todo.xhtml	2012-06-07 10:32:55 UTC (rev 14851)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!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:s="http://jboss.org/schema/seam/taglib"
+      xmlns:h="http://java.sun.com/jsf/html"
+      xmlns:f="http://java.sun.com/jsf/core">
+<head>
+<title>Todo List</title>
+</head>
+<body>
+<h1>Todo List</h1>
+<f:view>
+   <h:form id="list">
+      <div>
+         <h:outputText id="noItems" value="There are no todo items." rendered="#{empty taskInstancePriorityList}"/>
+         <h:dataTable id="items" value="#{taskInstancePriorityList}" var="task" rendered="#{not empty taskInstancePriorityList}">
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Description"/>
+                </f:facet>
+                <h:inputText id="description" value="#{task.description}" style="width: 400"/>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Created"/>
+                </f:facet>
+                <h:outputText value="#{task.taskMgmtInstance.processInstance.start}">
+                    <f:convertDateTime type="date"/>
+                </h:outputText>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Priority"/>
+                </f:facet>
+                <h:inputText id="priority" value="#{task.priority}" style="width: 30"/>
+            </h:column>
+            <h:column>
+                <f:facet name="header">
+                    <h:outputText value="Due Date"/>
+                </f:facet>
+                <h:inputText id="dueDate" value="#{task.dueDate}" style="width: 100">
+                    <f:convertDateTime type="date" dateStyle="short"/>
+                </h:inputText>
+            </h:column>
+            <h:column>
+                <s:button id="done" action="#{todoList.done}" taskInstance="#{task}" value="Done"/>
+            </h:column>
+         </h:dataTable>
+      </div>
+      <div>
+      <h:messages/>
+      </div>
+      <div>
+         <h:commandButton id="update" value="Update Items" rendered="#{not empty taskInstanceList}"/>
+      </div>
+   </h:form>
+   <h:form id="new">
+      <div>
+         <h:inputText id="description" value="#{todoList.description}" style="width: 400"/>
+         <h:commandButton id="create" value="Create New Item" action="#{todoList.createTodo}"/>
+      </div>
+   </h:form>
+</f:view>
+</body>
+</html>



More information about the seam-commits mailing list