[seam-commits] Seam SVN: r10285 - in trunk/seam-gen: icefaces/view and 2 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Apr 3 01:21:03 EDT 2009
Author: dan.j.allen
Date: 2009-04-03 01:21:03 -0400 (Fri, 03 Apr 2009)
New Revision: 10285
Added:
trunk/seam-gen/icefaces/view/useradmin/
trunk/seam-gen/icefaces/view/useradmin/roledetail.xhtml
trunk/seam-gen/icefaces/view/useradmin/rolemanager.xhtml
trunk/seam-gen/icefaces/view/useradmin/userdetail.xhtml
trunk/seam-gen/icefaces/view/useradmin/usermanager.xhtml
Modified:
trunk/seam-gen/build.xml
trunk/seam-gen/view/stylesheet/useradmin.css
Log:
JBSEAM-3717 icefaces support
Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml 2009-04-03 05:20:11 UTC (rev 10284)
+++ trunk/seam-gen/build.xml 2009-04-03 05:21:03 UTC (rev 10285)
@@ -600,7 +600,6 @@
<include name="hibernatetools/**"/>
<include name="lib/**"/>
<include name="resources/**"/>
- <exclude name="resources/*identity-management*"/>
<include name="pojo/**"/>
<include name="src/**"/>
<include name="test/**"/>
@@ -613,7 +612,6 @@
<include name="build-scripts/**"/>
<include name="ide-project-files/**"/>
<include name="resources/**"/>
- <exclude name="resources/*identity-management*"/>
<include name="src/**"/>
<include name="view/**"/>
</fileset>
@@ -1201,7 +1199,6 @@
<target name="add-identity-management" depends="validate-project" if="project.exists"
description="Add Seam's identity management components and views to the project.">
- <fail message="Currently the identity management is only configured to support RichFaces projects" if="icefaces.property"/>
<copy todir="${project.home}/view">
<fileset dir="${templates.dir}/view">
<include name="useradmin/**"/>
Added: trunk/seam-gen/icefaces/view/useradmin/roledetail.xhtml
===================================================================
--- trunk/seam-gen/icefaces/view/useradmin/roledetail.xhtml (rev 0)
+++ trunk/seam-gen/icefaces/view/useradmin/roledetail.xhtml 2009-04-03 05:21:03 UTC (rev 10285)
@@ -0,0 +1,49 @@
+<!DOCTYPE html 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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ice="http://www.icesoft.com/icefaces/component"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ template="/layout/template.xhtml">
+
+ <ui:define name="head">
+ <link href="../stylesheet/useradmin.css" rel="stylesheet" type="text/css"/>
+ </ui:define>
+
+ <ui:define name="body">
+
+ <h1>Role Details</h1>
+
+ <ice:form id="roleForm">
+
+ <ice:panelGroup>
+ <s:decorate id="roleField" template="/layout/edit.xhtml">
+ <ui:define name="label">Role</ui:define>
+ <ice:inputText id="role" value="#{roleAction.role}" readonly="#{identityManager.userExists(roleAction.role)}"/>
+ </s:decorate>
+
+ <s:decorate id="groupsField" template="/layout/edit.xhtml">
+ <ui:define name="label">Member of groups</ui:define>
+ <div class="selectMany">
+ <ice:selectManyCheckbox id="groups" value="#{roleAction.groups}" layout="pageDirection" styleClass="roles">
+ <s:selectItems value="#{roleAction.assignableRoles}" var="_role" label="#{_role}"/>
+ </ice:selectManyCheckbox>
+ </div>
+ </s:decorate>
+
+ <div style="clear: both;"/>
+
+ </ice:panelGroup>
+
+ <div class="actionButtons">
+ <ice:commandButton id="save" value="Save" action="#{roleAction.save}"/>
+ <s:button id="cancel" view="/useradmin/rolemanager.xhtml" value="Cancel" propagation="end"/>
+ </div>
+
+ </ice:form>
+
+ </ui:define>
+
+</ui:composition>
Added: trunk/seam-gen/icefaces/view/useradmin/rolemanager.xhtml
===================================================================
--- trunk/seam-gen/icefaces/view/useradmin/rolemanager.xhtml (rev 0)
+++ trunk/seam-gen/icefaces/view/useradmin/rolemanager.xhtml 2009-04-03 05:21:03 UTC (rev 10285)
@@ -0,0 +1,51 @@
+<!DOCTYPE html 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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ice="http://www.icesoft.com/icefaces/component"
+ template="/layout/template.xhtml">
+
+ <ui:define name="head">
+ <link href="../stylesheet/useradmin.css" rel="stylesheet" type="text/css"/>
+ <script type="text/javascript">
+function confirmDelete()
+{
+ return confirm("Are you sure you wish to delete this role? This action cannot be undone.");
+}
+ </script>
+ </ui:define>
+
+ <ui:define name="body">
+
+ <h1>Role Manager</h1>
+
+ <s:button id="newRole" action="#{roleAction.createRole}" styleClass="newrole" rendered="#{s:hasPermission('seam.role', 'create', null)}"/>
+
+ <ice:form id="rolesCmdForm" prependId="false">
+ <ice:dataTable id="roles" var="_role" value="#{roles}"
+ styleClass="useradmin" headerClass="header" rowClasses="odd,even" columnClasses=",,action">
+ <ice:column id="role">
+ <f:facet name="header">Role</f:facet>
+ #{_role}
+ </ice:column>
+ <ice:column id="groups">
+ <f:facet name="header">Member of groups</f:facet>
+ #{roleSearch.getRoleGroups(_role)}
+ </ice:column>
+ <ice:column id="action">
+ <f:facet name="header">Action</f:facet>
+ <s:fragment rendered="#{s:hasPermission('seam.role', 'update')}">
+ <ice:commandLink id="edit" value="Edit" action="#{roleAction.editRole(roleSearch.selectedRole)}"/><span> | </span>
+ </s:fragment>
+ <ice:commandLink id="delete" value="Delete" action="#{identityManager.deleteRole(roleSearch.selectedRole)}"
+ rendered="#{s:hasPermission('seam.role', 'delete')}" onclick="if (!confirmDelete()) return;"/>
+ </ice:column>
+ </ice:dataTable>
+ </ice:form>
+
+ </ui:define>
+
+</ui:composition>
Added: trunk/seam-gen/icefaces/view/useradmin/userdetail.xhtml
===================================================================
--- trunk/seam-gen/icefaces/view/useradmin/userdetail.xhtml (rev 0)
+++ trunk/seam-gen/icefaces/view/useradmin/userdetail.xhtml 2009-04-03 05:21:03 UTC (rev 10285)
@@ -0,0 +1,64 @@
+<!DOCTYPE html 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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ice="http://www.icesoft.com/icefaces/component"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ template="/layout/template.xhtml">
+
+ <ui:define name="head">
+ <link href="../stylesheet/useradmin.css" rel="stylesheet" type="text/css"/>
+ </ui:define>
+
+ <ui:define name="body">
+
+ <h1>User Details</h1>
+
+ <ice:form id="userForm">
+
+ <ice:panelGroup styleClass="useradmin">
+ <s:decorate id="usernameField" template="/layout/edit.xhtml">
+ <ui:define name="label">Username</ui:define>
+ <ice:inputText id="username" value="#{userAction.username}" readonly="#{identityManager.userExists(userAction.username)}"/>
+ </s:decorate>
+
+ <s:decorate id="passwordField" template="/layout/edit.xhtml">
+ <ui:define name="label">Password</ui:define>
+ <ice:inputSecret id="password" value="#{userAction.password}"/>
+ </s:decorate>
+
+ <s:decorate id="confirmField" template="/layout/edit.xhtml">
+ <ui:define name="label">Confirm password</ui:define>
+ <ice:inputSecret id="confirm" value="#{userAction.confirm}"/>
+ </s:decorate>
+
+ <s:decorate id="rolesField" template="/layout/edit.xhtml">
+ <ui:define name="label">Member of roles</ui:define>
+ <div class="selectMany">
+ <ice:selectManyCheckbox id="roles" value="#{userAction.roles}" layout="pageDirection" styleClass="roles">
+ <s:selectItems value="#{identityManager.listGrantableRoles()}" var="_role" label="#{_role}"/>
+ </ice:selectManyCheckbox>
+ </div>
+ </s:decorate>
+
+ <s:decorate id="enabledField" template="/layout/edit.xhtml">
+ <ui:define name="label">Account enabled</ui:define>
+ <ice:selectBooleanCheckbox id="enabled" value="#{userAction.enabled}"/>
+ </s:decorate>
+
+ <div style="clear:both"/>
+
+ </ice:panelGroup>
+
+ <div class="actionButtons">
+ <ice:commandButton id="save" value="Save" action="#{userAction.save}"/>
+ <s:button id="cancel" view="/useradmin/usermanager.xhtml" value="Cancel" propagation="end"/>
+ </div>
+
+ </ice:form>
+
+ </ui:define>
+
+</ui:composition>
Added: trunk/seam-gen/icefaces/view/useradmin/usermanager.xhtml
===================================================================
--- trunk/seam-gen/icefaces/view/useradmin/usermanager.xhtml (rev 0)
+++ trunk/seam-gen/icefaces/view/useradmin/usermanager.xhtml 2009-04-03 05:21:03 UTC (rev 10285)
@@ -0,0 +1,56 @@
+<!DOCTYPE html 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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ice="http://www.icesoft.com/icefaces/component"
+ template="/layout/template.xhtml">
+
+ <ui:define name="head">
+ <link href="../stylesheet/useradmin.css" rel="stylesheet" type="text/css"/>
+
+ <script type="text/javascript">
+function confirmDelete()
+{
+ return confirm("Are you sure you wish to delete this user? This action cannot be undone.");
+}
+ </script>
+ </ui:define>
+
+ <ui:define name="body">
+
+ <h1>User Manager</h1>
+
+ <s:button id="newUser" action="#{userAction.createUser}" styleClass="newuser" rendered="#{s:hasPermission('seam.user', 'create')}"/>
+
+ <ice:form id="usersCmdForm">
+ <ice:dataTable id="users" var="_user" value="#{users}"
+ styleClass="useradmin" headerClass="header" rowClasses="odd,even" columnClasses=",,enabled,action">
+ <ice:column id="username">
+ <f:facet name="header">Username</f:facet>
+ #{_user}
+ </ice:column>
+ <ice:column id="roles">
+ <f:facet name="header">Member of roles</f:facet>
+ #{userSearch.getUserRoles(_user)}
+ </ice:column>
+ <ice:column id="enabled">
+ <f:facet name="header">Enabled</f:facet>
+ <div class="status-#{identityManager.isUserEnabled(_user)}"/>
+ </ice:column>
+ <ice:column id="action">
+ <f:facet name="header">Action</f:facet>
+ <s:fragment rendered="#{s:hasPermission('seam.user', 'update')}">
+ <ice:commandLink id="edit" value="Edit" action="#{userAction.editUser(userSearch.selectedUser)}"/><span> | </span>
+ </s:fragment>
+ <ice:commandLink id="delete" value="Delete" action="#{identityManager.deleteUser(userSearch.selectedUser)}"
+ rendered="#{s:hasPermission('seam.user', 'delete')}" onclick="if (!confirmDelete()) return;"/>
+ </ice:column>
+ </ice:dataTable>
+ </ice:form>
+
+ </ui:define>
+
+</ui:composition>
Modified: trunk/seam-gen/view/stylesheet/useradmin.css
===================================================================
--- trunk/seam-gen/view/stylesheet/useradmin.css 2009-04-03 05:20:11 UTC (rev 10284)
+++ trunk/seam-gen/view/stylesheet/useradmin.css 2009-04-03 05:21:03 UTC (rev 10285)
@@ -102,3 +102,11 @@
td.enabled {
text-align: center;
}
+
+fieldset.roles .roles {
+ border: none;
+}
+
+table.iceSelMnyCb td {
+ text-align: left;
+}
More information about the seam-commits
mailing list