JBoss Rich Faces SVN: r10479 - trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-09-18 08:28:52 -0400 (Thu, 18 Sep 2008)
New Revision: 10479
Added:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/home.xhtml
Log:
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/home.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/home.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
16 years, 3 months
JBoss Rich Faces SVN: r10478 - in trunk/cdk/maven-archetype-seam-app: src/main/resources/archetype-resources/ear and 6 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-09-18 08:28:07 -0400 (Thu, 18 Sep 2008)
New Revision: 10478
Added:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/datatable.xhtml
Removed:
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml
Modified:
trunk/cdk/maven-archetype-seam-app/HOW_TO_USE.doc
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties
Log:
Update seam archetype
Modified: trunk/cdk/maven-archetype-seam-app/HOW_TO_USE.doc
===================================================================
(Binary files differ)
Modified: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml 2008-09-18 11:26:27 UTC (rev 10477)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml 2008-09-18 12:28:07 UTC (rev 10478)
@@ -77,6 +77,9 @@
<generateApplicationXml>true</generateApplicationXml>
<includeJar>false</includeJar>
<defaultLibBundleDir>lib</defaultLibBundleDir>
+ <loader-repository>
+ seam.jboss.org:loader=${project.build.finalName}
+ </loader-repository>
<modules>
<webModule>
<groupId>${groupId}</groupId>
Deleted: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml 2008-09-18 11:26:27 UTC (rev 10477)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml 2008-09-18 12:28:07 UTC (rev 10478)
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE jboss-app
- PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
-
-<jboss-app>
- <loader-repository>
- seam.jboss.org:loader=helloworld-ear.ear
- </loader-repository>
-</jboss-app>
\ No newline at end of file
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java 2008-09-18 12:28:07 UTC (rev 10478)
@@ -0,0 +1,38 @@
+package org.richfaces.helloworld.domain;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.Id;
+
+import org.jboss.seam.annotations.Name;
+
+@Entity
+@Name("person")
+public class Person implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+ private long id;
+ private String name;
+
+ @Id
+ @GeneratedValue
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/domain/Person.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java 2008-09-18 12:28:07 UTC (rev 10478)
@@ -0,0 +1,8 @@
+package org.richfaces.helloworld.service;
+
+import javax.ejb.Local;
+
+@Local
+public interface Manager {
+ public String sayHello();
+}
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Manager.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java 2008-09-18 12:28:07 UTC (rev 10478)
@@ -0,0 +1,30 @@
+package org.richfaces.helloworld.service;
+
+import java.util.List;
+
+import javax.ejb.Stateless;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.richfaces.helloworld.domain.Person;
+
+@Stateless
+@Name("manager")
+public class ManagerAction implements Manager {
+ @In @Out
+ private Person person;
+ @Out
+ private List<Person> fans;
+ @PersistenceContext
+ private EntityManager em;
+
+ public String sayHello() {
+ em.persist(person);
+ person = new Person();
+ fans = em.createQuery("select p from Person p").getResultList();
+ return null;
+ }
+}
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/ManagerAction.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties 2008-09-18 11:26:27 UTC (rev 10477)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties 2008-09-18 12:28:07 UTC (rev 10478)
@@ -1,4 +1,4 @@
#
#Mon Sep 15 14:29:32 EEST 2008
-jndiPattern=helloworld-ear/\#{ejbName}/local
+jndiPattern=${deployName}-ear/#{ejbName}/local
embeddedEjb=false
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/datatable.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/datatable.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
16 years, 3 months
JBoss Rich Faces SVN: r10477 - in trunk/test-applications/regressionArea: Seam-ear/resources and 17 other directories.
by richfaces-svn-commits@lists.jboss.org
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>
16 years, 3 months
JBoss Rich Faces SVN: r10476 - trunk/test-applications/seleniumTest.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-09-17 12:15:22 -0400 (Wed, 17 Sep 2008)
New Revision: 10476
Modified:
trunk/test-applications/seleniumTest/pom.xml
Log:
hibernate-validator dependency added
Modified: trunk/test-applications/seleniumTest/pom.xml
===================================================================
--- trunk/test-applications/seleniumTest/pom.xml 2008-09-17 16:13:57 UTC (rev 10475)
+++ trunk/test-applications/seleniumTest/pom.xml 2008-09-17 16:15:22 UTC (rev 10476)
@@ -224,5 +224,15 @@
<artifactId>jsf-impl</artifactId>
<version>1.2_09</version>
</dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>3.1.0.CR1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ <version>1.4.2</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
16 years, 3 months
JBoss Rich Faces SVN: r10475 - in trunk/test-applications/seleniumTest/richfaces/src: main/java/org/ajax4jsf/bean/validation and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-09-17 12:13:57 -0400 (Wed, 17 Sep 2008)
New Revision: 10475
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Activity.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Admin.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/OrderOfDay.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/User.java
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/graphValidator/
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/graphValidator/graphValidatorTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml
Log:
GraphValidatorTest initial commit
Added: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Activity.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Activity.java (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Activity.java 2008-09-17 16:13:57 UTC (rev 10475)
@@ -0,0 +1,43 @@
+package org.ajax4jsf.bean.validation;
+
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+
+/**
+ * renamed and copied from demo
+ */
+public class Activity {
+ public Activity(String title, Integer time) {
+ setTitle(title);
+ setTime(time);
+ }
+
+ @NotEmpty
+ @Length(min = 3, max = 15)
+ private String title;
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ @NotNull
+ @Min(0)
+ @Max(12)
+ private Integer time;
+
+ public Integer getTime() {
+ return time;
+ }
+
+ public void setTime(Integer time) {
+ this.time = time;
+ }
+
+}
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Activity.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Admin.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Admin.java (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Admin.java 2008-09-17 16:13:57 UTC (rev 10475)
@@ -0,0 +1,54 @@
+package org.ajax4jsf.bean.validation;
+
+import org.hibernate.validator.Email;
+import org.hibernate.validator.Length;
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotEmpty;
+import org.hibernate.validator.NotNull;
+import org.hibernate.validator.Pattern;
+
+/**
+ * renamed and copied from demo
+ */
+public class Admin {
+
+ @NotEmpty
+ @Pattern(regex=".*[^\\s].*", message="This string contain only spaces")
+ @Length(min=3,max=12)
+ private String name;
+
+ @NotNull
+ @Min(18)
+ @Max(100)
+ private Integer age;
+
+ @Email
+ @NotEmpty
+ private String email;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Integer getAge() {
+ return age;
+ }
+
+ public void setAge(Integer age) {
+ this.age = age;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+}
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/Admin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/OrderOfDay.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/OrderOfDay.java (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/OrderOfDay.java 2008-09-17 16:13:57 UTC (rev 10475)
@@ -0,0 +1,42 @@
+package org.ajax4jsf.bean.validation;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.hibernate.validator.Max;
+import org.hibernate.validator.Min;
+import org.hibernate.validator.NotNull;
+
+/**
+ * renamed and copied from demo
+ */
+public class OrderOfDay {
+ public OrderOfDay() {
+ activities.add(new Activity("Sport", 0));
+ activities.add(new Activity("Entertainment", 0));
+ activities.add(new Activity("Sleeping", 0));
+ activities.add(new Activity("Games", 0));
+ }
+
+ private List<Activity> activities = new ArrayList<Activity>();
+
+ public List<Activity> getActivities() {
+ return activities;
+ }
+
+ public void setActivities(List<Activity> activities) {
+ this.activities = activities;
+ }
+
+ @NotNull
+ @Min(value = 1, message = "Please fill at least one entry")
+ @Max(value = 24, message = "Only 24h in a day!")
+ public Integer getTotalTime() {
+ Integer retVal = 0;
+ for (Activity activity : activities) {
+ retVal += activity.getTime();
+ }
+ return retVal;
+ }
+
+}
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/OrderOfDay.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/User.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/User.java (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/User.java 2008-09-17 16:13:57 UTC (rev 10475)
@@ -0,0 +1,38 @@
+package org.ajax4jsf.bean.validation;
+
+/**
+ * renamed and copied from demo
+ */
+public class User {
+
+ private String name;
+
+ private Integer age;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Integer getAge() {
+ return age;
+ }
+
+ public void setAge(Integer age) {
+ this.age = age;
+ }
+
+ private OrderOfDay orderOfDay = new OrderOfDay();
+
+ public OrderOfDay getOrderOfDay() {
+ return orderOfDay;
+ }
+
+ public void setOrderOfDay(OrderOfDay orderOfDay) {
+ this.orderOfDay = orderOfDay;
+ }
+
+}
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/User.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java 2008-09-17 16:13:57 UTC (rev 10475)
@@ -0,0 +1,52 @@
+package org.ajax4jsf.bean.validation;
+
+import javax.faces.application.FacesMessage;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+/**
+ * renamed and copied from demo
+ */
+public class ValidationBean {
+
+ private User user = new User();
+
+ public User getUser() {
+ return user;
+ }
+
+ public void setUser(User user) {
+ this.user = user;
+ }
+
+ private Admin admin = new Admin();
+
+ public Admin getAdmin() {
+ return admin;
+ }
+
+ public void setAdmin(Admin admin) {
+ this.admin = admin;
+ }
+
+ public void success() {
+ setProgressString(getProgressString() + "(Strored successfully)");
+ }
+
+ private String progressString = "Fill the form please";
+
+ public String getProgressString() {
+ return progressString;
+ }
+
+ public void setProgressString(String progressString) {
+ this.progressString = progressString;
+ }
+
+ public void storeOrderOfDay(ActionEvent event) {
+ FacesContext.getCurrentInstance().addMessage(
+ event.getComponent().getClientId(FacesContext.getCurrentInstance()),
+ new FacesMessage(FacesMessage.SEVERITY_INFO, "Changes Stored Successfully",
+ "Changes Stored Successfully"));
+ }
+}
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/validation/ValidationBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml 2008-09-17 16:08:25 UTC (rev 10474)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/WEB-INF/faces-config.xml 2008-09-17 16:13:57 UTC (rev 10475)
@@ -220,6 +220,11 @@
<managed-bean-name>dataFilterSliderBean</managed-bean-name>
<managed-bean-class>org.ajax4jsf.bean.DataFilterSliderBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>validationBean</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.bean.validation.ValidationBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/ajaxInclude/step1.xhtml</from-view-id>
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/graphValidator/graphValidatorTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/graphValidator/graphValidatorTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java 2008-09-17 16:13:57 UTC (rev 10475)
@@ -0,0 +1,18 @@
+package org.richfaces.testng;
+
+import org.ajax4jsf.template.Template;
+import org.richfaces.SeleniumTestBase;
+import org.testng.annotations.Test;
+
+public class GraphValidatorTest extends SeleniumTestBase {
+
+ @Test
+ public void testGraphValidatorComponent(Template template) {
+ renderPage(template);
+ }
+
+ @Override
+ public String getTestUrl() {
+ return "pages/graphValidator/graphValidatorTest.xhtml";
+ }
+}
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
16 years, 3 months
JBoss Rich Faces SVN: r10473 - in trunk/cdk: maven-archetype-seam-app and 24 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-09-17 11:55:43 -0400 (Wed, 17 Sep 2008)
New Revision: 10473
Added:
trunk/cdk/maven-archetype-seam-app/
trunk/cdk/maven-archetype-seam-app/HOW_TO_USE.doc
trunk/cdk/maven-archetype-seam-app/pom.xml
trunk/cdk/maven-archetype-seam-app/src/
trunk/cdk/maven-archetype-seam-app/src/main/
trunk/cdk/maven-archetype-seam-app/src/main/resources/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/security.drl
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/pom.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Authenticator.java
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/ejb-jar.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/persistence.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/helloworld-ds.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/import.sql
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/seam.properties
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/pom.xml
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/resources/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/resources/messages_en.properties
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/
trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/error.xhtml
Log:
Add maven-archetype-seam-app
Added: trunk/cdk/maven-archetype-seam-app/HOW_TO_USE.doc
===================================================================
(Binary files differ)
Property changes on: trunk/cdk/maven-archetype-seam-app/HOW_TO_USE.doc
___________________________________________________________________
Name: svn:mime-type
+ application/msword
Added: trunk/cdk/maven-archetype-seam-app/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/pom.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/pom.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,12 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>cdk</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.3.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-archetype-seam-app</artifactId>
+ <version>3.3.0-SNAPSHOT</version>
+ <name>Archetype - maven-archetype-seam-app</name>
+</project>
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>${groupId}</groupId>
+ <artifactId>${projectName}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>${projectName}-ear</artifactId>
+ <name>EAR module</name>
+ <packaging>ear</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>${groupId}</groupId>
+ <artifactId>${projectName}-web</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>${richfacesVersion}</version>
+ </dependency>
+
+ <!-- EJB -->
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <version>${seamVersion}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-pdf</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>jboss</groupId>
+ <artifactId>javassist</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>${groupId}</groupId>
+ <artifactId>${projectName}-ejb</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>ejb</type>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>${projectName}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ear-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <generateApplicationXml>true</generateApplicationXml>
+ <includeJar>false</includeJar>
+ <defaultLibBundleDir>lib</defaultLibBundleDir>
+ <modules>
+ <webModule>
+ <groupId>${groupId}</groupId>
+ <artifactId>${projectName}-web</artifactId>
+ <contextRoot>/${projectName}</contextRoot>
+ </webModule>
+ <ejbModule>
+ <groupId>${groupId}</groupId>
+ <artifactId>${projectName}-ejb</artifactId>
+ </ejbModule>
+ </modules>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>deployer-deploy</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>start-container</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>start</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <container>
+ <containerId>jboss4x</containerId>
+ <zipUrlInstaller>
+ <url>${jbossDownloadURL}</url>
+ <installDir>${installDir}</installDir>
+ </zipUrlInstaller>
+ <output>${project.build.directory}/jboss4x.log</output>
+ <log>${project.build.directory}/cargo.log</log>
+ </container>
+ <configuration>
+ <type>existing</type>
+ <home>${installDir}/${jbossDeployDir}</home>
+ <properties>
+ <cargo.servlet.port>8080</cargo.servlet.port>
+ <cargo.jboss.configuration>default</cargo.jboss.configuration>
+ </properties>
+ </configuration>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE jboss-app
+ PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
+
+<jboss-app>
+ <loader-repository>
+ seam.jboss.org:loader=helloworld-ear.ear
+ </loader-repository>
+</jboss-app>
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/META-INF/jboss-app.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/security.drl
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/security.drl (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ear/src/main/application/security.drl 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,6 @@
+package Permissions;
+
+import java.security.Principal;
+
+import org.jboss.seam.security.PermissionCheck;
+import org.jboss.seam.security.Role;
\ No newline at end of file
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/pom.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/pom.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>${groupId}</groupId>
+ <artifactId>${projectName}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>${projectName}-ejb</artifactId>
+ <name>EJB module</name>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>ejb</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-remoting</artifactId>
+ <version>${seamVersion}</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>javassist</artifactId>
+ <groupId>jboss</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-ui</artifactId>
+ <version>${seamVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-debug</artifactId>
+ <version>${seamVersion}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam-pdf</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>${faceletsVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>${richfacesVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>${richfacesVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-core</artifactId>
+ <version>${droolsVersion}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-compiler</artifactId>
+ <version>${droolsVersion}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ </exclusion>
+ </exclusions>
+
+ </dependency>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.ejb</groupId>
+ <artifactId>ejb-api</artifactId>
+ <version>3.0</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.persistence</groupId>
+ <artifactId>persistence-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>3.0.0.ga</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <configuration>
+ <ejbVersion>3.0</ejbVersion>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Authenticator.java
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Authenticator.java (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Authenticator.java 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,26 @@
+package org.richfaces.helloworld.service;
+
+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.security.Identity;
+
+
+@Name("authenticator")
+public class Authenticator
+{
+ @Logger Log log;
+
+ @In Identity identity;
+
+ public boolean authenticate()
+ {
+ log.info("authenticating #0", identity.getUsername());
+ //write your authentication logic here,
+ //return true if the authentication was
+ //successful, false otherwise
+ identity.addRole("admin");
+ return true;
+ }
+}
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/java/org/richfaces/helloworld/service/Authenticator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/ejb-jar.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/ejb-jar.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/ejb-jar.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar 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/ejb-jar_3_0.xsd"
+ version="3.0">
+
+ <interceptors>
+ <interceptor>
+ <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+ </interceptor>
+ </interceptors>
+
+ <assembly-descriptor>
+ <interceptor-binding>
+ <ejb-name>*</ejb-name>
+ <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
+ </interceptor-binding>
+ </assembly-descriptor>
+
+</ejb-jar>
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/persistence.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/persistence.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/persistence.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Persistence deployment descriptor for dev profile -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+
+ <persistence-unit name="helloworld">
+ <provider>org.hibernate.ejb.HibernatePersistence</provider>
+ <jta-data-source>java:/helloworldDatasource</jta-data-source>
+ <properties>
+ <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
+ <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
+ <property name="hibernate.show_sql" value="true"/>
+ <property name="hibernate.format_sql" value="true"/>
+ <property name="jboss.entity.manager.factory.jndi.name" value="java:/helloworldEntityManagerFactory"/>
+ </properties>
+ </persistence-unit>
+
+</persistence>
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/META-INF/persistence.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,4 @@
+#
+#Mon Sep 15 14:29:32 EEST 2008
+jndiPattern=helloworld-ear/\#{ejbName}/local
+embeddedEjb=false
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/components.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/helloworld-ds.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/helloworld-ds.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/helloworld-ds.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,26 @@
+<?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>helloworldDatasource</jndi-name>
+ <connection-url>jdbc:hsqldb:.</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <user-name>sa</user-name>
+ <password></password>
+<!--
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
+ </exception-sorter-class-name>
+ <metadata>
+ <type-mapping>mySQL</type-mapping>
+ </metadata>
+-->
+ </local-tx-datasource>
+
+</datasources>
+
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/helloworld-ds.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/import.sql
===================================================================
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/import.sql
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/seam.properties
===================================================================
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/ejb/src/main/resources/seam.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,79 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <name>sample application</name>
+ <properties>
+ <projectName>${artifactId}</projectName>
+ <richfacesVersion>3.3.0-SNAPSHOT</richfacesVersion>
+ <seamVersion>2.0.1.GA</seamVersion>
+ <jbossDownloadURL>http://downloads.sourceforge.net/jboss/jboss-4.2.3.GA.zip</jbossDownloadURL>
+ <jbossDeployDir>jboss-4.2.3.GA/jboss-4.2.3.GA/server/default/</jbossDeployDir>
+ <droolsVersion>4.0.0</droolsVersion>
+ <faceletsVersion>1.1.14</faceletsVersion>
+ <installDir>E:/apps/jboss</installDir>
+ </properties>
+ <repositories>
+ <repository>
+ <id>repository.jboss.com</id>
+ <name>Jboss Repository for Maven</name>
+ <url>http://repository.jboss.com/maven2/</url>
+ </repository>
+ <repository>
+ <id>repository.exadel.com</id>
+ <name>Exadel Maven 2 Repository</name>
+ <url>http://repository.exadel.com/</url>
+ </repository>
+ </repositories>
+
+ <modules>
+ <module>ear</module>
+ <module>ejb</module>
+ <module>web</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <configuration>
+ <ejbVersion>3.0</ejbVersion>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.5</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <projectNameTemplate>[artifactId]-[version]</projectNameTemplate>
+ <wtpmanifest>true</wtpmanifest>
+ <wtpapplicationxml>true</wtpapplicationxml>
+ <wtpversion>2.0</wtpversion>
+ <classpathContainers>
+ <classpathContainer>org.eclipse.jdt.launching.JDK_CONTAINER</classpathContainer>
+ </classpathContainers>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+</project>
\ No newline at end of file
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/pom.xml
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/pom.xml (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/pom.xml 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,20 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>${groupId}</groupId>
+ <artifactId>${projectName}</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>${projectName}-web</artifactId>
+ <name>WAR module</name>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/resources/messages_en.properties
===================================================================
--- trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/resources/messages_en.properties (rev 0)
+++ trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/resources/messages_en.properties 2008-09-17 15:55:43 UTC (rev 10473)
@@ -0,0 +1,90 @@
+up=\u2191
+down=\u2193
+left=\u2039
+right=\u203A
+
+validator.assertFalse=validation failed
+validator.assertTrue=validation failed
+validator.future=must be a future date
+validator.length=length must be between {min} and {max}
+validator.max=must be less than or equal to {value}
+validator.min=must be greater than or equal to {value}
+validator.notNull=may not be null
+validator.past=must be a past date
+validator.pattern=must match "{regex}"
+validator.range=must be between {min} and {max}
+validator.size=size must be between {min} and {max}
+validator.email=must be a well-formed email address
+
+org.jboss.seam.loginFailed=Login failed
+org.jboss.seam.loginSuccessful=Welcome, #0
+
+org.jboss.seam.TransactionFailed=Transaction failed
+org.jboss.seam.NoConversation=The conversation ended, timed out or was processing another request
+org.jboss.seam.IllegalNavigation=Illegal navigation
+org.jboss.seam.ProcessEnded=Process #0 already ended
+org.jboss.seam.ProcessNotFound=Process #0 not found
+org.jboss.seam.TaskEnded=Task #0 already ended
+org.jboss.seam.TaskNotFound=Task #0 not found
+org.jboss.seam.NotLoggedIn=Please log in first
+
+javax.faces.component.UIInput.CONVERSION=value could not be converted to the expected type
+javax.faces.component.UIInput.REQUIRED=value is required
+javax.faces.component.UIInput.UPDATE=an error occurred when processing your submitted information
+javax.faces.component.UISelectOne.INVALID=value is not valid
+javax.faces.component.UISelectMany.INVALID=value is not valid
+
+javax.faces.converter.BigDecimalConverter.DECIMAL=value must be a number
+javax.faces.converter.BigDecimalConverter.DECIMAL_detail=value must be a signed decimal number consisting of zero or more digits, optionally followed by a decimal point and fraction, eg. {1}
+javax.faces.converter.BigIntegerConverter.BIGINTEGER=value must be an integer
+javax.faces.converter.BigIntegerConverter.BIGINTEGER_detail=value must be a signed integer number consisting of zero or more digits
+javax.faces.converter.BooleanConverter.BOOLEAN=value must be true or false
+javax.faces.converter.BooleanConverter.BOOLEAN_detail=value must be true or false (any value other than true will evaluate to false)
+javax.faces.converter.ByteConverter.BYTE=value must be a number between 0 and 255
+javax.faces.converter.ByteConverter.BYTE_detail=value must be a number between 0 and 255
+javax.faces.converter.CharacterConverter.CHARACTER=value must be a character
+javax.faces.converter.CharacterConverter.CHARACTER_detail=value must be a valid ASCII character
+javax.faces.converter.DateTimeConverter.DATE=value must be a date
+javax.faces.converter.DateTimeConverter.DATE_detail=value must be a date, eg. {1}
+javax.faces.converter.DateTimeConverter.TIME=value must be a time
+javax.faces.converter.DateTimeConverter.TIME_detail=value must be a time, eg. {1}
+javax.faces.converter.DateTimeConverter.DATETIME=value must be a date and time
+javax.faces.converter.DateTimeConverter.DATETIME_detail=value must be a date and time, eg. {1}
+javax.faces.converter.DateTimeConverter.PATTERN_TYPE=a pattern or type attribute must be specified to convert the value
+javax.faces.converter.DoubleConverter.DOUBLE=value must be a number
+javax.faces.converter.DoubleConverter.DOUBLE_detail=value must be a number between 4.9E-324 and 1.7976931348623157E308
+javax.faces.converter.EnumConverter.ENUM=value must be convertible to an enum
+javax.faces.converter.EnumConverter.ENUM_detail=value must be convertible to an enum or from the enum that contains the constant {1}
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS=value must be convertible to an enum or from the enum, but no enum class provided
+javax.faces.converter.EnumConverter.ENUM_NO_CLASS_detail=value must be convertible to an enum or from the enum, but no enum class provided
+javax.faces.converter.FloatConverter.FLOAT=value must be a number
+javax.faces.converter.FloatConverter.FLOAT_detail=value must be a number between 1.4E-45 and 3.4028235E38
+javax.faces.converter.IntegerConverter.INTEGER=value must be an integer
+javax.faces.converter.IntegerConverter.INTEGER_detail=value must be an integer number between -2147483648 and 2147483647
+javax.faces.converter.LongConverter.LONG=value must be an integer
+javax.faces.converter.LongConverter.LONG_detail=must be an integer number between -9223372036854775808 and 9223372036854775807
+javax.faces.converter.NumberConverter.CURRENCY=value must be a currency amount
+javax.faces.converter.NumberConverter.CURRENCY_detail=value must be a currency amount, eg. {1}
+javax.faces.converter.NumberConverter.PERCENT=value must be a percentage amount
+javax.faces.converter.NumberConverter.PERCENT_detail=value must be a percentage amount, eg. {1}
+javax.faces.converter.NumberConverter.NUMBER=value must be a number
+javax.faces.converter.NumberConverter.NUMBER_detail=value must be a number
+javax.faces.converter.NumberConverter.PATTERN=value must be a number
+javax.faces.converter.NumberConverter.PATTERN_detail=value must be a number
+javax.faces.converter.ShortConverter.SHORT=value must be an integer
+javax.faces.converter.ShortConverter.SHORT_detail=value must be an integer number between -32768 and 32767
+
+javax.faces.validator.DoubleRangeValidator.MAXIMUM=value must be less than or equal to {0}
+javax.faces.validator.DoubleRangeValidator.MINIMUM=value must be greater than or equal to {0}
+javax.faces.validator.DoubleRangeValidator.NOT_IN_RANGE=value must be between {0} and {1}
+javax.faces.validator.DoubleRangeValidator.TYPE=value is not of the correct type
+javax.faces.validator.LengthValidator.MAXIMUM=value is must be shorter than or equal to {0} characters
+javax.faces.validator.LengthValidator.MINIMUM=value is must be longer than or equal to {0} characters
+javax.faces.validator.LongRangeValidator.MAXIMUM=value must be less than or equal to {0}
+javax.faces.validator.LongRangeValidator.MINIMUM=value must be greater than or equal to {0}
+javax.faces.validator.LongRangeValidator.NOT_IN_RANGE=value must be between {0} and {1}
+javax.faces.validator.LongRangeValidator.TYPE=value is not of the correct type
+
+javax.faces.validator.NOT_IN_RANGE=value must be between {0} and {1}
+javax.faces.converter.STRING=value could not be converted to a string
+
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/resources/messages_en.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/error.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/cdk/maven-archetype-seam-app/src/main/resources/archetype-resources/web/src/main/webapp/error.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
16 years, 3 months
JBoss Rich Faces SVN: r10472 - trunk/ui/dataTable/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-09-17 11:29:41 -0400 (Wed, 17 Sep 2008)
New Revision: 10472
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
RF-4477
Modified: trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
--- trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-09-17 14:56:10 UTC (rev 10471)
+++ trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-09-17 15:29:41 UTC (rev 10472)
@@ -597,12 +597,13 @@
public void encodeEnd(FacesContext context, UIComponent component)
throws IOException {
super.encodeEnd(context, component);
-
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
- Set<String> ajaxRenderedAreas = ajaxContext.getAjaxRenderedAreas();
- String clientId = component.getClientId(context);
- if(ajaxRenderedAreas.contains(clientId+ ":tb")) {
- ajaxRenderedAreas.remove(clientId);
+ if (component instanceof UIDataTable) {
+ AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
+ Set<String> ajaxRenderedAreas = ajaxContext.getAjaxRenderedAreas();
+ String clientId = ((UIDataTable) component).getBaseClientId(context);
+ if(ajaxRenderedAreas.contains(clientId+ ":tb")) {
+ ajaxRenderedAreas.remove(clientId);
+ }
}
}
16 years, 3 months
JBoss Rich Faces SVN: r10471 - in trunk/sandbox/samples/editor-sample/src/main: java and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-09-17 10:56:10 -0400 (Wed, 17 Sep 2008)
New Revision: 10471
Added:
trunk/sandbox/samples/editor-sample/src/main/java/
trunk/sandbox/samples/editor-sample/src/main/java/org/
trunk/sandbox/samples/editor-sample/src/main/java/org/richfaces/
trunk/sandbox/samples/editor-sample/src/main/java/org/richfaces/EditorBean.java
Log:
HTML markup design & Component Base Creation
Added: trunk/sandbox/samples/editor-sample/src/main/java/org/richfaces/EditorBean.java
===================================================================
--- trunk/sandbox/samples/editor-sample/src/main/java/org/richfaces/EditorBean.java (rev 0)
+++ trunk/sandbox/samples/editor-sample/src/main/java/org/richfaces/EditorBean.java 2008-09-17 14:56:10 UTC (rev 10471)
@@ -0,0 +1,20 @@
+package org.richfaces;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class EditorBean {
+ private Map<String, Object> dataMap;
+ public EditorBean () {
+ dataMap = new HashMap<String, Object>();
+ dataMap.put("name1", "value1");
+ dataMap.put("name2", false);
+ }
+ public Map<String, Object> getDataMap() {
+ return dataMap;
+ }
+ public void setDataMap(Map<String, Object> dataMap) {
+ this.dataMap = dataMap;
+ }
+
+}
16 years, 3 months
JBoss Rich Faces SVN: r10470 - in trunk/sandbox: samples/editor-sample/src/main/webapp/WEB-INF and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-09-17 10:23:31 -0400 (Wed, 17 Sep 2008)
New Revision: 10470
Added:
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
Modified:
trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/editor-sample/src/main/webapp/editor.xhtml
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
Log:
HTML markup design & Component Base Creation
Modified: trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-09-17 13:40:54 UTC (rev 10469)
+++ trunk/sandbox/samples/editor-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-09-17 14:23:31 UTC (rev 10470)
@@ -7,5 +7,10 @@
<managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>editorBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.EditorBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
</faces-config>
Modified: trunk/sandbox/samples/editor-sample/src/main/webapp/editor.xhtml
===================================================================
(Binary files differ)
Added: trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java (rev 0)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-09-17 14:23:31 UTC (rev 10470)
@@ -0,0 +1,65 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+package org.richfaces.renderkit;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIParameter;
+import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
+
+import org.richfaces.component.UIEditor;
+import org.ajax4jsf.javascript.ScriptUtils;
+import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
+/**
+ * @author Pavel Yaschenko - mailto:pyaschenko@exadel.com created 09.17.2008
+ *
+ */
+public class EditorRendererBase extends HeaderResourcesRendererBase {
+
+ @Override
+ protected Class<? extends UIComponent> getComponentClass() {
+ // TODO Auto-generated method stub
+ return UIEditor.class;
+ }
+
+ public void writeEditorScript(FacesContext context,
+ UIComponent component) throws IOException {
+
+ ResponseWriter writer = context.getResponseWriter();
+ List <UIComponent> children = component.getChildren();
+ Map<String, Object> params = new HashMap<String, Object>();
+ for (UIComponent child: children) {
+ UIParameter c = (UIParameter) child;
+ if (c instanceof UIParameter) {
+ params.put(c.getName(), c.getValue());
+ }
+ }
+ writer.writeText("tinyMCE.init(",null);
+ writer.writeText(ScriptUtils.toScript(params),null);
+ writer.writeText(");",null);
+ }
+}
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-09-17 13:40:54 UTC (rev 10469)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-09-17 14:23:31 UTC (rev 10470)
@@ -6,55 +6,20 @@
xmlns:x=" http://jsf.exadel.com/vcp"
xmlns:u="http://jsf.exadel.com/util"
xmlns:h="http://jsf.exadel.com/header"
- baseclass="org.ajax4jsf.renderkit.HeaderResourcesRendererBase"
- class="org.richfaces.renderkit.html.EditorRenderer">
+ baseclass="org.richfaces.renderkit.EditorRendererBase"
+ class="org.richfaces.renderkit.html.EditorRenderer"
+ component="org.richfaces.component.UIEditor">
<f:clientid var="clientId"/>
<h:styles>css/editor.xcss</h:styles>
<h:scripts>new org.ajax4jsf.javascript.PrototypeScript(),scripts/tiny_mce/tiny_mce_src.js</h:scripts>
<div id="#{clientId}" x:passThruWithExclusions="id,value,styleClass,class" class="rich-editor #{component.attributes['styleClass']}">
-<script language="javascript" type="text/javascript">
- // Notice: The simple theme does not use all options some of them are limited to the advanced theme
- tinyMCE.init({
- mode : "textareas",
- theme : "advanced",
- plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen",
- theme_advanced_buttons1_add_before : "save,newdocument,separator",
- theme_advanced_buttons1_add : "fontselect,fontsizeselect",
- theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
- theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
- theme_advanced_buttons3_add_before : "tablecontrols,separator",
- theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "left",
- theme_advanced_statusbar_location : "bottom",
- content_css : "example_word.css",
- plugi2n_insertdate_dateFormat : "%Y-%m-%d",
- plugi2n_insertdate_timeFormat : "%H:%M:%S",
- external_link_list_url : "example_link_list.js",
- external_image_list_url : "example_image_list.js",
- media_external_list_url : "example_media_list.js",
- file_browser_callback : "fileBrowserCallBack",
- paste_use_dialog : false,
- theme_advanced_resizing : true,
- theme_advanced_resize_horizontal : false,
- theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;",
- paste_auto_cleanup_on_paste : true,
- paste_convert_headers_to_strong : false,
- paste_strip_class_attributes : "all",
- paste_remove_spans : false,
- paste_remove_styles : false
- });
- function fileBrowserCallBack(field_name, url, type, win) {
- // This is where you insert your custom filebrowser logic
- alert("Filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type);
+ <script type="text/javascript">
+ <f:call name="writeEditorScript"></f:call>
+ </script>
- // Insert new URL, this would normaly be done in a popup
- win.document.forms[0].elements[field_name].value = "someurl.htm";
- }
-</script>
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 100%">
<p>Some paragraph</p>
<p>Some other paragraph</p>
16 years, 3 months
JBoss Rich Faces SVN: r10469 - trunk/test-applications.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-09-17 09:40:54 -0400 (Wed, 17 Sep 2008)
New Revision: 10469
Added:
trunk/test-applications/regressionArea/
Removed:
trunk/test-applications/SeamApp/
Log:
Copied: trunk/test-applications/regressionArea (from rev 10468, trunk/test-applications/SeamApp)
16 years, 3 months