[jboss-cvs] jboss-seam/examples/wiki/view ...
Christian Bauer
christian at hibernate.org
Sun Apr 22 16:00:14 EDT 2007
User: cbauer
Date: 07/04/22 16:00:14
Modified: examples/wiki/view userHome.xhtml
Log:
Added feature: Manual account creation (for admins)
Revision Changes Path
1.5 +14 -0 jboss-seam/examples/wiki/view/userHome.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: userHome.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/userHome.xhtml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- userHome.xhtml 22 Apr 2007 19:19:29 -0000 1.4
+++ userHome.xhtml 22 Apr 2007 20:00:14 -0000 1.5
@@ -128,6 +128,20 @@
</div>
</s:decorate>
+ <s:div rendered="#{s:hasPermission('User', 'isAdmin', currentUser)
+ and userHome.instance.id != adminUser.id
+ and userHome.instance.id != guestUser.id}
+ and userHome.instance.id != currentUser.id">
+ <s:div styleClass="entry">
+ <div class="label"> </div>
+ <div class="input">
+ <h:selectBooleanCheckbox value="#{userHome.instance.activated}" tabindex="6"/>
+ Account is active
+ </div>
+ </s:div>
+
+ </s:div>
+
<s:div styleClass="entry">
<s:div styleClass="label">Roles:</s:div>
<div class="input">
More information about the jboss-cvs-commits
mailing list