Author: andrei_exadel
Date: 2008-09-18 07:26:27 -0400 (Thu, 18 Sep 2008)
New Revision: 10477
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/AuthenticateAction.java
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/User.java
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/beans/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/beans/UsersBean.java
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/entity/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/entity/User.java
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/interfaces/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/interfaces/IUsersService.java
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpired.java
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpiredInterceptor.java
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/UsersService.java
Removed:
trunk/test-applications/regressionArea/Seam-ear/src/main/resources/apms-ds.xml
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/com/
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/domain/
Modified:
trunk/test-applications/regressionArea/Seam-ear/pom.xml
trunk/test-applications/regressionArea/Seam-ear/resources/seam-ds.xml
trunk/test-applications/regressionArea/Seam-ear/src/main/resources/seam-ds.xml
trunk/test-applications/regressionArea/Seam-ejb/pom.xml
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/META-INF/persistence.xml
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/components.properties
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/import.sql
trunk/test-applications/regressionArea/Seam-web/pom.xml
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/components.xml
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/jboss-web.xml
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/home.xhtml
Log:
import/export SQl
Modified: trunk/test-applications/regressionArea/Seam-ear/pom.xml
===================================================================
--- trunk/test-applications/regressionArea/Seam-ear/pom.xml 2008-09-17 16:15:22 UTC (rev
10476)
+++ trunk/test-applications/regressionArea/Seam-ear/pom.xml 2008-09-18 11:26:27 UTC (rev
10477)
@@ -86,7 +86,7 @@
</dependencies>
<build>
- <finalName>Seam-ear</finalName>
+ <finalName>Seam</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -95,7 +95,7 @@
<jboss>
<version>4</version>
<loader-repository>
- seam.jboss.org:loader=Seam-ear.ear
+ seam.jboss.org:loader=Seam.ear
</loader-repository>
</jboss>
<displayName>Seam-ear</displayName>
@@ -104,7 +104,7 @@
<webModule>
<groupId>org.richfaces.test-applications.regressionArea</groupId>
<artifactId>Seam-web</artifactId>
- <contextRoot>/Seam-ear</contextRoot>
+ <contextRoot>/Seam</contextRoot>
</webModule>
</modules>
</configuration>
Modified: trunk/test-applications/regressionArea/Seam-ear/resources/seam-ds.xml
===================================================================
--- trunk/test-applications/regressionArea/Seam-ear/resources/seam-ds.xml 2008-09-17
16:15:22 UTC (rev 10476)
+++ trunk/test-applications/regressionArea/Seam-ear/resources/seam-ds.xml 2008-09-18
11:26:27 UTC (rev 10477)
@@ -6,13 +6,14 @@
<datasources>
- <local-tx-datasource>
+ <local-tx-datasource>
<jndi-name>seamDatasource</jndi-name>
<connection-url>jdbc:hsqldb:.</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
<user-name>sa</user-name>
<password></password>
</local-tx-datasource>
+
</datasources>
Deleted: trunk/test-applications/regressionArea/Seam-ear/src/main/resources/apms-ds.xml
===================================================================
---
trunk/test-applications/regressionArea/Seam-ear/src/main/resources/apms-ds.xml 2008-09-17
16:15:22 UTC (rev 10476)
+++
trunk/test-applications/regressionArea/Seam-ear/src/main/resources/apms-ds.xml 2008-09-18
11:26:27 UTC (rev 10477)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE datasources
- PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
-
-<datasources>
-
- <local-tx-datasource>
- <jndi-name>apmsDatasource</jndi-name>
-
<connection-url>jdbc:postgresql://apms.eltegra.by:5432/apms</connection-url>
- <driver-class>org.postgresql.Driver</driver-class>
- <user-name>apms</user-name>
- <password>apms</password>
- </local-tx-datasource>
-
-</datasources>
-
Modified: trunk/test-applications/regressionArea/Seam-ear/src/main/resources/seam-ds.xml
===================================================================
---
trunk/test-applications/regressionArea/Seam-ear/src/main/resources/seam-ds.xml 2008-09-17
16:15:22 UTC (rev 10476)
+++
trunk/test-applications/regressionArea/Seam-ear/src/main/resources/seam-ds.xml 2008-09-18
11:26:27 UTC (rev 10477)
@@ -6,7 +6,7 @@
<datasources>
- <local-tx-datasource>
+ <local-tx-datasource>
<jndi-name>seamDatasource</jndi-name>
<connection-url>jdbc:hsqldb:.</connection-url>
<driver-class>org.hsqldb.jdbcDriver</driver-class>
Modified: trunk/test-applications/regressionArea/Seam-ejb/pom.xml
===================================================================
--- trunk/test-applications/regressionArea/Seam-ejb/pom.xml 2008-09-17 16:15:22 UTC (rev
10476)
+++ trunk/test-applications/regressionArea/Seam-ejb/pom.xml 2008-09-18 11:26:27 UTC (rev
10477)
@@ -144,6 +144,7 @@
</dependencies>
<build>
+ <finalName>Seam-ejb</finalName>
<plugins>
<plugin>
<artifactId>maven-ejb-plugin</artifactId>
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/AuthenticateAction.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/AuthenticateAction.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/AuthenticateAction.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,58 @@
+package org.richfaces.regressionarea.seam.authentification;
+
+import java.io.Serializable;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.log.Log;
+import org.jboss.seam.web.Session;
+
+/**
+ * Used to authenticate user.
+ *
+ * @author vgolub
+ */
+@Name("authenticator")
+public class AuthenticateAction implements Serializable {
+
+ /**
+ * Serialization constant.
+ */
+ private static final long serialVersionUID = 3896347934570841355L;
+
+ /**
+ * Log instance.
+ */
+ @Logger
+ private Log log;
+
+ /**
+ * {@link User} instance.
+ */
+ @In(value = "user")
+ private User user;
+
+ /**
+ * Used to reload session.
+ *
+ * @return outcome which redirects to login page
+ */
+ public String reloadSession() {
+ Session.instance().invalidate();
+
+ return "reloaded";
+ }
+
+ /**
+ * Used to authenticate user.
+ *
+ * @return outcome which redirects to home page
+ */
+ public String authenticate() {
+ // TODO: implement
+ log.info("authenticating: " + user.getLogin());
+
+ return "loginned";
+ }
+}
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/User.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/User.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/authentification/User.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,109 @@
+package org.richfaces.regressionarea.seam.authentification;
+
+import java.io.Serializable;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+/**
+ * Class represents user session entity.
+ *
+ * @author vgolub
+ */
+@Name("user")
+(a)Scope(ScopeType.SESSION)
+public class User implements Serializable {
+
+ /**
+ * Serialization constant.
+ */
+ private static final long serialVersionUID = -8534340080474811527L;
+
+ /**
+ * User login.
+ */
+ private String login;
+
+ /**
+ * User password.
+ */
+ private String password;
+
+ /**
+ * Property used to remember user login if true.
+ */
+ private boolean rememberMe;
+
+ /**
+ * Constructor.
+ *
+ * @param login user login
+ *
+ * @param password user password
+ */
+ public User(String login, String password) {
+ this.setLogin(login);
+ this.setPassword(password);
+ }
+
+ /**
+ * Default constructor.
+ */
+ public User() {
+ }
+
+ /**
+ * Setter for the user login.
+ *
+ * @param login the user login.
+ */
+ public void setLogin(String login) {
+ this.login = login;
+ }
+
+ /**
+ * Getter for the user login.
+ *
+ * @return the user login.
+ */
+ public String getLogin() {
+ return login;
+ }
+
+ /**
+ * Setter for the user password.
+ *
+ * @param password the user password.
+ */
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ /**
+ * Getter for the user password.
+ *
+ * @return the user password.
+ */
+ public String getPassword() {
+ return password;
+ }
+
+ /**
+ * Setter for the user rememberMe property.
+ *
+ * @param rememberMe the user rememberMe flag.
+ */
+ public void setRememberMe(boolean rememberMe) {
+ this.rememberMe = rememberMe;
+ }
+
+ /**
+ * Getter for the user rememberMe property.
+ *
+ * @return the user rememberMe property.
+ */
+ public boolean isRememberMe() {
+ return rememberMe;
+ }
+}
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/beans/UsersBean.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/beans/UsersBean.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/beans/UsersBean.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,38 @@
+ /*
+ * UsersBean.java Date created: 18.09.2008
+ * Last modified by: $Author$
+ * $Revision$ $Date$
+ */
+package org.richfaces.regressionarea.seam.beans;
+
+import java.util.List;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.richfaces.regressionarea.seam.entity.User;
+import org.richfaces.regressionarea.seam.interfaces.IUsersService;
+import org.richfaces.regressionarea.seam.session.SessionExpired;
+
+
+/**
+ * TODO Class description goes here.
+ * @author Andrey Markavstov
+ *
+ */
+
+@Name("usersBean")
+(a)Scope(ScopeType.SESSION)
+@SessionExpired
+public class UsersBean {
+
+ @In(create=true, required=true)
+ private IUsersService usersService;
+
+ @SuppressWarnings("unchecked")
+ public List<User> getUsers() {
+ return usersService.getUsers();
+ }
+
+}
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/entity/User.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/entity/User.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/entity/User.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,63 @@
+ /*
+ * User.java Date created: 17.09.2008
+ * Last modified by: $Author$
+ * $Revision$ $Date$
+ */
+package org.richfaces.regressionarea.seam.entity;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+import org.jboss.seam.annotations.Name;
+
+/**
+ * TODO Class description goes here.
+ * @author Andrey Markavtsov
+ *
+ */
+@Entity
+@Name("RichUser")
+@Table(name="RichUser")
+public class User {
+
+ @Id
+ @GeneratedValue
+ @Column(name = "ID")
+ private Long id;
+
+
+ @Column(name = "NAME")
+ private String name;
+
+ /**
+ * @return the id
+ */
+ public Long getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+}
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/interfaces/IUsersService.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/interfaces/IUsersService.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/interfaces/IUsersService.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,27 @@
+ /*
+ * IUsersService.java Date created: 18.09.2008
+ * Last modified by: $Author$
+ * $Revision$ $Date$
+ */
+package org.richfaces.regressionarea.seam.interfaces;
+
+import java.util.List;
+
+import javax.ejb.Local;
+
+import org.richfaces.regressionarea.seam.entity.User;
+
+/**
+ * TODO Class description goes here.
+ * @author Andrey Markavtsov
+ *
+ */
+
+@Local
+public interface IUsersService {
+
+ void destroy();
+
+ List<User> getUsers();
+
+}
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpired.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpired.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpired.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,13 @@
+package org.richfaces.regressionarea.seam.session;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.lang.annotation.ElementType;
+
+import org.jboss.seam.annotations.intercept.Interceptors;
+
+(a)Target(ElementType.TYPE)
+(a)Retention(RetentionPolicy.RUNTIME)
+(a)Interceptors(SessionExpiredInterceptor.class)
+public @interface SessionExpired {}
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpiredInterceptor.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpiredInterceptor.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/SessionExpiredInterceptor.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,28 @@
+package org.richfaces.regressionarea.seam.session;
+
+import javax.faces.context.FacesContext;
+import javax.servlet.http.HttpServletRequest;
+
+import org.jboss.seam.annotations.intercept.AroundInvoke;
+import org.jboss.seam.intercept.InvocationContext;
+
+public class SessionExpiredInterceptor {
+
+ @AroundInvoke
+ public Object checkLoggedIn(InvocationContext invocation) throws Exception {
+ HttpServletRequest request = (HttpServletRequest) FacesContext
+ .getCurrentInstance().getExternalContext().getRequest();
+
+ if (request.getRequestedSessionId() != null
+ && request.getSession().isNew()) {
+
+ // the user is not logged in, fwd to login page
+ return "login";
+
+ } else {
+ // the user is already logged in
+ return invocation.proceed();
+ }
+ }
+
+}
\ No newline at end of file
Added:
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/UsersService.java
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/UsersService.java
(rev 0)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/java/org/richfaces/regressionarea/seam/session/UsersService.java 2008-09-18
11:26:27 UTC (rev 10477)
@@ -0,0 +1,54 @@
+ /*
+ * UsersService.java Date created: 18.09.2008
+ * Last modified by: $Author$
+ * $Revision$ $Date$
+ */
+package org.richfaces.regressionarea.seam.session;
+
+import java.util.List;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+import javax.persistence.PersistenceContextType;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.AutoCreate;
+import org.jboss.seam.annotations.Destroy;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.richfaces.regressionarea.seam.entity.User;
+import org.richfaces.regressionarea.seam.interfaces.IUsersService;
+
+/**
+ * TODO Class description goes here.
+ * @author Andrey Markavtsov
+ *
+ */
+
+@Stateful
+@Name("usersService")
+(a)Scope(ScopeType.APPLICATION)
+@AutoCreate
+@SessionExpired
+public class UsersService implements IUsersService {
+
+ @PersistenceContext(unitName = "seam", type =
PersistenceContextType.EXTENDED)
+ private EntityManager em;
+
+ @Remove
+ @Destroy
+ public void destroy() {
+ // TODO Auto-generated method stub
+
+ }
+
+ @SuppressWarnings("unchecked")
+ public List<User> getUsers() {
+ List<User> list = null;
+ list = em.createQuery("from User").getResultList();
+ return list;
+ }
+
+}
Modified:
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/META-INF/persistence.xml
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/META-INF/persistence.xml 2008-09-17
16:15:22 UTC (rev 10476)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/META-INF/persistence.xml 2008-09-18
11:26:27 UTC (rev 10477)
@@ -10,9 +10,10 @@
<jta-data-source>java:/seamDatasource</jta-data-source>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.HSQLDialect"/>
- <property name="hibernate.hbm2ddl.auto"
value="update"/>
+ <property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
+ <property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
</properties>
</persistence-unit>
Modified:
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/components.properties
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/components.properties 2008-09-17
16:15:22 UTC (rev 10476)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/components.properties 2008-09-18
11:26:27 UTC (rev 10477)
@@ -1,4 +1,4 @@
#
#Wed Feb 27 12:58:12 EET 2008
-jndiPattern=Seam-ear/\#{ejbName}/local
+jndiPattern=Seam/#{ejbName}/local
embeddedEjb=true
Modified: trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/import.sql
===================================================================
---
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/import.sql 2008-09-17
16:15:22 UTC (rev 10476)
+++
trunk/test-applications/regressionArea/Seam-ejb/src/main/resources/import.sql 2008-09-18
11:26:27 UTC (rev 10477)
@@ -1,10 +1,10 @@
-CREATE TABLE RichUsers
-(
-id INT IDENTITY PRIMARY KEY NOT NULL,
-Lastname VARCHAR(50),
-Firstname VARCHAR(50),
-Age INT
-);
+DELETE FROM RichUser
+INSERT INTO RichUser(ID, NAME) VALUES(1,'Andrey Markavstov')
+INSERT INTO RichUser(ID, NAME) VALUES(2,'Nick Belaevski')
+INSERT INTO RichUser(ID, NAME) VALUES(3,'Vladimir Molotkov')
+INSERT INTO RichUser(ID, NAME) VALUES(4,'Dmitry Svetobatsko')
+INSERT INTO RichUser(ID, NAME) VALUES(5,'Denis Morozov')
+INSERT INTO RichUser(ID, NAME) VALUES(6,'Maxim Kazhinski')
+INSERT INTO RichUser(ID, NAME) VALUES(7,'Alex Levkovski')
+INSERT INTO RichUser(ID, NAME) VALUES(8,'Pavel Yaschenko')
-INSERT INTO RichUsers(id,Lastname, Firstname, Age)
values(1,'Markavstov','Andrey',23);
-INSERT INTO RichUsers(id,Lastname, Firstname, Age)
values(2,'Belaevski','Nick',23);
\ No newline at end of file
Modified: trunk/test-applications/regressionArea/Seam-web/pom.xml
===================================================================
--- trunk/test-applications/regressionArea/Seam-web/pom.xml 2008-09-17 16:15:22 UTC (rev
10476)
+++ trunk/test-applications/regressionArea/Seam-web/pom.xml 2008-09-18 11:26:27 UTC (rev
10477)
@@ -23,6 +23,7 @@
<build>
+ <finalName>Seam-web</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Modified:
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/components.xml
===================================================================
---
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/components.xml 2008-09-17
16:15:22 UTC (rev 10476)
+++
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/components.xml 2008-09-18
11:26:27 UTC (rev 10477)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<components
xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
+
xmlns:persistence="http://jboss.com/products/seam/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/core
http://jboss.com/products/seam/persistence
http://jboss.com/products/seam/core-2.0.xsd
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.0.xsd">
- <core:init debug="true" jndi-pattern="Seam-ear/#{ejbName}/local"
/>
+ <core:init debug="true" jndi-pattern="@jndiPattern@" />
<core:manager concurrent-request-timeout="10000"
conversation-timeout="120000"/>
</components>
Modified:
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/jboss-web.xml
===================================================================
---
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/jboss-web.xml 2008-09-17
16:15:22 UTC (rev 10476)
+++
trunk/test-applications/regressionArea/Seam-web/src/main/webapp/WEB-INF/jboss-web.xml 2008-09-18
11:26:27 UTC (rev 10477)
@@ -5,7 +5,7 @@
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
- seam.jboss.org:loader=Seam-web
+ seam.jboss.org:loader=Seam-web.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
Modified: trunk/test-applications/regressionArea/Seam-web/src/main/webapp/home.xhtml
===================================================================
--- trunk/test-applications/regressionArea/Seam-web/src/main/webapp/home.xhtml 2008-09-17
16:15:22 UTC (rev 10476)
+++ trunk/test-applications/regressionArea/Seam-web/src/main/webapp/home.xhtml 2008-09-18
11:26:27 UTC (rev 10477)
@@ -9,36 +9,21 @@
xmlns:a4j="http://richfaces.org/a4j">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
-<title>APMS</title>
+<title>Resression Area : Seam Application</title>
</head>
<body id="pgHome">
<f:view>
- <h:form>
- <h:panelGrid columns="2" columnClasses="col1,col2">
-
- <rich:dataTable value="#{UsersBean.users}"
var="user">
- <rich:column>
- <f:facet name="header">
- <h:outputText value="LastName"></h:outputText>
- </f:facet>
- <h:outputText
value="#{user.lastName}"></h:outputText>
- </rich:column>
- <rich:column>
- <f:facet name="header">
- <h:outputText value="FirstName"></h:outputText>
- </f:facet>
- <h:outputText
value="#{user.firstName}"></h:outputText>
- </rich:column>
- <rich:column>
- <f:facet name="header">
- <h:outputText value="Age"></h:outputText>
- </f:facet>
- <h:outputText value="#{user.age}"></h:outputText>
- </rich:column>
- </rich:dataTable>
-
- <div class="more_right" align="right">© 2008
Exadel, Inc.</div>
- </h:panelGrid>
+ <h:form>
+ <rich:panel header="Rich Users">
+ <rich:dataTable value="#{usersBean.users}" var="us">
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="Name"></h:outputText>
+ </f:facet>
+ <h:outputText value="#{us.name}"></h:outputText>
+ </rich:column>
+ </rich:dataTable>
+ </rich:panel>
</h:form>
</f:view>
</body>