[jboss-cvs] jboss-seam/examples/seamspace/view ...
Shane Bryzak
sbryzak at redhat.com
Sat Jan 5 03:28:17 EST 2008
User: sbryzak2
Date: 08/01/05 03:28:17
Modified: examples/seamspace/view usermanager.xhtml
Added: examples/seamspace/view userdetail.xhtml
Log:
allow account creation from user manager screen
Revision Changes Path
1.3 +3 -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.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- usermanager.xhtml 3 Jan 2008 07:21:25 -0000 1.2
+++ usermanager.xhtml 5 Jan 2008 08:28:17 -0000 1.3
@@ -21,6 +21,8 @@
<h2>User Manager</h2>
+ <s:button action="#{userAction.createUser}" styleClass="newuser"/>
+
<rich:dataTable
id="threads"
value="#{users}"
@@ -33,7 +35,7 @@
User name
</rich:column>
<rich:column>
- Roles
+ Member Of
</rich:column>
<rich:column>
Action
1.1 date: 2008/01/05 08:28:17; author: sbryzak2; state: Exp;jboss-seam/examples/seamspace/view/userdetail.xhtml
Index: userdetail.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">
<div id="contentMain">
<h2>User Details</h2>
<h:messages globalOnly="true"/>
<h:form>
<div class="formRow">
<h:outputLabel for="username" value="Username" styleClass="formLabel"/>
<h:inputText id="username" value="#{userAction.username}"/>
</div>
<div class="formRow">
<h:outputLabel for="password" value="Password" styleClass="formLabel"/>
<h:inputSecret id="password" value="#{userAction.password}"/>
</div>
<div class="formRow">
<h:outputLabel for="confirm" value="Confirm password" styleClass="formLabel"/>
<h:inputSecret id="confirm" value="#{userAction.confirm}"/>
</div>
<div class="formRow">
<h:outputLabel for="roles" value="Roles" styleClass="formLabel"/>
<div class="selectMany">
<h:selectManyCheckbox id="roles" value="#{userAction.roles}" layout="pageDirection">
<s:selectItems value="#{identityManager.listRoles()}" var="role" label="#{role}"/>
</h:selectManyCheckbox>
</div>
</div>
<div class="formButtons">
<h:commandButton value="Save" action="#{userAction.save}" styleClass="formButton"/>
<s:button view="/usermanager.xhtml" value="Cancel" propagation="end" styleClass="formButton"/>
</div>
<br class="clear"/>
</h:form>
</div>
</ui:define>
</ui:composition>
</html>
More information about the jboss-cvs-commits
mailing list