[seam-commits] Seam SVN: r14755 - in branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp: WEB-INF and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sat May 26 15:55:43 EDT 2012


Author: manaRH
Date: 2012-05-26 15:55:42 -0400 (Sat, 26 May 2012)
New Revision: 14755

Added:
   branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml
Removed:
   branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp
Modified:
   branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml
Log:
JBSEAM-4967 migrated to facelets from JSP template

Modified: branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml	2012-05-26 19:55:10 UTC (rev 14754)
+++ branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml	2012-05-26 19:55:42 UTC (rev 14755)
@@ -11,6 +11,10 @@
         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
     </listener>
 
+    <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>

Deleted: branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp
===================================================================
--- branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp	2012-05-26 19:55:10 UTC (rev 14754)
+++ branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp	2012-05-26 19:55:42 UTC (rev 14755)
@@ -1,41 +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://http://www.jboss.org/schema/seam/taglib" prefix="s" %>
-<html>
- <head>
-  <title>Messages</title>
- </head>
- <body>
-  <f:view>
-     <h2>Message List</h2>
-     <h:outputText id="noMessages" value="No messages to display" rendered="#{messageList.rowCount==0}"/>
-     <h:dataTable id="messages" var="msg" value="#{messageList}" rendered="#{messageList.rowCount>0}">
-        <h:column>
-           <f:facet name="header">
-              <h:outputText value="Read"/>
-           </f:facet>
-           <h:selectBooleanCheckbox id="read" value="#{msg.read}" disabled="true"/>
-        </h:column>
-        <h:column>
-           <f:facet name="header">
-              <h:outputText value="Title"/>
-           </f:facet>
-           <s:link id="link" value="#{msg.title}" action="#{messageManager.select}"/>
-        </h:column>
-        <h:column>
-           <f:facet name="header">
-              <h:outputText value="Date/Time"/>
-           </f:facet>
-           <h:outputText id="date" value="#{msg.datetime}">
-              <f:convertDateTime type="both" dateStyle="medium" timeStyle="short"/>
-           </h:outputText>
-        </h:column>
-        <h:column>
-           <s:button id="delete" value="Delete" action="#{messageManager.delete}"/>
-        </h:column>
-     </h:dataTable>
-     <h3><h:outputText id="title" value="#{message.title}"/></h3>
-     <div><h:outputText id="text" value="#{message.text}"/></div>
-  </f:view>
- </body>
-</html>

Copied: branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml (from rev 14754, branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp)
===================================================================
--- branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml	2012-05-26 19:55:42 UTC (rev 14755)
@@ -0,0 +1,44 @@
+<?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>Messages</title>
+ </head>
+ <body>
+  <f:view>
+     <h2>Message List</h2>
+     <h:outputText id="noMessages" value="No messages to display" rendered="#{messageList.rowCount==0}"/>
+     <h:dataTable id="messages" var="msg" value="#{messageList}" rendered="#{messageList.rowCount>0}">
+        <h:column>
+           <f:facet name="header">
+              <h:outputText value="Read"/>
+           </f:facet>
+           <h:selectBooleanCheckbox id="read" value="#{msg.read}" disabled="true"/>
+        </h:column>
+        <h:column>
+           <f:facet name="header">
+              <h:outputText value="Title"/>
+           </f:facet>
+           <s:link id="link" value="#{msg.title}" action="#{messageManager.select}"/>
+        </h:column>
+        <h:column>
+           <f:facet name="header">
+              <h:outputText value="Date/Time"/>
+           </f:facet>
+           <h:outputText id="date" value="#{msg.datetime}">
+              <f:convertDateTime type="both" dateStyle="medium" timeStyle="short"/>
+           </h:outputText>
+        </h:column>
+        <h:column>
+           <s:button id="delete" value="Delete" action="#{messageManager.delete}"/>
+        </h:column>
+     </h:dataTable>
+     <h3><h:outputText id="title" value="#{message.title}"/></h3>
+     <div><h:outputText id="text" value="#{message.text}"/></div>
+  </f:view>
+ </body>
+</html>



More information about the seam-commits mailing list