Author: manaRH
Date: 2012-05-28 09:08:29 -0400 (Mon, 28 May 2012)
New Revision: 14789
Added:
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml
Removed:
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp
Modified:
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml
Log:
JBSEAM-4967 migrated to facelets from JSP template
Signed-off-by: Marek Novotn?\195?\189 <hotmana76(a)gmail.com>
Modified:
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml
===================================================================
---
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml 2012-05-28
13:08:07 UTC (rev 14788)
+++
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/WEB-INF/web.xml 2012-05-28
13:08:29 UTC (rev 14789)
@@ -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/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp
===================================================================
---
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp 2012-05-28
13:08:07 UTC (rev 14788)
+++
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp 2012-05-28
13:08:29 UTC (rev 14789)
@@ -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/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml
(from rev 14788,
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.jsp)
===================================================================
---
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml
(rev 0)
+++
branches/enterprise/WFK-2_0/examples-ee6/messages/messages-web/src/main/webapp/messages.xhtml 2012-05-28
13:08:29 UTC (rev 14789)
@@ -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>