[jboss-cvs] jboss-seam/examples/wiki/view/includes ...
Christian Bauer
christian at hibernate.org
Thu Apr 19 05:48:39 EDT 2007
User: cbauer
Date: 07/04/19 05:48:39
Modified: examples/wiki/view/includes commentForm.xhtml
commentsDisplay.xhtml
Log:
Added comment delete button
Revision Changes Path
1.2 +1 -1 jboss-seam/examples/wiki/view/includes/commentForm.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: commentForm.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/includes/commentForm.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- commentForm.xhtml 19 Apr 2007 09:32:08 -0000 1.1
+++ commentForm.xhtml 19 Apr 2007 09:48:39 -0000 1.2
@@ -86,7 +86,7 @@
<div class="input">
<a:commandLink action="#{commentHome.persist}" tabindex="102" reRender="documentDisplay"
- styleClass="button"><span class="buttonLabel">Post</span></a:commandLink>
+ styleClass="button"><span class="buttonLabel">Post Comment</span></a:commandLink>
</div>
</div>
1.2 +8 -0 jboss-seam/examples/wiki/view/includes/commentsDisplay.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: commentsDisplay.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/includes/commentsDisplay.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- commentsDisplay.xhtml 19 Apr 2007 09:32:08 -0000 1.1
+++ commentsDisplay.xhtml 19 Apr 2007 09:48:39 -0000 1.2
@@ -3,6 +3,7 @@
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:a="https://ajax4jsf.dev.java.net/ajax"
xmlns:s="http://jboss.com/products/seam/taglib">
<h:dataTable value="#{commentHome.comments}" var="c" style="margin-top:10px;"
@@ -39,6 +40,13 @@
<s:formattedText value="#{c.text}"/>
</s:div>
+ <div align="right">
+ <h:form rendered="#{s:hasPermission('User', 'isAdmin', currentUser)}">
+ <a:commandLink action="#{commentHome.remove(c.id)}" reRender="body"
+ styleClass="button"><span class="buttonLabel">Remove Comment</span></a:commandLink>
+ </h:form>
+ </div>
+
</h:column>
</h:dataTable>
More information about the jboss-cvs-commits
mailing list