Author: shane.bryzak(a)jboss.com
Date: 2010-06-10 00:06:05 -0400 (Thu, 10 Jun 2010)
New Revision: 13100
Added:
modules/security/trunk/api/src/main/resources/
modules/security/trunk/api/src/main/resources/META-INF/
modules/security/trunk/api/src/main/resources/META-INF/beans.xml
modules/security/trunk/impl/src/main/resources/
modules/security/trunk/impl/src/main/resources/META-INF/
modules/security/trunk/impl/src/main/resources/META-INF/beans.xml
Modified:
modules/security/trunk/examples/idmconsole/src/main/webapp/home.xhtml
modules/security/trunk/impl/pom.xml
modules/security/trunk/pom.xml
Log:
add missing beans.xml
Added: modules/security/trunk/api/src/main/resources/META-INF/beans.xml
===================================================================
--- modules/security/trunk/api/src/main/resources/META-INF/beans.xml
(rev 0)
+++ modules/security/trunk/api/src/main/resources/META-INF/beans.xml 2010-06-10 04:06:05
UTC (rev 13100)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ The contents of this file is permitted to be empty.
+ The schema definition is provided for your convenience.
+-->
+<beans
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+
http://java.sun.com/xml/ns/javaee
+
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
+</beans>
Modified: modules/security/trunk/examples/idmconsole/src/main/webapp/home.xhtml
===================================================================
--- modules/security/trunk/examples/idmconsole/src/main/webapp/home.xhtml 2010-06-10
02:24:46 UTC (rev 13099)
+++ modules/security/trunk/examples/idmconsole/src/main/webapp/home.xhtml 2010-06-10
04:06:05 UTC (rev 13100)
@@ -4,46 +4,31 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
template="/WEB-INF/templates/default.xhtml">
- <ui:define name="content">
- <h1>Hello World!</h1>
- <p>Your CDI bean <code>HelloWorld</code> says <span
style="color: blue;">#{helloWorld.text}</span> using the Unified
EL.</p>
+ <ui:define name="content">
+ <h2>Identity Management Console</h2>
+ <p>This example demonstrates Seam's identity management
features.</p>
+
+ <h:form id="loginForm" rendered="#{not
identity.loggedIn}">
+ <h:messages id="messages" globalOnly="true"/>
- <h:form id="bv">
- <h2>Bean Validation examples</h2>
- <p>Enforces annotation-based constraints defined on the model
class.</p>
- <table>
- <tr>
- <th style="text-align: right;">
- <h:outputLabel for="letters"
value="Letters:"/>
- </th>
- <td>
- <h:inputText id="letters"
value="#{helloWorld.letters}"/>
- <h:message for="letters"
errorClass="invalid"/>
- </td>
- </tr>
- <tr>
- <th style="text-align: right;">
- <h:outputLabel for="numbers"
value="Numbers:"/>
- </th>
- <td>
- <h:inputText id="numbers"
value="#{helloWorld.numbers}"/>
- <h:message for="numbers"
errorClass="invalid"/>
- </td>
- </tr>
- <tr>
- <th style="text-align: right;">
- <h:outputLabel for="email" value="Email:"/>
- </th>
- <td>
- <h:inputText id="email"
value="#{helloWorld.email}"/>
- <h:message for="email"
errorClass="invalid"/>
- </td>
- </tr>
- </table>
- <p>
- <h:commandButton id="check" action="check"
value="Check values"/>
- <h:outputText value=" All clear!"
rendered="#{facesContext.postback and empty facesContext.messageList}"
style="color: green;"/>
- </p>
- </h:form>
- </ui:define>
+ <div class="loginRow">
+ <h:outputLabel for="name" value="Username"
styleClass="loginLabel"/>
+ <h:inputText id="name"
value="#{credentials.username}"/>
+ </div>
+
+ <div class="loginRow">
+ <h:outputLabel for="password" value="Password"
styleClass="loginLabel"/>
+ <h:inputSecret id="password"
value="#{credentials.password}" redisplay="true"/>
+ </div>
+
+ <div class="loginRow">
+
+ </div>
+
+ <div class="buttons">
+ <h:commandButton id="login" value="LOGIN"
action="#{identity.login}" styleClass="loginButton"/>
+ </div>
+ </h:form>
+
+ </ui:define>
</ui:composition>
Modified: modules/security/trunk/impl/pom.xml
===================================================================
--- modules/security/trunk/impl/pom.xml 2010-06-10 02:24:46 UTC (rev 13099)
+++ modules/security/trunk/impl/pom.xml 2010-06-10 04:06:05 UTC (rev 13100)
@@ -20,6 +20,7 @@
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -37,6 +38,7 @@
<dependency>
<groupId>org.jboss.spec.javax.interceptor</groupId>
<artifactId>jboss-interceptors-api_1.1_spec</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -50,14 +52,22 @@
<scope>provided</scope>
</dependency>
- <dependency>
+ <!--dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
+ <scope>provided</scope>
+ </dependency-->
+
+ <dependency>
+ <groupId>javax.persistence</groupId>
+ <artifactId>persistence-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.seam.drools</groupId>
- <artifactId>seam-drools-core</artifactId>
+ <artifactId>seam-drools-api</artifactId>
</dependency>
<dependency>
@@ -74,6 +84,7 @@
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
+ <scope>provided</scope>
</dependency>
</dependencies>
Added: modules/security/trunk/impl/src/main/resources/META-INF/beans.xml
===================================================================
--- modules/security/trunk/impl/src/main/resources/META-INF/beans.xml
(rev 0)
+++ modules/security/trunk/impl/src/main/resources/META-INF/beans.xml 2010-06-10 04:06:05
UTC (rev 13100)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ The contents of this file is permitted to be empty.
+ The schema definition is provided for your convenience.
+-->
+<beans
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+
http://java.sun.com/xml/ns/javaee
+
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
+</beans>
Modified: modules/security/trunk/pom.xml
===================================================================
--- modules/security/trunk/pom.xml 2010-06-10 02:24:46 UTC (rev 13099)
+++ modules/security/trunk/pom.xml 2010-06-10 04:06:05 UTC (rev 13100)
@@ -5,7 +5,7 @@
<parent>
<artifactId>seam-parent</artifactId>
<groupId>org.jboss.seam</groupId>
- <version>1</version>
+ <version>2-SNAPSHOT</version>
</parent>
<groupId>org.jboss.seam.security</groupId>
@@ -50,7 +50,7 @@
<dependency>
<groupId>org.jboss.seam.drools</groupId>
- <artifactId>seam-drools-core</artifactId>
+ <artifactId>seam-drools-api</artifactId>
<version>${seam.drools.version}</version>
</dependency>