[jboss-cvs] jboss-seam/examples/seamspace/view ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Jan 10 21:23:17 EST 2007
User: sbryzak2
Date: 07/01/10 21:23:17
Modified: examples/seamspace/view blog.xhtml profile.xhtml
Added: examples/seamspace/view blogentry.xhtml
Log:
added blog comments page
Revision Changes Path
1.2 +2 -2 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.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- blog.xhtml 11 Jan 2007 00:43:53 -0000 1.1
+++ blog.xhtml 11 Jan 2007 02:23:17 -0000 1.2
@@ -31,8 +31,8 @@
<div class="blogTitle">#{memberBlog.title}</div>
<div class="blogText">#{memberBlog.text}</div>
<div class="blogFooter">
- <h:outputLink value="blogentry.seam?blogId=#{memberBlog.blogId}">
- #{memberBlog.commentCount} Comments
+ <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"/>
</div>
1.7 +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.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- profile.xhtml 11 Jan 2007 00:43:53 -0000 1.6
+++ profile.xhtml 11 Jan 2007 02:23:17 -0000 1.7
@@ -40,7 +40,7 @@
<ui:repeat value="#{blog.latestBlogs}" var="latestBlog">
<div class="blogSummary">#{latestBlog.title}
- (<h:outputLink value="blogentry.seam?blogId=#{latestBlog.blogId}">view more</h:outputLink>)
+ (<h:outputLink value="blogentry.seam?name=#{selectedMember.name}&blogId=#{latestBlog.blogId}">view more</h:outputLink>)
</div>
</ui:repeat>
1.1 date: 2007/01/11 02:23:17; author: sbryzak2; state: Exp;jboss-seam/examples/seamspace/view/blogentry.xhtml
Index: blogentry.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="#{selectedBlog == null}">
Sorry, but this blog entry does not exist.
</s:div>
<s:div rendered="#{selectedBlog != 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 class="blogFooter">
#{selectedBlog.commentCount} Comment#{selectedBlog.commentCount != 1 ? "s" : ""}
- <s:link value="Add Comment"/>
</div>
</div>
<ui:repeat value="#{selectedBlog.comments}" var="comment">
<table class="blogComment">
<tr>
<td class="blogCommentor">
<h:outputLink value="profile.seam?name=#{comment.commentor.name}">
#{comment.commentor.name}<br/>
<h:graphicImage value="/content/images?id=#{comment.commentor.picture.imageId}&width=90"/>
</h:outputLink>
</td>
<td class="blogCommentText">
<p>#{comment.comment}</p>
<p>Posted by
<h:outputLink value="profile.seam?name=#{comment.commentor.name}">
#{comment.commentor.name}
</h:outputLink> on #{comment.formattedCommentDate}
</p>
</td>
</tr>
</table>
</ui:repeat>
</s:div>
</s:div>
</ui:define>
</ui:composition>
</html>
More information about the jboss-cvs-commits
mailing list