[jboss-cvs] jboss-seam/examples/wiki/view ...
Christian Bauer
christian at hibernate.org
Thu Apr 19 14:36:12 EDT 2007
User: cbauer
Date: 07/04/19 14:36:12
Modified: examples/wiki/view userHome.xhtml
Log:
Finalized 'deletion' of stuff with updated FK constraint rules, now required the very latest Hibernate JARs
Revision Changes Path
1.2 +19 -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.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- userHome.xhtml 4 Apr 2007 10:38:11 -0000 1.1
+++ userHome.xhtml 19 Apr 2007 18:36:12 -0000 1.2
@@ -175,6 +175,10 @@
action="#{userHome.update}"
tabindex="9" accesskey="U"><span class="buttonLabel"><u>U</u>pdate</span></h:commandLink>
+ <h:outputLink id="delete" value="javascript:Richfaces.showModalPanel('deleteConfirmation',{})"
+ rendered="#{s:hasPermission('User', 'delete', userHome.instance)}"
+ tabindex="9" accesskey="D" styleClass="button"><span class="buttonLabel"><u>D</u>elete</span></h:outputLink>
+
</div>
</div>
@@ -182,6 +186,21 @@
</div></h:form>
+<ui:decorate template="includes/confirmationModalDialog.xhtml">
+ <ui:param name="confirmationModalDialogId" value="deleteConfirmation"/>
+ <ui:define name="confirmationContent">
+ <p>Are you sure you want to delete the user '#{userHome.instance.username}'?
+ Note that any existing home directory or documents owned by this user will not be deleted.</p>
+ </ui:define>
+ <ui:define name="confirmationOption">
+ <h:commandLink id="delete" action="#{userHome.remove}"
+ accesskey="O" styleClass="button">
+ <span class="buttonLabel"><u>O</u>k</span>
+ </h:commandLink>
+ </ui:define>
+</ui:decorate>
+
+
</ui:define>
<ui:define name="footer"> </ui:define>
More information about the jboss-cvs-commits
mailing list