[jboss-cvs] jboss-seam/examples/seamspace/view ...
Shane Bryzak
Shane_Bryzak at symantec.com
Thu Jan 18 07:28:56 EST 2007
User: sbryzak2
Date: 07/01/18 07:28:56
Modified: examples/seamspace/view blog.xhtml blogentry.xhtml
comment.xhtml home.xhtml profile.xhtml
register.xhtml
Added: examples/seamspace/view register2.xhtml
Log:
registration form
Revision Changes Path
1.6 +4 -4 jboss-seam/examples/seamspace/view/blog.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: blog.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/blog.xhtml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- blog.xhtml 17 Jan 2007 13:45:02 -0000 1.5
+++ blog.xhtml 18 Jan 2007 12:28:56 -0000 1.6
@@ -16,8 +16,8 @@
<s:div rendered="#{selectedMember != null}">
<s:div id="blogMemberCard">
- <h:outputLink value="profile.seam?name=#{selectedMember.name}">
- #{selectedMember.name}<br/>
+ <h:outputLink value="profile.seam?name=#{selectedMember.memberName}">
+ #{selectedMember.memberName}<br/>
<h:graphicImage value="/content/images?id=#{selectedMember.picture.imageId}&width=90"/>
</h:outputLink>
@@ -31,10 +31,10 @@
<div class="blogTitle">#{memberBlog.title}</div>
<div class="blogText"><s:formattedText value="#{memberBlog.text}"/></div>
<div class="blogFooter">
- <h:outputLink value="blogentry.seam?name=#{selectedMember.name}&blogId=#{memberBlog.blogId}">
+ <h:outputLink value="blogentry.seam?name=#{selectedMember.memberName}&blogId=#{memberBlog.blogId}">
#{memberBlog.commentCount} Comment#{memberBlog.commentCount != 1 ? "s" : ""}
</h:outputLink>
- <h:outputLink rendered="#{s:hasPermission('blog','createComment', null)}" value="comment.seam?name=#{selectedMember.name}&blogId=#{memberBlog.blogId}">
+ <h:outputLink rendered="#{s:hasPermission('blog','createComment', null)}" value="comment.seam?name=#{selectedMember.memberName}&blogId=#{memberBlog.blogId}">
Add Comment
</h:outputLink>
</div>
1.6 +6 -6 jboss-seam/examples/seamspace/view/blogentry.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: blogentry.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/blogentry.xhtml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- blogentry.xhtml 17 Jan 2007 13:45:02 -0000 1.5
+++ blogentry.xhtml 18 Jan 2007 12:28:56 -0000 1.6
@@ -16,8 +16,8 @@
<s:div rendered="#{selectedBlog != null}">
<s:div id="blogMemberCard">
- <h:outputLink value="profile.seam?name=#{selectedMember.name}">
- #{selectedMember.name}<br/>
+ <h:outputLink value="profile.seam?name=#{selectedMember.memberName}">
+ #{selectedMember.memberName}<br/>
<h:graphicImage value="/content/images?id=#{selectedMember.picture.imageId}&width=90"/>
</h:outputLink>
@@ -38,8 +38,8 @@
<table class="blogComment">
<tr>
<td class="blogCommentor">
- <h:outputLink value="profile.seam?name=#{comment.commentor.name}">
- #{comment.commentor.name}<br/>
+ <h:outputLink value="profile.seam?name=#{comment.commentor.memberName}">
+ #{comment.commentor.memberName}<br/>
<h:graphicImage value="/content/images?id=#{comment.commentor.picture.imageId}&width=90"/>
</h:outputLink>
</td>
@@ -47,8 +47,8 @@
<td class="blogCommentText">
<p><s:formattedText value="#{comment.comment}"/></p>
<p>Posted by
- <h:outputLink value="profile.seam?name=#{comment.commentor.name}">
- #{comment.commentor.name}
+ <h:outputLink value="profile.seam?name=#{comment.commentor.memberName}">
+ #{comment.commentor.memberName}
</h:outputLink> on #{comment.formattedCommentDate}
</p>
</td>
1.3 +22 -3 jboss-seam/examples/seamspace/view/comment.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: comment.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/comment.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- comment.xhtml 17 Jan 2007 13:45:02 -0000 1.2
+++ comment.xhtml 18 Jan 2007 12:28:56 -0000 1.3
@@ -16,8 +16,8 @@
<s:div rendered="#{selectedMember != null}">
<s:div id="blogMemberCard">
- <h:outputLink value="profile.seam?name=#{selectedMember.name}">
- #{selectedMember.name}<br/>
+ <h:outputLink value="profile.seam?name=#{selectedMember.memberName}">
+ #{selectedMember.memberName}<br/>
<h:graphicImage value="/content/images?id=#{selectedMember.picture.imageId}&width=90"/>
</h:outputLink>
@@ -28,7 +28,7 @@
<div class="blogEntry">
<div class="blogDate">#{selectedBlog.formattedEntryDate}</div>
<div class="blogTitle">#{selectedBlog.title}</div>
- <div class="blogText">#{selectedBlog.text}</div>
+ <div class="blogText"><s:formattedText value="#{selectedBlog.text}"/></div>
</div>
<s:div rendered="#{comment.comment != null}">
@@ -57,6 +57,25 @@
</h:form>
</div>
+ <div>
+ <b>Seam Text Quick Reference</b><br/>
+ <pre><code>
+*bold* /italic/ |monospace| -strikethrough- ^super^ _underline_
+
++Big Heading
+Headings must be followed by text
+
+++Smaller heading
+Paragraphs are ended with a blank line.
+
+#ordered list item
+
+=unordered list item
+
+"quoted text"
+ </code></pre>
+ </div>
+
</s:div>
</s:div>
1.11 +4 -4 jboss-seam/examples/seamspace/view/home.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: home.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/home.xhtml,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- home.xhtml 15 Jan 2007 09:48:20 -0000 1.10
+++ home.xhtml 18 Jan 2007 12:28:56 -0000 1.11
@@ -45,9 +45,9 @@
<h:message for="password"/>
</div>
- <div class="loginButtons">
+ <div class="buttons">
<h:commandButton value="LOGIN" action="#{login.login}" styleClass="loginButton"/>
- <h:commandButton value="SIGN UP!" action="/register.seam" styleClass="registerButton"/>
+ <h:commandButton value="SIGN UP!" action="#{register.start}" styleClass="registerButton"/>
</div>
<br class="clear"/>
@@ -63,8 +63,8 @@
<ui:repeat value="#{newMembers}" var="newMember">
<div class="newMember">
- <h:outputLink value="profile.seam?name=#{newMember.name}">
- #{newMember.name}<br/>
+ <h:outputLink value="profile.seam?name=#{newMember.memberName}">
+ #{newMember.memberName}<br/>
<h:graphicImage value="/content/images?id=#{newMember.picture.imageId}&width=90"/>
</h:outputLink>
1.10 +4 -4 jboss-seam/examples/seamspace/view/profile.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: profile.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/profile.xhtml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- profile.xhtml 17 Jan 2007 13:45:02 -0000 1.9
+++ profile.xhtml 18 Jan 2007 12:28:56 -0000 1.10
@@ -16,7 +16,7 @@
<s:div rendered="#{selectedMember != null}">
<s:div id="memberCard">
- <h1>#{selectedMember.name}'s profile</h1>
+ <h1>#{selectedMember.memberName}'s profile</h1>
<s:div id="memberCardPicture" rendered="#{selectedMember.picture != null}">
<h:graphicImage value="/content/images?id=#{selectedMember.picture.imageId}&width=170"/>
@@ -36,15 +36,15 @@
</s:div>
<s:div id="memberBlog">
- <div class="sectionHeader">#{selectedMember.name}'s latest blog entries</div>
+ <div class="sectionHeader">#{selectedMember.memberName}'s latest blog entries</div>
<ui:repeat value="#{blog.latestBlogs}" var="latestBlog">
<div class="blogSummary">#{latestBlog.title}
- (<h:outputLink value="blogentry.seam?name=#{selectedMember.name}&blogId=#{latestBlog.blogId}">view more</h:outputLink>)
+ (<h:outputLink value="blogentry.seam?name=#{selectedMember.memberName}&blogId=#{latestBlog.blogId}">view more</h:outputLink>)
</div>
</ui:repeat>
- [<h:outputLink value="blog.seam?name=#{selectedMember.name}">View all blog entries</h:outputLink>]
+ [<h:outputLink value="blog.seam?name=#{selectedMember.memberName}">View all blog entries</h:outputLink>]
[<s:link action="#{blog.createEntry}" value="Create new blog entry"/>]
</s:div>
1.2 +54 -2 jboss-seam/examples/seamspace/view/register.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: register.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/register.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- register.xhtml 12 Jan 2007 13:24:40 -0000 1.1
+++ register.xhtml 18 Jan 2007 12:28:56 -0000 1.2
@@ -2,6 +2,7 @@
<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">
@@ -14,8 +15,59 @@
JOIN SEAMSPACE HERE!
</div>
- <h:form>
+ <h:form styleClass="register">
+ <s:validateAll>
+ <div class="formRow">
+ <h:outputLabel for="email">Email address<em>*</em></h:outputLabel>
+ <h:inputText id="email" value="#{newMember.email}" required="true" styleClass="wide"/>
+ <div class="validationError"><h:message for="email"/></div>
+ </div>
+
+ <div class="formRow">
+ <h:outputLabel for="firstName">First name<em>*</em></h:outputLabel>
+ <h:inputText id="firstName" value="#{newMember.firstName}" required="true"/>
+ <div class="validationError"><h:message for="firstName"/></div>
+ </div>
+
+ <div class="formRow">
+ <h:outputLabel for="lastName">Last name<em>*</em></h:outputLabel>
+ <h:inputText id="lastName" value="#{newMember.lastName}" required="true"/>
+ <div class="validationError"><h:message for="lastName"/></div>
+ </div>
+
+ <div class="formRow">
+ <h:outputLabel for="password">Password<em>*</em></h:outputLabel>
+ <h:inputSecret id="password" value="#{newMember.password}" required="true"/>
+ <div class="validationError"><h:message for="password"/></div>
+ </div>
+ <div class="formRow">
+ <h:outputLabel for="confirmPassword">Confirm password<em>*</em></h:outputLabel>
+ <h:inputSecret id="confirmPassword" value="#{register.confirm}" required="true"/>
+ <div class="validationError"><h:message for="confirmPassword"/></div>
+ </div>
+
+ <div class="formRow">
+ <h:outputLabel for="gender">Gender<em>*</em></h:outputLabel>
+ <h:selectOneRadio id="gender" value="#{register.gender}" required="true">
+ <f:selectItem itemValue="Male"/>
+ <f:selectItem itemValue="Female"/>
+ </h:selectOneRadio>
+ <div class="validationError"><h:message for="gender"/></div>
+ </div>
+
+ <div class="formRow">
+ <h:outputLabel for="dob">Date of birth<em>*</em></h:outputLabel>
+ <h:inputText id="dob" value="#{newMember.dob}" required="true"/>
+ <s:selectDate for="dob"><img src="images/ellipsis.png" class="ellipsis"/></s:selectDate>
+ <div class="validationError"><h:message for="dob"/></div>
+ </div>
+
+ </s:validateAll>
+
+ <div class="buttons">
+ <h:commandButton value="Next" action="#{register.next}" styleClass="registerButton"/>
+ </div>
</h:form>
1.1 date: 2007/01/18 12:28:56; author: sbryzak2; state: Exp;jboss-seam/examples/seamspace/view/register2.xhtml
Index: register2.xhtml
===================================================================
<!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:s="http://jboss.com/products/seam/taglib">
<ui:composition template="template.xhtml">
<ui:define name="content">
<div id="contentMain">
<div class="errors"><h:messages globalOnly="true"/></div>
<div id="register">
<div class="registerHeader">
JOIN SEAMSPACE HERE!
</div>
<h:form styleClass="register">
<s:validateAll>
</s:validateAll>
<div class="buttons">
<h:commandButton value="Upload" action="#{register.next}" styleClass="registerButton"/>
</div>
</h:form>
<br class="clear"/>
</div>
</div>
</ui:define>
</ui:composition>
</html>
More information about the jboss-cvs-commits
mailing list