[jboss-cvs] jboss-seam/examples/seamspace/view ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Jan 17 08:45:02 EST 2007
User: sbryzak2
Date: 07/01/17 08:45:02
Modified: examples/seamspace/view blog.xhtml blogentry.xhtml
comment.xhtml profile.xhtml
Log:
added seam-text support, other minor stuff
Revision Changes Path
1.5 +4 -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.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- blog.xhtml 15 Jan 2007 10:27:20 -0000 1.4
+++ blog.xhtml 17 Jan 2007 13:45:02 -0000 1.5
@@ -29,7 +29,7 @@
<div class="blogEntry">
<div class="blogDate">#{memberBlog.formattedEntryDate}</div>
<div class="blogTitle">#{memberBlog.title}</div>
- <div class="blogText">#{memberBlog.text}</div>
+ <div class="blogText"><s:formattedText value="#{memberBlog.text}"/></div>
<div class="blogFooter">
<h:outputLink value="blogentry.seam?name=#{selectedMember.name}&blogId=#{memberBlog.blogId}">
#{memberBlog.commentCount} Comment#{memberBlog.commentCount != 1 ? "s" : ""}
@@ -44,6 +44,8 @@
</s:div>
+ <br class="clear"/>
+
</ui:define>
</ui:composition>
1.5 +4 -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.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- blogentry.xhtml 15 Jan 2007 10:27:20 -0000 1.4
+++ blogentry.xhtml 17 Jan 2007 13:45:02 -0000 1.5
@@ -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 class="blogFooter">
<s:link value="Add Comment" action="#{blog.createComment}"/>
</div>
@@ -45,7 +45,7 @@
</td>
<td class="blogCommentText">
- <p>#{comment.comment}</p>
+ <p><s:formattedText value="#{comment.comment}"/></p>
<p>Posted by
<h:outputLink value="profile.seam?name=#{comment.commentor.name}">
#{comment.commentor.name}
@@ -59,6 +59,8 @@
</s:div>
+ <br class="clear"/>
+
</ui:define>
</ui:composition>
1.2 +14 -0 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.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- comment.xhtml 15 Jan 2007 09:48:21 -0000 1.1
+++ comment.xhtml 17 Jan 2007 13:45:02 -0000 1.2
@@ -31,6 +31,17 @@
<div class="blogText">#{selectedBlog.text}</div>
</div>
+ <s:div rendered="#{comment.comment != null}">
+ Preview:
+ <table class="blogComment">
+ <tr>
+ <td class="blogCommentText">
+ <p><s:formattedText value="#{comment.comment}"/></p>
+ </td>
+ </tr>
+ </table>
+ </s:div>
+
<div class="commentEntry">
<h:form>
@@ -39,6 +50,7 @@
<div class="buttons">
<h:commandButton action="#{blog.saveComment}" value="Add comment" styleClass="action"/>
+ <h:commandButton action="#{blog.previewComment}" value="Preview" styleClass="action"/>
</div>
<br class="clear"/>
@@ -49,6 +61,8 @@
</s:div>
+ <br class="clear"/>
+
</ui:define>
</ui:composition>
1.9 +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.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- profile.xhtml 15 Jan 2007 09:48:20 -0000 1.8
+++ profile.xhtml 17 Jan 2007 13:45:02 -0000 1.9
@@ -45,7 +45,7 @@
</ui:repeat>
[<h:outputLink value="blog.seam?name=#{selectedMember.name}">View all blog entries</h:outputLink>]
-
+ [<s:link action="#{blog.createEntry}" value="Create new blog entry"/>]
</s:div>
</s:div>
More information about the jboss-cvs-commits
mailing list