[seam-commits] Seam SVN: r8113 - trunk/examples/seamspace/view.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon May 5 03:40:31 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-05-05 03:40:31 -0400 (Mon, 05 May 2008)
New Revision: 8113

Modified:
   trunk/examples/seamspace/view/permissionmanager.xhtml
Log:
permission management datatable

Modified: trunk/examples/seamspace/view/permissionmanager.xhtml
===================================================================
--- trunk/examples/seamspace/view/permissionmanager.xhtml	2008-05-05 07:39:59 UTC (rev 8112)
+++ trunk/examples/seamspace/view/permissionmanager.xhtml	2008-05-05 07:40:31 UTC (rev 8113)
@@ -24,6 +24,43 @@
 
   	    <h2>Permission Manager</h2>  
   	    
+  	    <h3>Managing permissions for: #{permissionSearch.target}</h3>
+  	      	    
+        <s:button action="#{permissionAction.createPermission}" 
+          styleClass="newpermission" 
+          rendered="#{s:hasPermission(permissionSearch.target, 'seam.grant-permission')}"/>
+  	    
+        <h:dataTable 
+            id="threads"
+            value="#{permissions}" 
+            var="permission" 
+            styleClass="security"
+            cellspacing="0"
+            headerClass="header"
+            rowClasses="odd,even"
+            columnClasses=",,enabled,action">
+          <h:column width="auto">
+            <f:facet name="header">
+              Action
+            </f:facet>
+            #{permission.action}
+          </h:column>
+          <h:column width="auto">
+            <f:facet name="header">
+              Recipient
+            </f:facet>
+            #{permission.recipient}
+          </h:column>
+          <h:column width="auto">
+            <f:facet name="header">
+              Action
+            </f:facet>
+          
+            <s:link value="Delete" action="#{permissionManager.revokePermission(permissionSearch.selectedPermission)}" 
+                    rendered="#{s:hasPermission(permissionSearch.target, 'seam.revoke-permission')}"
+                    onclick="return confirmDelete()"/>
+          </h:column>
+  	    </h:dataTable>  	    
 
 	    </div>
 	    




More information about the seam-commits mailing list