[jboss-cvs] jboss-seam/examples/seamspace/view ...
Shane Bryzak
Shane_Bryzak at symantec.com
Mon Jan 15 04:48:21 EST 2007
User: sbryzak2
Date: 07/01/15 04:48:21
Modified: examples/seamspace/view blog.xhtml blogentry.xhtml
home.xhtml profile.xhtml
Added: examples/seamspace/view comment.xhtml
security_error.xhtml
Log:
blog comments
Revision Changes Path
1.3 +3 -1 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.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- blog.xhtml 11 Jan 2007 02:23:17 -0000 1.2
+++ blog.xhtml 15 Jan 2007 09:48:20 -0000 1.3
@@ -34,7 +34,9 @@
<h:outputLink value="blogentry.seam?name=#{selectedMember.name}&blogId=#{memberBlog.blogId}">
#{memberBlog.commentCount} Comment#{memberBlog.commentCount != 1 ? "s" : ""}
</h:outputLink>
- <s:link value="Add Comment"/>
+ <h:outputLink value="comment.seam?name=#{selectedMember.name}&blogId=#{memberBlog.blogId}">
+ Add Comment
+ </h:outputLink>
</div>
</div>
</ui:repeat>
1.3 +2 -2 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.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- blogentry.xhtml 12 Jan 2007 13:24:39 -0000 1.2
+++ blogentry.xhtml 15 Jan 2007 09:48:20 -0000 1.3
@@ -31,11 +31,11 @@
<div class="blogText">#{selectedBlog.text}</div>
<div class="blogFooter">
#{selectedBlog.commentCount} Comment#{selectedBlog.commentCount != 1 ? "s" : ""}
- - <s:link value="Add Comment" action="#{commentAction.create(selectedBlog)}"/>
+ - <s:link value="Add Comment" action="#{blog.createComment}"/>
</div>
</div>
- <ui:repeat value="#{selectedBlog.comments}" var="comment">
+ <ui:repeat value="#{selectedBlog.sortedComments}" var="comment">
<table class="blogComment">
<tr>
<td class="blogCommentor">
1.10 +6 -2 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.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- home.xhtml 12 Jan 2007 13:24:39 -0000 1.9
+++ home.xhtml 15 Jan 2007 09:48:20 -0000 1.10
@@ -7,8 +7,12 @@
<ui:composition template="template.xhtml">
<ui:define name="content">
<div id="contentMain">
- Welcome to seamspace, a mock-up of a well known social networking site. This example application
- makes use of the Seam Security API.
+ <h1>Welcome to seamspace!</h1>
+
+ <p>
+ This example project is an imitation of a popular social networking site, and has
+ been put together to demonstrate the various features of the Seam Security API.
+ </p>
</div>
<div id="contentDivider">
1.8 +1 -1 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.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
1.1 date: 2007/01/15 09:48:21; author: sbryzak2; state: Exp;jboss-seam/examples/seamspace/view/comment.xhtml
Index: comment.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 class="errors"><h:messages globalOnly="true"/></div>
<s:div rendered="#{comment == null}">
Sorry, but this blogmember does not exist.
</s:div>
<s:div rendered="#{selectedMember != null}">
<s:div id="blogMemberCard">
<h:outputLink value="profile.seam?name=#{selectedMember.name}">
#{selectedMember.name}<br/>
<h:graphicImage value="/content/images?id=#{selectedMember.picture.imageId}&width=90"/>
</h:outputLink>
<br style="clear:both"/>
</s:div>
<s:div id="blog">
<div class="blogEntry">
<div class="blogDate">#{selectedBlog.formattedEntryDate}</div>
<div class="blogTitle">#{selectedBlog.title}</div>
<div class="blogText">#{selectedBlog.text}</div>
</div>
<div class="commentEntry">
<h:form>
<h:outputLabel for="comment">Please type your comment</h:outputLabel><br/>
<h:inputTextarea name="comment" value="#{comment.comment}"/><br/>
<div class="buttons">
<h:commandButton action="#{blog.saveComment}" value="Add comment" styleClass="action"/>
</div>
<br class="clear"/>
</h:form>
</div>
</s:div>
</s:div>
</ui:define>
</ui:composition>
</html>
1.1 date: 2007/01/15 09:48:21; author: sbryzak2; state: Exp;jboss-seam/examples/seamspace/view/security_error.xhtml
Index: security_error.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">
<h1>A Security Error has occurred</h1>
<div class="errors"><h:messages globalOnly="true"/></div>
</ui:define>
</ui:composition>
</html>
More information about the jboss-cvs-commits
mailing list