[jboss-cvs] jboss-seam/examples/seamspace/view ...

Shane Bryzak sbryzak at redhat.com
Thu Jan 3 02:02:36 EST 2008


  User: sbryzak2
  Date: 08/01/03 02:02:36

  Modified:    examples/seamspace/view   template.xhtml
  Added:       examples/seamspace/view   usermanager.xhtml
  Log:
  added user manager screen
  
  Revision  Changes    Path
  1.12      +2 -1      jboss-seam/examples/seamspace/view/template.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: template.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/template.xhtml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- template.xhtml	22 Feb 2007 05:51:11 -0000	1.11
  +++ template.xhtml	3 Jan 2008 07:02:36 -0000	1.12
  @@ -40,7 +40,8 @@
       <s:link view="/home.xhtml" value="Home" propagation="none"/>|
       <s:link value="Browse" onclick="javascript:alert('This feature coming soon!');return false"/>|
       <s:link value="Blog" onclick="javascript:alert('This feature coming soon!');return false"/>|
  -    <s:link value="Music" onclick="javascript:alert('This feature coming soon!');return false"/>
  +    <s:link value="Music" onclick="javascript:alert('This feature coming soon!');return false"/><s:fragment rendered="#{s:hasRole('admin')}">|
  +    <s:link view="/usermanager.xhtml" value="User Manager" propagation="none"/></s:fragment>
     </div>
   
     <div id="content">
  
  
  
  1.1      date: 2008/01/03 07:02:36;  author: sbryzak2;  state: Exp;jboss-seam/examples/seamspace/view/usermanager.xhtml
  
  Index: usermanager.xhtml
  ===================================================================
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml"
      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:rich="http://richfaces.org/rich"       
      xmlns:s="http://jboss.com/products/seam/taglib">
  
    <ui:composition template="template.xhtml">
     
      <ui:define name="content">
          
        <script type="text/javascript">
          function confirmDelete()
          {
            return confirm("Are you sure you wish to delete this user? This action cannot be undone.");
          }
        </script>
  
        <div id="contentMain">
  
    	    <h2>User Manager</h2>  
    	    
          <rich:dataTable 
              id="threads"
              value="#{users}" 
              var="user" 
              styleClass="default"
              columnClasses=",,action">
              <f:facet name="header">
                <rich:columnGroup>
                  <rich:column>
                    User name
                  </rich:column>
                  <rich:column>
                    Roles
                  </rich:column>
                  <rich:column>
                    Action
                  </rich:column>              
                </rich:columnGroup>
              </f:facet>            
            <rich:column>
              #{user}
            </rich:column>
            <rich:column>
              #{userSearch.getUserRoles(user)}
            </rich:column>
            <rich:column>
              <s:link value="Delete" styleClass="navLink" onclick="return confirmDelete()"/>
            </rich:column>
    	    </rich:dataTable>
  	    </div>
  	    
      </ui:define>
      
    </ui:composition>
  </html>
  
  
  



More information about the jboss-cvs-commits mailing list