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

Shane Bryzak sbryzak at redhat.com
Wed Jan 9 05:05:30 EST 2008


  User: sbryzak2
  Date: 08/01/09 05:05:30

  Modified:    examples/seamspace/view   userdetail.xhtml usermanager.xhtml
  Log:
  completed user management screens
  
  Revision  Changes    Path
  1.2       +10 -2     jboss-seam/examples/seamspace/view/userdetail.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: userdetail.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/userdetail.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- userdetail.xhtml	5 Jan 2008 08:28:17 -0000	1.1
  +++ userdetail.xhtml	9 Jan 2008 10:05:30 -0000	1.2
  @@ -20,12 +20,14 @@
                 
             <div class="formRow">
               <h:outputLabel for="username" value="Username" styleClass="formLabel"/>
  -            <h:inputText id="username" value="#{userAction.username}"/>
  +            <h:inputText id="username" value="#{userAction.username}" readonly="#{identityManager.accountExists(userAction.username)}"/>
  +            <div class="validationError"><h:message for="username"/></div>
             </div>              
   
             <div class="formRow">
               <h:outputLabel for="password" value="Password" styleClass="formLabel"/>
               <h:inputSecret id="password" value="#{userAction.password}"/>
  +            <div class="validationError"><h:message for="password"/></div>
             </div>              
             
             <div class="formRow">
  @@ -36,10 +38,16 @@
             <div class="formRow">            
               <h:outputLabel for="roles" value="Roles" styleClass="formLabel"/>
               <div class="selectMany">
  -              <h:selectManyCheckbox id="roles" value="#{userAction.roles}" layout="pageDirection">
  +              <h:selectManyCheckbox id="roles" value="#{userAction.roles}" layout="pageDirection" styleClass="roles">
                   <s:selectItems value="#{identityManager.listRoles()}" var="role" label="#{role}"/>
                 </h:selectManyCheckbox>
               </div>
  +            <div class="validationError"><h:message for="roles"/></div>            
  +          </div>
  +          
  +          <div class="formRow">
  +            <h:outputLabel for="enabled" value="Account enabled" styleClass="formLabel"/>
  +            <h:selectBooleanCheckbox id="enabled" value="#{userAction.enabled}"/>
             </div>
                                         
             <div class="formButtons">
  
  
  
  1.4       +8 -1      jboss-seam/examples/seamspace/view/usermanager.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: usermanager.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/usermanager.xhtml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- usermanager.xhtml	5 Jan 2008 08:28:17 -0000	1.3
  +++ usermanager.xhtml	9 Jan 2008 10:05:30 -0000	1.4
  @@ -28,7 +28,7 @@
               value="#{users}" 
               var="user" 
               styleClass="default"
  -            columnClasses=",,action">
  +            columnClasses=",,enabled,action">
               <f:facet name="header">
                 <rich:columnGroup>
                   <rich:column>
  @@ -38,6 +38,9 @@
                     Member Of
                   </rich:column>
                   <rich:column>
  +                  Enabled
  +                </rich:column>
  +                <rich:column>
                     Action
                   </rich:column>              
                 </rich:columnGroup>
  @@ -49,6 +52,10 @@
               #{userSearch.getUserRoles(user)}
             </rich:column>
             <rich:column>
  +            <div class="#{identityManager.isEnabled(user) ? 'checkmark' : 'cross'}"/>
  +          </rich:column>
  +          <rich:column>
  +            <s:link value="Edit" action="#{userAction.editUser(userSearch.selectedUser)}"/><span> | </span>
               <s:link value="Delete" action="#{identityManager.deleteAccount(userSearch.selectedUser)}" onclick="return confirmDelete()"/>
             </rich:column>
     	    </rich:dataTable>
  
  
  



More information about the jboss-cvs-commits mailing list