[jboss-cvs] jboss-seam/seam-gen/view ...
Shane Bryzak
sbryzak at redhat.com
Wed Jan 9 22:33:51 EST 2008
User: sbryzak2
Date: 08/01/09 22:33:51
Modified: seam-gen/view login.xhtml
Added: seam-gen/view userdetail.xhtml usermanager.xhtml
Log:
added identity management to seam-gen
Revision Changes Path
1.13 +6 -1 jboss-seam/seam-gen/view/login.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: login.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/login.xhtml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- login.xhtml 28 Nov 2007 23:50:48 -0000 1.12
+++ login.xhtml 10 Jan 2008 03:33:51 -0000 1.13
@@ -17,7 +17,7 @@
<rich:panel>
<f:facet name="header">Login</f:facet>
- <p>Please login using any username and password</p>
+ <p>Please login here</p>
<div class="dialog">
<h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
@@ -33,6 +33,11 @@
</h:panelGrid>
</div>
+ <p>
+ <i>Note - </i> Please use demo/password to log in the first time. After logging in you may then
+ use the User Manager link to manage user accounts.
+ </p>
+
</rich:panel>
<div class="actionButtons">
1.1 date: 2008/01/10 03:33:51; author: sbryzak2; state: Exp;jboss-seam/seam-gen/view/userdetail.xhtml
Index: userdetail.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
template="layout/template.xhtml">
<ui:define name="body">
<h:messages globalOnly="true" styleClass="message"/>
<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}" 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">
<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="Member of" styleClass="formLabel"/>
<div class="selectMany">
<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">
<h:commandButton value="Save" action="#{userAction.save}"/>
<s:button view="/usermanager.xhtml" value="Cancel" propagation="end"/>
</div>
<br class="clear"/>
</h:form>
</ui:define>
</ui:composition>
1.1 date: 2008/01/10 03:33:51; author: sbryzak2; state: Exp;jboss-seam/seam-gen/view/usermanager.xhtml
Index: usermanager.xhtml
===================================================================
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
template="layout/template.xhtml">
<ui:define name="body">
<h:messages globalOnly="true" styleClass="message"/>
<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>
<s:button action="#{userAction.createUser}" styleClass="newuser"/>
<rich:dataTable
id="threads"
value="#{users}"
var="user"
styleClass="userlist"
columnClasses=",,enabled,action">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
User name
</rich:column>
<rich:column>
Member Of
</rich:column>
<rich:column>
Enabled
</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>
<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>
</div>
</ui:define>
</ui:composition>
More information about the jboss-cvs-commits
mailing list