Seam SVN: r13917 - branches/community/Seam_2_2/examples/metawidget/dvdstore.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-11-19 10:43:24 -0500 (Fri, 19 Nov 2010)
New Revision: 13917
Added:
branches/community/Seam_2_2/examples/metawidget/dvdstore/build-jboss6.xml
Modified:
branches/community/Seam_2_2/examples/metawidget/dvdstore/readme.txt
Log:
JBSEAM-4698, JBSEAM-4714 added build script for deployment of metawidget-booking into JBoss AS 6
Added: branches/community/Seam_2_2/examples/metawidget/dvdstore/build-jboss6.xml
===================================================================
--- branches/community/Seam_2_2/examples/metawidget/dvdstore/build-jboss6.xml (rev 0)
+++ branches/community/Seam_2_2/examples/metawidget/dvdstore/build-jboss6.xml 2010-11-19 15:43:24 UTC (rev 13917)
@@ -0,0 +1,88 @@
+<?xml version="1.0"?>
+<project name="Metawidget DVD Store" default="deploy" basedir=".">
+
+ <!-- Naming -->
+ <property name="Name" value="Seam DVD Store Example"/>
+ <property name="example.name" value="seam-metawidget-dvdstore"/>
+ <property name="jboss6" value="yes" />
+
+ <property file="${basedir}/build.properties" />
+
+ <!-- Define location of merged source -->
+ <property name="staging.dir" value="${basedir}/staging"/>
+ <property name="src.java.dir" value="${staging.dir}/src"/>
+ <property name="src.test.dir" value="${src.java.dir}"/>
+ <property name="view.dir" value="${staging.dir}/view"/>
+ <property name="resources.dir" value="${staging.dir}/resources"/>
+ <property name="clean.extra" value="${staging.dir}"/>
+
+ <!-- Libraries to include -->
+ <property name="seam.ui.lib" value="yes"/>
+ <property name="seam.debug.lib" value="yes"/>
+ <property name="facelets.lib" value="yes"/>
+ <property name="jbpm.lib" value="yes"/>
+ <property name="search.lib" value="yes"/>
+ <property name="urlrewrite.lib" value="yes"/>
+ <property name="metawidget-ear.lib" value="yes"/>
+
+ <!-- Datasource -->
+ <!--<property name="example.ds" value="seam-metawidget-dvdstore-ds.xml"/>-->
+ <property name="example.ds" value="jboss-seam-dvdstore-ds.xml"/>
+
+ <target name="init" depends="stage, gethsearch3.3">
+ <antcall target="SeamExample.init"/>
+ <path id="build.classpath.extras">
+ <fileset dir="${lib.search.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ </target>
+
+ <target name="stage">
+
+ <!-- Copy the original Seam booking example -->
+ <copy todir="${staging.dir}">
+ <fileset includes="**" dir="${seam.dir}/examples/dvdstore/jboss6/src" />
+ </copy>
+ <copy todir="${staging.dir}">
+ <fileset dir="${seam.dir}/examples/dvdstore">
+ <include name="src/**"/>
+ <exclude name="src/com/jboss/dvd/seam/FullTextSearchAction.java" />
+ <include name="view/**"/>
+ <include name="resources/**"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy metawidget example overrides -->
+ <copy todir="${staging.dir}" overwrite="true">
+ <fileset dir=".">
+ <include name="src/**"/>
+ <include name="view/**"/>
+ <include name="resources/**"/>
+ </fileset>
+ </copy>
+
+ <!--<move file="${resources.dir}/jboss-seam-dvdstore-ds.xml" tofile="${resources.dir}/${example.ds}"/>-->
+ </target>
+
+ <import file="${basedir}/../../build.xml"/>
+
+ <!-- Enable the following overrides if you want to use your own JAR metawidget JAR files -->
+ <!-- Don't forget to set <property name="metawidget-ear.lib" value="no" above -->
+ <!--
+ <path id="build.classpath.extras">
+ <fileset dir="${basedir}/..">
+ <include name="metawidget.jar"/>
+ </fileset>
+ </path>
+
+ <fileset id="ear.lib.extras" dir="${basedir}/..">
+ <include name="metawidget-backend.jar"/>
+ </fileset>
+
+ <fileset id="war.lib.extras" dir="${basedir}/..">
+ <include name="metawidget-frontend.jar"/>
+ </fileset>
+ -->
+
+</project>
Property changes on: branches/community/Seam_2_2/examples/metawidget/dvdstore/build-jboss6.xml
___________________________________________________________________
Name: svn:executable
+ *
Modified: branches/community/Seam_2_2/examples/metawidget/dvdstore/readme.txt
===================================================================
--- branches/community/Seam_2_2/examples/metawidget/dvdstore/readme.txt 2010-11-18 17:54:26 UTC (rev 13916)
+++ branches/community/Seam_2_2/examples/metawidget/dvdstore/readme.txt 2010-11-19 15:43:24 UTC (rev 13917)
@@ -22,3 +22,8 @@
Access the application at http://localhost:8080/seam-metawidget-dvdstore
For further Metawidget documentation see http://metawidget.org/documentation.html.
+
+Notice: Deployment into JBoss AS 6 requires to use Hibernate-Search 3.3 and this
+can be done through launching
+
+ ant -f build-jboss6.xml
14 years
Seam SVN: r13916 - branches/community/Seam_2_2/seam-gen/ide-project-files/netbeans.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-11-18 12:54:26 -0500 (Thu, 18 Nov 2010)
New Revision: 13916
Modified:
branches/community/Seam_2_2/seam-gen/ide-project-files/netbeans/project.xml
Log:
JBSEAM-4712 added jboss-seam-ui.jar into netbeans project classpaths
Modified: branches/community/Seam_2_2/seam-gen/ide-project-files/netbeans/project.xml
===================================================================
--- branches/community/Seam_2_2/seam-gen/ide-project-files/netbeans/project.xml 2010-11-18 16:45:22 UTC (rev 13915)
+++ branches/community/Seam_2_2/seam-gen/ide-project-files/netbeans/project.xml 2010-11-18 17:54:26 UTC (rev 13916)
@@ -96,12 +96,12 @@
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
<compilation-unit>
<package-root>src/main</package-root>
- <classpath mode="compile">lib/hibernate-validator.jar:lib/hibernate-core.jar:lib/hibernate-annotations.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-entitymanager.jar:lib/jboss-seam.jar:lib/jboss-seam-debug.jar:lib/jboss-cache.jar:lib/jbpm-jpdl.jar:lib/antlr.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl.jar:lib/jsf-api.jar:lib/servlet-api.jar:lib/jboss-el.jar:lib/el-api.jar:lib/mvel2.jar:lib/drools-api.jar:lib/drools-core.jar:lib/drools-compiler.jar:lib/drools-decisiontables.jar:lib/drools-templates.jar:lib/janino.jar:lib/antlr-runtime.jar:lib/mail.jar:lib/persistence-api.jar:lib/ejb-api.jar:lib/jsr250-api.jar:lib/jta.jar:lib/core.jar:lib/jboss-embedded-api.jar:lib/hibernate-search.jar:lib/richfaces-api.jar:lib/richfaces-ui.jar:lib/@driverJar@:lib/lucene-core.jar</classpath>
+ <classpath mode="compile">lib/hibernate-validator.jar:lib/hibernate-core.jar:lib/hibernate-annotations.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-entitymanager.jar:lib/jboss-seam.jar:lib/jboss-seam-ui.jar:lib/jboss-seam-debug.jar:lib/jboss-cache.jar:lib/jbpm-jpdl.jar:lib/antlr.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl.jar:lib/jsf-api.jar:lib/servlet-api.jar:lib/jboss-el.jar:lib/el-api.jar:lib/mvel2.jar:lib/drools-api.jar:lib/drools-core.jar:lib/drools-compiler.jar:lib/drools-decisiontables.jar:lib/drools-templates.jar:lib/janino.jar:lib/antlr-runtime.jar:lib/mail.jar:lib/persistence-api.jar:lib/ejb-api.jar:lib/jsr250-api.jar:lib/jta.jar:lib/core.jar:lib/jboss-embedded-api.jar:lib/hibernate-search.jar:lib/richfaces-api.jar:lib/richfaces-ui.jar:lib/@driverJar@:lib/lucene-core.jar</classpath>
<source-level>1.5</source-level>
</compilation-unit>
<compilation-unit>
<package-root>src/hot</package-root>
- <classpath mode="compile">lib/hibernate-validator.jar:lib/hibernate-core.jar:lib/hibernate-annotations.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-entitymanager.jar:lib/jboss-seam.jar:lib/jboss-seam-debug.jar:lib/jboss-cache.jar:lib/jbpm-jpdl.jar:lib/antlr.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl.jar:lib/jsf-api.jar:lib/servlet-api.jar:lib/jboss-el.jar:lib/el-api.jar:lib/mvel2.jar:lib/drools-api.jar:lib/drools-core.jar:lib/drools-compiler.jar:lib/drools-decisiontables.jar:lib/drools-templates.jar:lib/janino.jar:lib/antlr-runtime.jar:lib/mail.jar:lib/persistence-api.jar:lib/ejb-api.jar:lib/jsr250-api.jar:lib/jta.jar:lib/core.jar:lib/jboss-embedded-api.jar:lib/hibernate-search.jar:lib/richfaces-api.jar:lib/richfaces-ui.jar:lib/@driverJar@:lib/lucene-core.jar</classpath>
+ <classpath mode="compile">lib/hibernate-validator.jar:lib/hibernate-core.jar:lib/hibernate-annotations.jar:lib/hibernate-commons-annotations.jar:lib/hibernate-entitymanager.jar:lib/jboss-seam.jar:lib/jboss-seam-ui.jar:lib/jboss-seam-debug.jar:lib/jboss-cache.jar:lib/jbpm-jpdl.jar:lib/antlr.jar:lib/jgroups.jar:lib/jsf-facelets.jar:lib/jstl.jar:lib/jsf-api.jar:lib/servlet-api.jar:lib/jboss-el.jar:lib/el-api.jar:lib/mvel2.jar:lib/drools-api.jar:lib/drools-core.jar:lib/drools-compiler.jar:lib/drools-decisiontables.jar:lib/drools-templates.jar:lib/janino.jar:lib/antlr-runtime.jar:lib/mail.jar:lib/persistence-api.jar:lib/ejb-api.jar:lib/jsr250-api.jar:lib/jta.jar:lib/core.jar:lib/jboss-embedded-api.jar:lib/hibernate-search.jar:lib/richfaces-api.jar:lib/richfaces-ui.jar:lib/@driverJar@:lib/lucene-core.jar</classpath>
<source-level>1.5</source-level>
</compilation-unit>
<compilation-unit>
14 years
[seam/forge] f84a4c: fixed bad FSHParser imports
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/forge
Commit: f84a4c042bc205e89f3136a283e0db63dd315891
https://github.com/seam/forge/commit/f84a4c042bc205e89f3136a283e0db63dd31...
Author: Lincoln Baxter, III <lincolnbaxter(a)gmail.com>
Date: 2010-11-18 (Thu, 18 Nov 2010)
Changed paths:
M shell/src/main/java/org/jboss/seam/forge/shell/command/fshparser/FSHParser.java
M shell/src/main/java/org/jboss/seam/forge/shell/command/fshparser/LogicalStatement.java
Log Message:
-----------
fixed bad FSHParser imports
Commit: ec7931f0a9855c24f3198e3336865401b5feee2d
https://github.com/seam/forge/commit/ec7931f0a9855c24f3198e3336865401b5fe...
Author: Lincoln Baxter, III <lincolnbaxter(a)gmail.com>
Date: 2010-11-18 (Thu, 18 Nov 2010)
Changed paths:
M persistence-plugin/src/main/java/org/jboss/seam/forge/persistence/plugins/NewFieldPlugin.java
M persistence-plugin/src/test/java/org/jboss/seam/forge/persistence/test/plugins/NewFieldPluginTest.java
M project-model/src/main/java/org/jboss/seam/forge/project/facets/DependencyFacet.java
M project-model/src/main/java/org/jboss/seam/forge/project/facets/builtin/MavenDependencyFacet.java
Log Message:
-----------
Added properties to Dependency facet
14 years
Seam SVN: r13915 - in branches/community/Seam_2_2/examples/spring: jboss6 and 11 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-11-18 11:45:22 -0500 (Thu, 18 Nov 2010)
New Revision: 13915
Added:
branches/community/Seam_2_2/examples/spring/build-jboss6.xml
branches/community/Seam_2_2/examples/spring/jboss6/
branches/community/Seam_2_2/examples/spring/jboss6/src/
branches/community/Seam_2_2/examples/spring/jboss6/src/javax/
branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/
branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/SharedCacheMode.java
branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/ValidationMode.java
branches/community/Seam_2_2/examples/spring/jboss6/src/org/
branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/
branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/orm/
branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/orm/jpa/
branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/orm/jpa/persistenceunit/
branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/orm/jpa/persistenceunit/SpringPersistenceUnitInfo.java
Modified:
branches/community/Seam_2_2/examples/spring/build.xml
branches/community/Seam_2_2/examples/spring/resources/META-INF/persistence-spring.xml
branches/community/Seam_2_2/examples/spring/resources/WEB-INF/applicationContext.xml
branches/community/Seam_2_2/examples/spring/src/org/jboss/seam/example/spring/UserService.java
Log:
JBSEAM-4565 hacked build script for deploying to jboss as 6
Added: branches/community/Seam_2_2/examples/spring/build-jboss6.xml
===================================================================
--- branches/community/Seam_2_2/examples/spring/build-jboss6.xml (rev 0)
+++ branches/community/Seam_2_2/examples/spring/build-jboss6.xml 2010-11-18 16:45:22 UTC (rev 13915)
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+
+<project name="Spring JBossWar for JBoss AS 6" default="jbosswar6" basedir=".">
+
+ <!-- Naming -->
+ <property name="Name" value="The Spring Example for JBoss War"/>
+ <property name="example.name" value="jboss-seam-spring"/>
+ <property name="jboss6" value="yes"/>
+
+ <property name="seam.ui.lib" value="true"/>
+ <property name="seam.debug.lib" value="true"/>
+ <property name="facelets.lib" value="true"/>
+ <property name="seam.ioc.war.lib" value="true"/>
+ <property name="spring.lib" value="true"/>
+ <!-- needed because jboss must include hibernate search -->
+ <property name="search.lib" value="true"/>
+ <property name="richfaces.lib" value="true"/>
+ <property name="cglib.lib" value="true"/>
+
+ <target name="init" depends="preparesrc">
+ <antcall target="SeamExample.init"/>
+ <path id="build.classpath.extras">
+ <fileset dir="${lib.search.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ </target>
+
+ <target name="preparesrc">
+ <mkdir dir="${src.java.dir}"/>
+
+ <copy todir="${src.java.dir}">
+ <fileset includes="**" dir="jboss6/src" />
+ </copy>
+ <copy todir="${src.java.dir}">
+ <fileset includes="**" dir="src"/>
+ </copy>
+ </target>
+
+ <target name="mynoejb.jar" depends="jar">
+ <copy todir="${war.dir}/WEB-INF/classes">
+ <fileset dir="${jar.dir}">
+ <exclude name="**/ejb-jar.xml" />
+ <exclude name="javax/**"/> <!-- required jpa 2 classes for hacking jboss as6-->
+ </fileset>
+ <fileset refid="noejb.jar.extras" />
+ <fileset refid="noejb.jar.resources" />
+ </copy>
+ </target>
+
+ <target name="mynoejb.archive" depends="mynoejb.jar,noejb.war" description="Package the archives for non-ejb war">
+ <jar jarfile="${dist.dir}/${example.name}.war">
+ <fileset dir="${war.dir}" />
+ <zipfileset dir="${dist.dir}" prefix="WEB-INF/lib">
+ <include name="${example.name}.jar" />
+ </zipfileset>
+ </jar>
+ </target>
+
+ <target name="jbosswar6" depends="mynoejb.archive" >
+
+ <copy file="${dist.dir}/${example.name}.war" todir="${deploy.dir}" />
+ </target>
+
+ <import file="../build.xml"/>
+
+ <fileset id="noejb.jar.extras" dir="${resources.dir}">
+ <include name="META-INF/persistence-spring.xml"/>
+ </fileset>
+
+</project>
Property changes on: branches/community/Seam_2_2/examples/spring/build-jboss6.xml
___________________________________________________________________
Name: svn:executable
+ *
Modified: branches/community/Seam_2_2/examples/spring/build.xml
===================================================================
--- branches/community/Seam_2_2/examples/spring/build.xml 2010-11-18 08:29:28 UTC (rev 13914)
+++ branches/community/Seam_2_2/examples/spring/build.xml 2010-11-18 16:45:22 UTC (rev 13915)
@@ -18,9 +18,13 @@
<target name="all" depends="jbosswar" description="Build Spring Booking example, for deployment to all supported application servers"/>
- <target name="jboss42" description="Build the Spring example, and deploy to JBoss 4.2.x.GA">
+ <target name="jboss42" description="Build the Spring example, and deploy to JBoss AS 4.2.x.GA">
<ant antfile="build-jboss42.xml"/>
</target>
+
+ <target name="jboss6" description="Build the Spring example, and deploy to JBoss AS 6">
+ <ant antfile="build-jboss6.xml"/>
+ </target>
</project>
Added: branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/SharedCacheMode.java
===================================================================
--- branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/SharedCacheMode.java (rev 0)
+++ branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/SharedCacheMode.java 2010-11-18 16:45:22 UTC (rev 13915)
@@ -0,0 +1,40 @@
+package javax.persistence;
+
+/**
+ * Specifies how the provider must use a second-level cache for the
+ * persistence unit. Corresponds to the value of the <code>persistence.xml</code>
+ * <code>shared-cache-mode</code> element, and returned as the result of
+ * {@link javax.persistence.spi.PersistenceUnitInfo#getSharedCacheMode()}.
+ *
+ * @since Java Persistence 2.0
+ */
+public enum SharedCacheMode {
+ /**
+ * All entities and entity-related state and data are cached.
+ */
+ ALL,
+
+ /**
+ * Caching is disabled for the persistence unit.
+ */
+ NONE,
+
+ /**
+ * Caching is enabled for all entities for <code>Cacheable(true)</code>
+ * is specified. All other entities are not cached.
+ */
+ ENABLE_SELECTIVE,
+
+ /**
+ * Caching is enabled for all entities except those for which
+ * <code>Cacheable(false) is specified. Entities for which
+ * <code>Cacheable(false) is specified are not cached.
+ */
+ DISABLE_SELECTIVE,
+
+ /**
+ *
+ * Caching behavior is undefined: provider-specific defaults may apply.
+ */
+ UNSPECIFIED
+}
Added: branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/ValidationMode.java
===================================================================
--- branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/ValidationMode.java (rev 0)
+++ branches/community/Seam_2_2/examples/spring/jboss6/src/javax/persistence/ValidationMode.java 2010-11-18 16:45:22 UTC (rev 13915)
@@ -0,0 +1,8 @@
+package javax.persistence;
+
+public enum ValidationMode
+{
+ AUTO,
+ CALLBACK,
+ NONE
+}
Added: branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/orm/jpa/persistenceunit/SpringPersistenceUnitInfo.java
===================================================================
--- branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/orm/jpa/persistenceunit/SpringPersistenceUnitInfo.java (rev 0)
+++ branches/community/Seam_2_2/examples/spring/jboss6/src/org/springframework/orm/jpa/persistenceunit/SpringPersistenceUnitInfo.java 2010-11-18 16:45:22 UTC (rev 13915)
@@ -0,0 +1,109 @@
+/*
+ * Copyright 2002-2008 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.orm.jpa.persistenceunit;
+
+import javax.persistence.SharedCacheMode;
+import javax.persistence.ValidationMode;
+import javax.persistence.spi.ClassTransformer;
+
+import org.springframework.core.DecoratingClassLoader;
+import org.springframework.instrument.classloading.LoadTimeWeaver;
+import org.springframework.instrument.classloading.SimpleThrowawayClassLoader;
+import org.springframework.util.Assert;
+
+/**
+ * Subclass of {@link MutablePersistenceUnitInfo} that adds instrumentation hooks based on
+ * Spring's {@link org.springframework.instrument.classloading.LoadTimeWeaver} abstraction.
+ *
+ * <p>This class is restricted to package visibility, in contrast to its superclass.
+ *
+ * @author Rod Johnson
+ * @author Juergen Hoeller
+ * @author Costin Leau
+ * @since 2.0
+ * @see PersistenceUnitManager
+ */
+class SpringPersistenceUnitInfo extends MutablePersistenceUnitInfo {
+
+ private LoadTimeWeaver loadTimeWeaver;
+
+ private ClassLoader classLoader;
+
+
+ /**
+ * Initialize this PersistenceUnitInfo with the LoadTimeWeaver SPI interface
+ * used by Spring to add instrumentation to the current class loader.
+ */
+ public void init(LoadTimeWeaver loadTimeWeaver) {
+ Assert.notNull(loadTimeWeaver, "LoadTimeWeaver must not be null");
+ this.loadTimeWeaver = loadTimeWeaver;
+ this.classLoader = loadTimeWeaver.getInstrumentableClassLoader();
+ }
+
+ /**
+ * Initialize this PersistenceUnitInfo with the current class loader
+ * (instead of with a LoadTimeWeaver).
+ */
+ public void init(ClassLoader classLoader) {
+ Assert.notNull(classLoader, "ClassLoader must not be null");
+ this.classLoader = classLoader;
+ }
+
+
+ /**
+ * This implementation returns the LoadTimeWeaver's instrumentable ClassLoader,
+ * if specified.
+ */
+ @Override
+ public ClassLoader getClassLoader() {
+ return this.classLoader;
+ }
+
+ /**
+ * This implementation delegates to the LoadTimeWeaver, if specified.
+ */
+ @Override
+ public void addTransformer(ClassTransformer classTransformer) {
+ if (this.loadTimeWeaver == null) {
+ throw new IllegalStateException("Cannot apply class transformer without LoadTimeWeaver specified");
+ }
+ this.loadTimeWeaver.addTransformer(new ClassFileTransformerAdapter(classTransformer));
+ }
+
+ /**
+ * This implementation delegates to the LoadTimeWeaver, if specified.
+ */
+ @Override
+ public ClassLoader getNewTempClassLoader() {
+ ClassLoader tcl = (this.loadTimeWeaver != null ? this.loadTimeWeaver.getThrowawayClassLoader() :
+ new SimpleThrowawayClassLoader(this.classLoader));
+ String packageToExclude = getPersistenceProviderPackageName();
+ if (packageToExclude != null && tcl instanceof DecoratingClassLoader) {
+ ((DecoratingClassLoader) tcl).excludePackage(packageToExclude);
+ }
+ return tcl;
+ }
+
+ public ValidationMode getValidationMode() {
+
+ return null;
+ }
+
+ public SharedCacheMode getSharedCacheMode(){
+ return null;
+ }
+}
\ No newline at end of file
Modified: branches/community/Seam_2_2/examples/spring/resources/META-INF/persistence-spring.xml
===================================================================
--- branches/community/Seam_2_2/examples/spring/resources/META-INF/persistence-spring.xml 2010-11-18 08:29:28 UTC (rev 13914)
+++ branches/community/Seam_2_2/examples/spring/resources/META-INF/persistence-spring.xml 2010-11-18 16:45:22 UTC (rev 13915)
@@ -5,7 +5,7 @@
version="1.0">
<persistence-unit name="bookingDatabase" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
- <!-- classes must be enumerated due to a known bug in Seam 2.5.6, SPR-5787 -->
+ <!-- classes must be enumerated due to a known bug in Spring 2.5.6, SPR-5787 -->
<class>org.jboss.seam.example.spring.Booking</class>
<class>org.jboss.seam.example.spring.Hotel</class>
<class>org.jboss.seam.example.spring.User</class>
Modified: branches/community/Seam_2_2/examples/spring/resources/WEB-INF/applicationContext.xml
===================================================================
--- branches/community/Seam_2_2/examples/spring/resources/WEB-INF/applicationContext.xml 2010-11-18 08:29:28 UTC (rev 13914)
+++ branches/community/Seam_2_2/examples/spring/resources/WEB-INF/applicationContext.xml 2010-11-18 16:45:22 UTC (rev 13915)
@@ -28,7 +28,12 @@
<!-- Use alternate location to prevent JBoss AS from automatically loading persistence units (in-container) -->
<property name="persistenceXmlLocation" value="classpath*:/META-INF/persistence-spring.xml"/>
</bean>
+
+ <bean id="entityManagerWrapper" class="org.springframework.orm.jpa.support.SharedEntityManagerBean">
+ <property name="entityManagerFactory" ref="entityManagerFactory"/>
+ </bean>
+
<!-- This example uses resource local JpaTransactionManager. You could just as easily use a JtaTransactionManager -->
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<!-- Be sure to specify the SeamManagedEntityManagerFactory since that will manage the EM that will be
@@ -39,7 +44,9 @@
<tx:annotation-driven proxy-target-class="true" />
<!-- Example using PersistenceAnnotationBeanPostProcessor for persistence -->
- <bean id="userService" class="org.jboss.seam.example.spring.UserService"/>
+ <bean id="userService" class="org.jboss.seam.example.spring.UserService">
+ <property name="entityManagerFactory" ref="seamEntityManagerFactory"/>
+ </bean>
<!-- Example using JpaDaoSupport for persistence -->
<bean id="bookingService" class="org.jboss.seam.example.spring.BookingService">
@@ -56,7 +63,7 @@
<seam:configure-scopes default-auto-create="true" />
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor">
- <!-- Because we have multiple EntityManagerFactories in this applicaitonContext identify the
+ <!-- Because we have multiple EntityManagerFactories in this applicationContext identify the
SeamManagedEntityManagerFactory as the default -->
<property name="defaultPersistenceUnitName" value="conversationScoped"/>
</bean>
Modified: branches/community/Seam_2_2/examples/spring/src/org/jboss/seam/example/spring/UserService.java
===================================================================
--- branches/community/Seam_2_2/examples/spring/src/org/jboss/seam/example/spring/UserService.java 2010-11-18 08:29:28 UTC (rev 13914)
+++ branches/community/Seam_2_2/examples/spring/src/org/jboss/seam/example/spring/UserService.java 2010-11-18 16:45:22 UTC (rev 13915)
@@ -1,19 +1,21 @@
package org.jboss.seam.example.spring;
import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-import javax.persistence.PersistenceException;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.dao.DataAccessException;
+import org.springframework.orm.jpa.support.JpaDaoSupport;
import org.springframework.transaction.annotation.Transactional;
/**
* @author Mike Youngstrom
*
*/
-public class UserService {
+public class UserService extends JpaDaoSupport {
- @PersistenceContext
- private EntityManager entityManager;
+ //@PersistenceContext
+ //@Autowired(required=true)
+ //private EntityManager entityManager;
@Transactional
public boolean changePassword(String username, String oldPassword, String newPassword) {
@@ -37,18 +39,19 @@
if (username == null || "".equals(username)) {
throw new IllegalArgumentException("Username cannot be null");
}
- return entityManager.find(User.class, username);
+ return getJpaTemplate().find(User.class, username);
}
@Transactional
public User findUser(String username, String password) {
try {
- return (User)
+ /*return (User)
entityManager.createQuery("select u from User u where u.username=:username and u.password=:password")
.setParameter("username", username)
.setParameter("password", password)
- .getSingleResult();
- } catch (PersistenceException e) {
+ .getSingleResult();*/
+ return (User) getJpaTemplate().find("select u from User u where u.username=?1 and u.password=?2", username, password).get(0);
+ } catch (DataAccessException e) {
return null;
}
}
@@ -63,6 +66,7 @@
if (existingUser != null) {
throw new ValidationException("Username "+user.getUsername()+" already exists");
}
- entityManager.persist(user);
+ getJpaTemplate().persist(user);
+ getJpaTemplate().flush();
}
}
14 years
Seam SVN: r13914 - branches/community/Seam_2_2/src/main/org/jboss/seam/jmx.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-11-18 03:29:28 -0500 (Thu, 18 Nov 2010)
New Revision: 13914
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/MBeanProxy.java
Log:
fixed building under jdk 5, accidently changed some compiler warnings on jdk6 and it broke jdk5 compilation
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/MBeanProxy.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/MBeanProxy.java 2010-11-16 10:48:55 UTC (rev 13913)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/jmx/MBeanProxy.java 2010-11-18 08:29:28 UTC (rev 13914)
@@ -30,7 +30,7 @@
*/
public static Object get(Class intrface, ObjectName name, String agentID) throws MBeanProxyCreationException
{
- return get(intrface, name, MBeanServerFactory.findMBeanServer(agentID).get(0));
+ return get(intrface, name, (MBeanServer) MBeanServerFactory.findMBeanServer(agentID).get(0));
}
/**
@@ -78,7 +78,7 @@
*/
public static Object create(Class instance, Class intrface, ObjectName name, String agentID) throws MBeanProxyCreationException
{
- return create(instance, intrface, name, MBeanServerFactory.findMBeanServer(agentID).get(0));
+ return create(instance, intrface, name,(MBeanServer) MBeanServerFactory.findMBeanServer(agentID).get(0));
}
/**
14 years
[seam/catch] 286dc1: Documentation changes to reflect redesign.
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/catch
Commit: 286dc16458bee8f234f1f5aa5af34dd74881e8f1
https://github.com/seam/catch/commit/286dc16458bee8f234f1f5aa5af34dd74881...
Author: LightGuard <lightguard.jp(a)gmail.com>
Date: 2010-11-16 (Tue, 16 Nov 2010)
Changed paths:
A api/src/main/java/org/jboss/seam/exception/control/CauseContainer.java
R api/src/main/java/org/jboss/seam/exception/control/StackInfo.java
M docs/src/main/docbook/en-US/client_usage.xml
A docs/src/main/docbook/en-US/glossary.xml
M docs/src/main/docbook/en-US/installation.xml
M docs/src/main/docbook/en-US/integration.xml
M docs/src/main/docbook/en-US/introduction.xml
M docs/src/main/docbook/en-US/master.xml
Log Message:
-----------
Documentation changes to reflect redesign.
Addresses SEAMCATCH-2. Documentation now correctly reflects the current
design of Catch. I commented out the glossary because I haven't been
able to get it to work yet.
Also renaming StackInfo to CauseContainer to more correctly reflect what
it is.
Commit: 6714dad57c19ad65473d10d3f0c1e28f7ce3c2e2
https://github.com/seam/catch/commit/6714dad57c19ad65473d10d3f0c1e28f7ce3...
Author: LightGuard <lightguard.jp(a)gmail.com>
Date: 2010-11-16 (Tue, 16 Nov 2010)
Changed paths:
M api/src/main/java/org/jboss/seam/exception/control/CatchEvent.java
M api/src/main/java/org/jboss/seam/exception/control/ExceptionToCatchEvent.java
M impl/src/main/java/org/jboss/seam/exception/control/ExceptionHandlerDispatch.java
M impl/src/main/java/org/jboss/seam/exception/control/extension/CatchExtension.java
M impl/src/test/java/org/jboss/seam/exception/control/test/handler/StackInfoHandler.java
Log Message:
-----------
Rename changes and minor fixes
Rename changes for CauseContainer, minor fixes for ExceptionToCatchEvent
and adding a deployment exception if a handler throws an exception.
14 years
Seam SVN: r13913 - in branches/community/Seam_2_2/examples/dvdstore: jboss6 and 7 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2010-11-16 05:48:55 -0500 (Tue, 16 Nov 2010)
New Revision: 13913
Added:
branches/community/Seam_2_2/examples/dvdstore/build-jboss6.xml
branches/community/Seam_2_2/examples/dvdstore/jboss6/
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java
Modified:
branches/community/Seam_2_2/examples/dvdstore/build.xml
branches/community/Seam_2_2/examples/dvdstore/readme.txt
branches/community/Seam_2_2/examples/dvdstore/resources/META-INF/persistence.xml
branches/community/Seam_2_2/examples/dvdstore/resources/WEB-INF/pages.xml
Log:
JBSEAM-4714 added jboss as6 build script for dvdstore example
Added: branches/community/Seam_2_2/examples/dvdstore/build-jboss6.xml
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/build-jboss6.xml (rev 0)
+++ branches/community/Seam_2_2/examples/dvdstore/build-jboss6.xml 2010-11-16 10:48:55 UTC (rev 13913)
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<project name="DvdStore" default="deploy" basedir=".">
+
+ <!-- Naming -->
+ <property name="Name" value="Seam Dvd Store Example"/>
+ <property name="example.name" value="jboss-seam-dvdstore"/>
+ <property name="jboss6" value="yes"/>
+
+ <target name="init" depends="preparesrc">
+ <antcall target="SeamExample.init"/>
+ <path id="build.classpath.extras">
+ <fileset dir="${lib.search.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ </target>
+
+ <target name="preparesrc">
+ <mkdir dir="${src.java.dir}"/>
+
+ <copy todir="${src.java.dir}">
+ <fileset includes="**" dir="jboss6/src" />
+ </copy>
+ <copy todir="${src.java.dir}">
+ <fileset includes="**" excludes="src/com/jboss/dvd/seam/FullTextSearchAction.java" dir="src"/>
+ </copy>
+
+ </target>
+
+ <import file="../build.xml"/>
+
+</project>
Property changes on: branches/community/Seam_2_2/examples/dvdstore/build-jboss6.xml
___________________________________________________________________
Name: svn:executable
+ *
Modified: branches/community/Seam_2_2/examples/dvdstore/build.xml
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/build.xml 2010-11-16 10:47:20 UTC (rev 13912)
+++ branches/community/Seam_2_2/examples/dvdstore/build.xml 2010-11-16 10:48:55 UTC (rev 13913)
@@ -16,6 +16,10 @@
<!-- Datasource -->
<property name="example.ds" value="jboss-seam-dvdstore-ds.xml" />
+
+ <target name="jboss6" description="Build the DVD Store example artifacts, and deploy to JBoss AS 6">
+ <ant antfile="build-jboss6.xml"/>
+ </target>
<import file="../build.xml" />
@@ -40,5 +44,5 @@
<target name="jboss42" description="Build the DvdStore example artifacts, and deploy to JBoss 4.2.x.GA">
<ant antfile="build-jboss42.xml"/>
</target>
-
+
</project>
Added: branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java (rev 0)
+++ branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java 2010-11-16 10:48:55 UTC (rev 13913)
@@ -0,0 +1,296 @@
+//$Id: FullTextSearchAction.java 7961 2008-04-17 04:30:44Z norman.richards(a)jboss.com $
+package com.jboss.dvd.seam;
+
+import java.io.Serializable;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+
+import org.apache.lucene.analysis.Analyzer;
+import org.apache.lucene.queryParser.MultiFieldQueryParser;
+import org.apache.lucene.queryParser.ParseException;
+import org.apache.lucene.queryParser.QueryParser;
+import org.apache.lucene.util.Version;
+import org.hibernate.search.jpa.FullTextEntityManager;
+import org.hibernate.search.jpa.FullTextQuery;
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Begin;
+import org.jboss.seam.annotations.Destroy;
+import org.jboss.seam.annotations.End;
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+import org.jboss.seam.annotations.datamodel.DataModel;
+import org.jboss.seam.util.Reflections;
+
+/**
+ * Hibernate Search version of the store querying mechanism
+ * @author Emmanuel Bernard
+ */
+@Stateful
+@Name("search")
+public class FullTextSearchAction
+ implements FullTextSearch,
+ Serializable
+{
+ static final long serialVersionUID = -6536629890251170098L;
+
+ @In(create=true)
+ ShoppingCart cart;
+
+ @PersistenceContext
+ EntityManager em;
+
+ //@RequestParameter
+ Long id;
+
+ int pageSize = 15;
+ int currentPage = 0;
+ boolean hasMore = false;
+ int numberOfResults;
+
+ String searchQuery;
+
+ @DataModel
+ List<Product> searchResults;
+
+ //@DataModelSelection
+ Product selectedProduct;
+
+ @Out(required = false)
+ Product dvd;
+
+ @Out(scope=ScopeType.CONVERSATION, required=false)
+ Map<Product, Boolean> searchSelections;
+
+
+ public String getSearchQuery() {
+ return searchQuery;
+ }
+
+ public void setSearchQuery(String searchQuery) {
+ this.searchQuery = searchQuery;
+ }
+
+
+ public int getNumberOfResults() {
+ return numberOfResults;
+ }
+
+ @Begin(join = true)
+ public String doSearch() {
+ currentPage = 0;
+ updateResults();
+
+ return "browse";
+ }
+
+ public void nextPage() {
+ if (!isLastPage()) {
+ currentPage++;
+ updateResults();
+ }
+ }
+
+ public void prevPage() {
+ if (!isFirstPage()) {
+ currentPage--;
+ updateResults();
+ }
+ }
+
+ @Begin(join = true)
+ public void selectFromRequest() {
+ if (id != null) {
+ dvd = em.find(Product.class, id);
+ } else if (selectedProduct != null) {
+ dvd = selectedProduct;
+ }
+ }
+
+ public boolean isLastPage() {
+ return ( searchResults != null ) && !hasMore;
+ }
+
+ public boolean isFirstPage() {
+ return ( searchResults != null ) && ( currentPage == 0 );
+ }
+
+ @SuppressWarnings("unchecked")
+ private void updateResults() {
+ FullTextQuery query;
+ try {
+ query = searchQuery(searchQuery);
+ } catch (ParseException pe) {
+ return;
+ }
+ System.out.println("Query " + query);
+ List<Product> items = query
+ .setMaxResults(pageSize + 1)
+ .setFirstResult(pageSize * currentPage)
+ .getResultList();
+ numberOfResults = query.getResultSize();
+
+ if (items.size() > pageSize) {
+ searchResults = new ArrayList(items.subList(0, pageSize));
+ hasMore = true;
+ } else {
+ searchResults = items;
+ hasMore = false;
+ }
+
+ searchSelections = new HashMap<Product, Boolean>();
+ }
+
+ private FullTextQuery searchQuery(String searchQuery) throws ParseException
+ {
+ Map<String,Float> boostPerField = new HashMap<String,Float>();
+ boostPerField.put("title", 4f);
+ boostPerField.put("description", 2f);
+ boostPerField.put("actors.name", 2f);
+ boostPerField.put("categories.name", 0.5f);
+
+ String[] productFields = {"title", "description", "actors.name", "categories.name"};
+
+ Analyzer defaultAnalyzer = ((FullTextEntityManager) em).getSearchFactory().getAnalyzer(Product.class);
+ QueryParser parser = createNewInstanceOfQueryParser(Version.LUCENE_30, productFields, defaultAnalyzer, boostPerField);
+
+ parser.setAllowLeadingWildcard(true);
+ org.apache.lucene.search.Query luceneQuery = parser.parse(searchQuery);
+ return ( (FullTextEntityManager) em ).createFullTextQuery(luceneQuery, Product.class);
+ }
+
+ @SuppressWarnings("finally")
+ private QueryParser createNewInstanceOfQueryParser(Object luceneVersion, String[] productFields, Analyzer defaultAnalyzer, Map<String, Float> boostPerField)
+ {
+ //Class.forName("org.apache.lucene.queryParser.MultiFieldQueryParser");
+ Class targetClass = MultiFieldQueryParser.class;
+
+ Constructor properConstructor = null;
+ if ( luceneVersion == null )
+ {
+ //older constructor - String[] productFields, Analyzer defaultAnalyzer, Map<String, Float> boostPerField
+ properConstructor = getProperConstructor(targetClass.getConstructors(), 3);
+ try
+ {
+ return (QueryParser) properConstructor.newInstance(productFields, defaultAnalyzer, boostPerField);
+ }
+ catch (IllegalArgumentException e)
+ {
+ return null;
+ }
+ catch (InstantiationException e)
+ {
+ return null;
+ }
+ catch (IllegalAccessException e)
+ {
+ return null;
+ }
+ catch (InvocationTargetException e)
+ {
+ return null;
+ }
+
+ }
+ else
+ {
+ //newer constructor - Version luceneVersion. String[] productFields, Analyzer defaultAnalyzer, Map<String, Float> boostPerField
+ properConstructor = getProperConstructor(targetClass.getConstructors(), 4);
+ try
+ {
+ return (QueryParser) properConstructor.newInstance(luceneVersion, productFields, defaultAnalyzer, boostPerField);
+ }
+ catch (IllegalArgumentException e)
+ {
+ return null;
+ }
+ catch (InstantiationException e)
+ {
+ return null;
+ }
+ catch (IllegalAccessException e)
+ {
+ return null;
+ }
+ catch (InvocationTargetException e)
+ {
+ return null;
+ }
+ }
+
+ }
+
+ private Constructor getProperConstructor(Constructor[] constructors, int properLength)
+ {
+ Constructor properConstructor = null;
+
+ for (int i = 0; i < constructors.length; i++ )
+ {
+ Constructor constructor = constructors[i];
+ Class[] parametersType = constructor.getParameterTypes();
+ if (parametersType.length == properLength)
+ {
+ // TODO: very weak condition, but for testing purpose
+ properConstructor = constructor;
+ return properConstructor;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * Add the selected DVD to the cart
+ */
+ public void addToCart()
+ {
+ cart.addProduct(dvd, 1);
+ }
+
+ /**
+ * Add many items to cart
+ */
+ public void addAllToCart()
+ {
+ for (Product item : searchResults) {
+ Boolean selected = searchSelections.get(item);
+ if (selected != null && selected) {
+ searchSelections.put(item, false);
+ cart.addProduct(item, 1);
+ }
+ }
+ }
+
+ public int getPageSize() {
+ return pageSize;
+ }
+
+ public void setPageSize(int pageSize) {
+ this.pageSize = pageSize;
+ }
+
+ public Long getSelectedId() {
+ return id;
+ }
+
+ public void setSelectedId(Long id) {
+ this.id = id;
+ }
+
+ @End
+ public void reset() { }
+
+ @Destroy
+ @Remove
+ public void destroy() { }
+}
Modified: branches/community/Seam_2_2/examples/dvdstore/readme.txt
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/readme.txt 2010-11-16 10:47:20 UTC (rev 13912)
+++ branches/community/Seam_2_2/examples/dvdstore/readme.txt 2010-11-16 10:48:55 UTC (rev 13913)
@@ -7,4 +7,8 @@
JBoss AS 4.2 needs additional hibernate libraries, use ant target jboss42 for deploying to it.
+JBoss AS 6 needs new hibernate search and hibernate-commons-annotations, and more source code enhancement due Hibernate Search and Lucene-Core
+API changes. Therefore use ant target jboss6 for deploying to JBoss AS 6 M5 and later. For instance:
+$ant jboss6 -Djboss6=yes
+
example.name=dvdstore
Modified: branches/community/Seam_2_2/examples/dvdstore/resources/META-INF/persistence.xml
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/resources/META-INF/persistence.xml 2010-11-16 10:47:20 UTC (rev 13912)
+++ branches/community/Seam_2_2/examples/dvdstore/resources/META-INF/persistence.xml 2010-11-16 10:48:55 UTC (rev 13913)
@@ -19,11 +19,11 @@
value="org.hibernate.search.store.FSDirectoryProvider"/>
<!-- directory where the indexes will be stored -->
<property name="hibernate.search.default.indexBase" value="./dvdindexes"/>
- <!-- Not needed with HA 3.3 -->
+ <!-- Not needed with HA 3.3
<property name="hibernate.ejb.event.post-insert" value="org.hibernate.search.event.FullTextIndexEventListener"/>
<property name="hibernate.ejb.event.post-update" value="org.hibernate.search.event.FullTextIndexEventListener"/>
<property name="hibernate.ejb.event.post-delete" value="org.hibernate.search.event.FullTextIndexEventListener"/>
-
+ -->
<property name="jboss.entity.manager.factory.jndi.name"
value="java:/dvdstoreEntityManagerFactory" />
</properties>
Modified: branches/community/Seam_2_2/examples/dvdstore/resources/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/resources/WEB-INF/pages.xml 2010-11-16 10:47:20 UTC (rev 13912)
+++ branches/community/Seam_2_2/examples/dvdstore/resources/WEB-INF/pages.xml 2010-11-16 10:48:55 UTC (rev 13913)
@@ -27,6 +27,10 @@
<rule if-outcome="accept">
<redirect view-id="/admin/accept.xhtml"/>
</rule>
+ <rule if-outcome="taskAssignedToActor">
+ <redirect view-id="/admin/admin.xhtml"/>
+ </rule>
+
</navigation>
</page>
14 years