Seam SVN: r10050 - in branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam: core and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-02-16 16:44:26 -0500 (Mon, 16 Feb 2009)
New Revision: 10050
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core-2.0.xsd
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Init.java
Log:
JBPAPP-1495
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Init.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Init.java 2009-02-16 20:16:22 UTC (rev 10049)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core/Init.java 2009-02-16 21:44:26 UTC (rev 10050)
@@ -49,7 +49,18 @@
private boolean debug;
private boolean myFacesLifecycleBug;
private boolean transactionManagementEnabled = true;
+ private boolean distributable = false;
+ public boolean isDistributable()
+ {
+ return distributable;
+ }
+
+ public void setDistributable(boolean distributable)
+ {
+ this.distributable = distributable;
+ }
+
private Map<String, List<ObserverMethod>> observerMethods = new HashMap<String, List<ObserverMethod>>();
private Map<String, List<ObserverMethodExpression>> observerMethodBindings = new HashMap<String, List<ObserverMethodExpression>>();
private Map<String, FactoryMethod> factories = new HashMap<String, FactoryMethod>();
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core-2.0.xsd
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core-2.0.xsd 2009-02-16 20:16:22 UTC (rev 10049)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/core-2.0.xsd 2009-02-16 21:44:26 UTC (rev 10050)
@@ -11,24 +11,32 @@
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.init">
- <xs:attribute name="debug">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
+ <xs:attribute name="debug">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true" />
+ <xs:enumeration value="false" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="distributable">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true" />
+ <xs:enumeration value="false" />
+ </xs:restriction>
+ </xs:simpleType>
</xs:attribute>
- <xs:attribute name="jndi-pattern"/>
- <xs:attribute name="transaction-management-enabled">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="true"/>
- <xs:enumeration value="false"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:attribute>
- <xs:attribute name="user-transaction-name"/>
+ <xs:attribute name="jndi-pattern" />
+ <xs:attribute name="transaction-management-enabled">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true" />
+ <xs:enumeration value="false" />
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="user-transaction-name" />
</xs:attributeGroup>
<xs:element name="manager">
15 years, 11 months
Seam SVN: r10049 - trunk/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-02-16 15:16:22 -0500 (Mon, 16 Feb 2009)
New Revision: 10049
Modified:
trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po
Log:
JBSEAM-3767: Italian translation of Seam guide
Modified: trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po
===================================================================
--- trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po 2009-02-16 18:38:12 UTC (rev 10048)
+++ trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po 2009-02-16 20:16:22 UTC (rev 10049)
@@ -6,7 +6,7 @@
"Project-Id-Version: seam 2_0\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-18 15:00+0000\n"
-"PO-Revision-Date: 2009-02-11 21:58+0100\n"
+"PO-Revision-Date: 2009-02-16 21:12+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -23,19 +23,19 @@
#: Getting_Started_With_JBoss_Tools.xml:7
#, no-c-format
msgid "JBoss Tools is a collection of Eclipse plugins. JBoss Tools a project creation wizard for Seam, Content Assist for the Unified Expression Language (EL) in both facelets and Java code, a graphical editor for jPDL, a graphical editor for Seam configuration files, support for running Seam integration tests from within Eclipse, and much more."
-msgstr ""
+msgstr "JBoss Tool è una collezione di plugin Eclipse. JBoss Tool è un wizard per la creazione di progetti Seam, Content Assist per Unified Expression Language (EL) sia in facelets e codice Java, un editor grafico per jPDL, un editor grafico per i file di configurazine di Seam, supporta l'esecuzione dei test di integrazione di Seam dall'interno di Eclipse, e molto altro."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:15
#, no-c-format
msgid "In short, if you are an Eclipse user, then you'll want JBoss Tools!"
-msgstr ""
+msgstr "In breve, se sei un utilizzatore di Eclipse, allora vorrai JBoss Tools!"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:19
#, no-c-format
msgid "JBoss Tools, as with seam-gen, works best with JBoss AS, but it's possible with a few tweaks to get your app running on other application servers. The changes are much like those described for seam-gen later in this reference manual."
-msgstr ""
+msgstr "JBoss Tools, come con seam-gen, funziona meglio con JBoss AS, ma è possibile con alcuni accorgimenti far girare l'applicazione in altri application server. I cambiamenti sono più o meno quelli descritti più avanti per seam-gen in questa guida."
#. Tag: title
#: Getting_Started_With_JBoss_Tools.xml:27
@@ -47,7 +47,7 @@
#: Getting_Started_With_JBoss_Tools.xml:29
#, no-c-format
msgid "Make sure you have JDK 5, JBoss AS 4.2, Eclipse 3.3, the JBoss Tools plugins (at least Seam Tools, the Visual Page Editor, jBPM Tools and JBoss AS Tools) and the TestNG plugin for Eclipse correctly installed before starting."
-msgstr ""
+msgstr "Assicurarsi di avere JDK 5, JBoss AS 4.2, Eclipse 3.3, i plugin di JBoss Tool (almeno Seam Tools, Visual Page Editor, jBPM Tools e JBoss AS Tools) ed il plugin TestNG per Eclipse correttamente installati prima di partire."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:36
@@ -83,55 +83,55 @@
#: Getting_Started_With_JBoss_Tools.xml:71
#, no-c-format
msgid "Now, we need to tell JBoss Tools about JBoss AS. This is a two stage process, first we need to define a runtime, make sure you select JBoss AS 4.2:"
-msgstr ""
+msgstr "Ora, occorre dire a JBoss Tools dell'esistenza di JBoss AS. Questo è un processo in due fasi, primo occorre definire un runtime, assicurarsi di selezionare JBoss AS 4.2:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:88
#, no-c-format
msgid "Enter a name for the runtime, and locate it on your hard drive:"
-msgstr ""
+msgstr "Inserire un nome per il runtime, e localizzarlo sul proprio hard disk:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:103
#, no-c-format
msgid "Next, we need to define a server JBoss Tools can deploy the project to. Make sure to again select JBoss AS 4.2, and also the runtime you just defined:"
-msgstr ""
+msgstr "Poi, occorre definire un server in cui JBoss Tools possa fare il deploy. Assicurarsi di selezionare ancora JBoss AS 4.2, ed anche il runtime appena definito:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:118
#, no-c-format
msgid "On the next screen give the server a name, and hit <emphasis>Finish</emphasis>:"
-msgstr ""
+msgstr "Alla successiva schermata si dia un nome al server e si prema <emphasis>Finish</emphasis>:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:134
#, no-c-format
msgid "Make sure the runtime and server you just created are selected, select <emphasis>Dynamic Web Project with Seam 2.0 (technology preview)</emphasis> and hit <emphasis>Next</emphasis>:"
-msgstr ""
+msgstr "Assicurarsi che siano selezionati il runtime ed il server appena creati, selezionare <emphasis>Dynamic Web Project with Seam 2.0 (technology preview)</emphasis> e premere <emphasis>Next</emphasis>:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:151
#, no-c-format
msgid "The next 3 screens allow you to further customize your new project, but for us the defaults are fine. So just hit <emphasis>Next</emphasis> until you reach the final screen."
-msgstr ""
+msgstr "Le prossime 3 schermate consentono di personalizzare ulteriormente il proprio progetto, ma per noi i valori di default vanno bene. Si prema <emphasis>Next</emphasis> fino ad arrivare alla schermata finale."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:157
#, no-c-format
msgid "The first step here is to tell JBoss Tools about the Seam download you want to use. <emphasis>Add</emphasis> a new <emphasis>Seam Runtime</emphasis> - make sure to give it a name, and select <emphasis>2.0</emphasis> as the version:"
-msgstr ""
+msgstr "Il primo passo è dire a JBoss Tools quale download di Seam si vuole usare. <emphasis>Aggiungere</emphasis> un nuovo <emphasis>Seam Runtime</emphasis> - assicurarsi di dare un nome, e selezionare <emphasis>2.0</emphasis> come versione:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:175
#, no-c-format
msgid "The most important choice you need to make is between EAR deployment and WAR deployment of your project. EAR projects support EJB 3.0 and require Java EE 5. WAR projects do not support EJB 3.0, but may be deployed to a J2EE environment. The packaging of a WAR is also simpler to understand. If you installed an EJB3-ready application server like JBoss, choose <emphasis>EAR</emphasis>. Otherwise, choose <emphasis>WAR</emphasis>. We'll assume that you've chosen a WAR deployment for the rest of the tutorial, but you can follow exactly the same steps for a EAR deployment."
-msgstr ""
+msgstr "La scelta più importante da fare è tra deploy EAR e deploy WAR del proprio progetto. I progetti EAR supportano EJB 3.0 e richiede Java EE 5. I progetti WAR non supportano EJB 3.0, ma possono essere deployati in ambiente J2EE. Anche l'impacchettamento di un WAR è semplice da capire. Se si è installato un application server pronto per EJB3 come JBoss, si scelga <emphasis>EAR</emphasis>. Altrimenti, si scelga <emphasis>WAR</emphasis>. Assumeremo per il resto del tutorial che si sia scelto il deploy WAR, ma si possono seguire gli stessi passi per un deploy EAR."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:187
#, no-c-format
msgid "Next, select your database type. We'll assume you have MySQL installed, with an existing schema. You'll need to tell JBoss Tools about the database, select <emphasis>MySQL</emphasis> as the database, and create a new connection profile. Select <emphasis>Generic JDBC Connection</emphasis>:"
-msgstr ""
+msgstr "Poi, si selezioni il tipo di database. Assumeremo di avere installato MySQL, con uno schema esistente. Occorrerà dire a JBoss Tools del database, selezionare <emphasis>MySQL</emphasis> come database, e creare un nuovo profilo di connessione. Selezionare <emphasis>Generic JDBC Connection</emphasis>:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:206
15 years, 11 months
Seam SVN: r10048 - in branches/enterprise/JBPAPP_4_3_FP01/build: embedded and 1 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-02-16 13:38:12 -0500 (Mon, 16 Feb 2009)
New Revision: 10048
Modified:
branches/enterprise/JBPAPP_4_3_FP01/build/build.properties
branches/enterprise/JBPAPP_4_3_FP01/build/common.build.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/build.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/hibernate-all.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded-all.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/hibernate-all.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded-all.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/thirdparty-all.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/embedded/thirdparty-all.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml
Log:
JBPAPP-1699
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/build.properties
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/build.properties 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/build.properties 2009-02-16 18:38:12 UTC (rev 10048)
@@ -1,7 +1,7 @@
-offline.repository.jboss.org /home/mnovotny/projects/jboss-maven-repo/maven2
-embedded.poms.dir /home/mnovotny/workspaces/jboss/jboss-seam-EAP-FP/build/embedded
+offline.repository.jboss.org /home/mnovotny/projects/jboss-maven-repo
+embedded.poms.dir /home/mnovotny/workspaces/jboss/jboss-seam-fp/build/embedded
#embedded.dir /home/mnovotny/tmp/export/EMBEDDED_JBOSS_BETA3_SP1/embedded
embedded.dir /home/mnovotny/workspaces/jbossembedded/EMBEDDED_JBOSS_BETA3/embedded
#embedded.jars.dir /Users/pmuir/tmp/embedded-jboss-beta3/lib
#embedded.dist.zip /Users/pmuir/Desktop/downloads/embedded-jboss-beta3.zip
-embedded.version beta3.SP4
\ No newline at end of file
+embedded.version beta3.SP5
\ No newline at end of file
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/common.build.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/common.build.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/common.build.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -23,7 +23,7 @@
<property name="maven.settings.xml" location="${build.dir}/settings.xml" />
- <property name="embedded.version" value="beta3.SP4" />
+ <property name="embedded.version" value="beta3.SP5" />
<import file="${build.dir}/utilities.build.xml" />
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/build.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/build.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/build.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -3,7 +3,7 @@
<property file="../build.properties" />
- <property name="seam.dir" value="${basedir}/../../" />
+ <property name="seam.dir" value="${basedir}/../.." />
<property name="build.dir" value="${seam.dir}/build" />
<property name="tmp.dir" value="${seam.dir}/classes" />
<property name="lib.dir" value="${seam.dir}/lib" />
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/hibernate-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/hibernate-all.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/hibernate-all.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>hibernate-all</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>The hibernate-all.jar distributed with JBoss Embedded. This contains Hibernate
for running in an EJB3 enviroment (Hibernate, Hibernate Annotations, Hibernate EntityManager, Hibernate Validator, Hibernate Commons Annotations)</description>
</project>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded-all.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded-all.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>jboss-embedded-all</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>The jboss-embedded-all.jar distributed with JBoss Embedded. This contains all depdencies
from JBoss AS that originate in JBoss. This jar has has the org.jboss.embedded packages split out.</description>
@@ -13,7 +13,7 @@
<dependency>
<groupId>org.jboss.embedded</groupId>
<artifactId>jboss-embedded</artifactId>
- <version>beta3.SP3</version>
+ <version>beta3.SP5</version>
<exclusions>
<exclusion></exclusion>
</exclusions>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/jboss-embedded.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>jboss-embedded</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>This jar has the org.jboss.embedded packages split out from jboss-embedded-all.</description>
<dependencies>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/hibernate-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/hibernate-all.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/hibernate-all.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>hibernate-all</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>The hibernate-all.jar distributed with JBoss Embedded. This contains Hibernate
for running in an EJB3 enviroment (Hibernate, Hibernate Annotations, Hibernate EntityManager, Hibernate Validator, Hibernate Commons Annotations) and Hibernate Search (specific to this seam version of hibernate-all)</description>
</project>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded-all.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded-all.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>jboss-embedded-all</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>The jboss-embedded-all.jar distributed with JBoss Embedded. This contains all depdencies
from JBoss AS that originate in JBoss. This jar has has the org.jboss.embedded packages split out.</description>
@@ -13,7 +13,7 @@
<dependency>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>jboss-embedded-api</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<exclusions>
<exclusion></exclusion>
</exclusions>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/jboss-embedded.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>jboss-embedded-api</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>This jar has the org.jboss.embedded packages split out from jboss-embedded-all. This Seam specific version simply keeps the old jboss-embedded-api name for tooling compatibility</description>
<dependencies>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/thirdparty-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/thirdparty-all.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/shaded/thirdparty-all.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>thirdparty-all</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>The thirdparty-all.jar distributed with JBoss Embedded. This contains thirdparty
dependencies distributed with JBoss AS. This Seam version also includes lucene, a dependency
of hibernate search</description>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/embedded/thirdparty-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/embedded/thirdparty-all.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/embedded/thirdparty-all.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>thirdparty-all</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
<description>The thirdparty-all.jar distributed with JBoss Embedded. This contains thirdparty
dependencies distributed with JBoss AS.</description>
</project>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml 2009-02-16 10:03:42 UTC (rev 10047)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml 2009-02-16 18:38:12 UTC (rev 10048)
@@ -683,7 +683,7 @@
<dependency>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>jboss-embedded-api</artifactId>
- <version>beta3.SP4</version>
+ <version>beta3.SP5</version>
</dependency>
<dependency>
15 years, 11 months
Seam SVN: r10047 - in trunk: src/resteasy/org/jboss/seam/resteasy and 1 other directory.
by seam-commits@lists.jboss.org
Author: jharting
Date: 2009-02-16 05:03:42 -0500 (Mon, 16 Feb 2009)
New Revision: 10047
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Webservices.xml
trunk/src/resteasy/org/jboss/seam/resteasy/reasteasy-2.1.xsd
Log:
JBSEAM-3449 ApplicationConfig changed to Application (following JAX-RS)
Modified: trunk/doc/Seam_Reference_Guide/en-US/Webservices.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Webservices.xml 2009-02-15 04:59:20 UTC (rev 10046)
+++ trunk/doc/Seam_Reference_Guide/en-US/Webservices.xml 2009-02-16 10:03:42 UTC (rev 10047)
@@ -306,7 +306,7 @@
You can then change the <literal>/rest</literal> prefix as mentioned earlier:
</para>
- <programlisting role="XML"><![CDATA[<resteasy:application-config resource-path-prefix="/restv1"/>]]></programlisting>
+ <programlisting role="XML"><![CDATA[<resteasy:application resource-path-prefix="/restv1"/>]]></programlisting>
<para>
The full base path to your resources is now <literal>/seam/resource/restv1/{resource}</literal> - note
@@ -318,7 +318,7 @@
You can disable stripping of the base path if you'd like to map the full path in your resources:
</para>
- <programlisting role="XML"><![CDATA[<resteasy:application-config strip-seam-resource-path="false"/>]]></programlisting>
+ <programlisting role="XML"><![CDATA[<resteasy:application strip-seam-resource-path="false"/>]]></programlisting>
<para>
The path of a resource is now mapped with e.g.
@@ -332,7 +332,7 @@
classes manually:
</para>
- <programlisting role="XML"><![CDATA[<resteasy:application-config
+ <programlisting role="XML"><![CDATA[<resteasy:application
scan-providers="false"
scan-resources="false"
use-builtin-providers="true">
@@ -346,7 +346,7 @@
<value>org.foo.MyFancyProvider</value>
</resteasy:provider-class-names>
- </resteasy:application-config>]]></programlisting>
+ </resteasy:application>]]></programlisting>
<para>
The <literal>use-built-in-providers</literal> switch enables (default) or disables the RESTEasy built-in
@@ -358,7 +358,7 @@
Finally, you can configure media type and language URI extensions:
</para>
- <programlisting role="XML"><![CDATA[<resteasy:application-config>
+ <programlisting role="XML"><![CDATA[<resteasy:application>
<resteasy:media-type-mappings>
<key>txt</key><value>text/plain</value>
@@ -368,7 +368,7 @@
<key>deutsch</key><value>de-DE</value>
</resteasy:language-mappings>
-</resteasy:application-config>]]></programlisting>
+</resteasy:application>]]></programlisting>
<para>
This definition would map the URI suffix of <literal>.txt.deutsch</literal> to
Modified: trunk/src/resteasy/org/jboss/seam/resteasy/reasteasy-2.1.xsd
===================================================================
--- trunk/src/resteasy/org/jboss/seam/resteasy/reasteasy-2.1.xsd 2009-02-15 04:59:20 UTC (rev 10046)
+++ trunk/src/resteasy/org/jboss/seam/resteasy/reasteasy-2.1.xsd 2009-02-16 10:03:42 UTC (rev 10047)
@@ -3,12 +3,12 @@
targetNamespace="http://jboss.com/products/seam/resteasy" xmlns:resteasy="http://jboss.com/products/seam/resteasy"
xmlns:components="http://jboss.com/products/seam/components" attributeFormDefault="unqualified">
- <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="components-2.1.xsd"/>
+ <xs:import namespace="http://jboss.com/products/seam/components" schemaLocation="http://jboss.com/products/seam/components-2.1.xsd"/>
- <xs:element name="application-config">
+ <xs:element name="application">
<xs:annotation>
<xs:documentation>
- An implementation of JAX-RS ApplicationConfig with additional properties for RESTEasy.
+ An implementation of JAX-RS Application with additional properties for RESTEasy.
</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
@@ -47,11 +47,11 @@
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="components:attlist.component"/>
- <xs:attributeGroup ref="pdf:attlist.application-config"/>
+ <xs:attributeGroup ref="resteasy:attlist.application"/>
</xs:complexType>
</xs:element>
- <xs:attributeGroup name="attlist.application-config">
+ <xs:attributeGroup name="attlist.application">
<xs:attribute name="scan-providers" type="components:boolean">
<xs:annotation>
<xs:documentation>
15 years, 11 months
Seam SVN: r10046 - in trunk/examples/wiki/src: main/org/jboss/seam/wiki/core/search and 1 other directory.
by seam-commits@lists.jboss.org
Author: christian.bauer(a)jboss.com
Date: 2009-02-14 23:59:20 -0500 (Sat, 14 Feb 2009)
New Revision: 10046
Modified:
trunk/examples/wiki/src/etc/META-INF/persistence-prod-war.xml
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/search/IndexManager.java
Log:
Wiki manual indexing performance improvements
Modified: trunk/examples/wiki/src/etc/META-INF/persistence-prod-war.xml
===================================================================
--- trunk/examples/wiki/src/etc/META-INF/persistence-prod-war.xml 2009-02-15 03:54:51 UTC (rev 10045)
+++ trunk/examples/wiki/src/etc/META-INF/persistence-prod-war.xml 2009-02-15 04:59:20 UTC (rev 10046)
@@ -22,7 +22,7 @@
<property name="hibernate.search.default.directory_provider"
value="org.hibernate.search.store.FSDirectoryProvider"/>
<property name="hibernate.search.default.indexBase" value="lacewikiIndex"/>
- <property name="hibernate.search.worker.batch_size" value="50"/>
+ <property name="hibernate.search.worker.batch_size" value="500"/>
<!-- Run the Hibernate bytecode instrumentation at deployment time, for lazy loading of @ToOne and byte[] properties -->
<!-- TODO: That doesn't work for me, using the enhancer in build.xml manually -->
Modified: trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/search/IndexManager.java
===================================================================
--- trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/search/IndexManager.java 2009-02-15 03:54:51 UTC (rev 10045)
+++ trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/search/IndexManager.java 2009-02-15 04:59:20 UTC (rev 10046)
@@ -11,6 +11,7 @@
import org.jboss.seam.annotations.async.Asynchronous;
import org.jboss.seam.log.Log;
import org.jboss.seam.wiki.util.Progress;
+import org.jboss.seam.wiki.core.model.WikiNode;
import javax.persistence.EntityManager;
import javax.transaction.UserTransaction;
@@ -28,7 +29,7 @@
static Log log;
// TODO: Read the Hibernate Seach configuration option instead, when it becomes available as an API
- public int batchSize = 50;
+ public int batchSize = 500;
/**
* Runs asynchronously and re-indexes the given entity class after purging the index.
@@ -38,6 +39,7 @@
*/
@Asynchronous
public void rebuildIndex(Class entityClass, Progress progress) {
+
log.info("asynchronously rebuilding Lucene index for entity: " + entityClass);
UserTransaction userTx = null;
@@ -73,10 +75,17 @@
em = (EntityManager) Component.getInstance("entityManager");
ftSession = (FullTextSession)em.getDelegate();
- userTx.begin();
+ // TODO: Let's run this in auto-commit mode, assuming we have READ COMMITTED isolation anyway and non-repeatable reads
+ //userTx.setTransactionTimeout(3600);
+ //userTx.begin();
// Use HQL instead of Criteria to eager fetch lazy properties
- ScrollableResults cursor = ftSession.createQuery("select o from " + entityClass.getName() + " o fetch all properties").scroll();
+ String query = "select o from " + entityClass.getName() + " o fetch all properties";
+ if (WikiNode.class.isAssignableFrom(entityClass)) {
+ // If it's a WikiNode, fetch the associated User instances, avoiding N+1 selects
+ query = "select o from " + entityClass.getName() + " o inner join fetch o.createdBy left join fetch o.lastModifiedBy fetch all properties";
+ }
+ ScrollableResults cursor = ftSession.createQuery(query).scroll();
cursor.last();
int count = cursor.getRowNumber() + 1;
@@ -104,17 +113,19 @@
}
}
cursor.close();
- userTx.commit();
+ //userTx.commit();
progress.setStatus(Progress.COMPLETE);
log.debug("indexing complete of entity class: " + entityClass);
} catch (Exception ex) {
+ /*
try {
if (userTx != null) userTx.rollback();
} catch (Exception rbEx) {
rbEx.printStackTrace();
}
+ */
throw new RuntimeException(ex);
}
15 years, 11 months
Seam SVN: r10045 - trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum.
by seam-commits@lists.jboss.org
Author: christian.bauer(a)jboss.com
Date: 2009-02-14 22:54:51 -0500 (Sat, 14 Feb 2009)
New Revision: 10045
Modified:
trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumDAO.java
trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumQueries.hbm.xml
trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/TopicInfo.java
Log:
Minor forum query performance optimizations
Modified: trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumDAO.java
===================================================================
--- trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumDAO.java 2009-02-15 03:54:15 UTC (rev 10044)
+++ trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumDAO.java 2009-02-15 03:54:51 UTC (rev 10045)
@@ -5,6 +5,7 @@
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.wiki.core.model.*;
+import org.jboss.seam.wiki.core.dao.WikiNodeDAO;
import org.jboss.seam.ScopeType;
import org.hibernate.Session;
import org.hibernate.transform.ResultTransformer;
@@ -24,6 +25,9 @@
EntityManager restrictedEntityManager;
@In
+ WikiNodeDAO wikiNodeDAO;
+
+ @In
Integer currentAccessLevel;
public List<WikiMenuItem> findForumsMenuItems(WikiDirectory forumsDirectory) {
@@ -103,27 +107,26 @@
)
.list();
- // Append last topic WikiDocument
- getSession(true).getNamedQuery("forumLastTopic")
- .setParameter("parentDir", forumsDirectory)
+ // Append last topic WikiDocument (faster if we do it with a MySQL specific LIMIT subselect)
+ List<Object[]> forumsAndLastTopics = getSession(true).getNamedQuery("forumLastTopic")
+ .setParameter("parentDirId", forumsDirectory.getId())
+ .setParameter("readAccessLevel", currentAccessLevel)
.setComment("Finding last topics for all forums")
- .setResultTransformer(
- new ResultTransformer() {
- public Object transformTuple(Object[] result, String[] strings) {
- if (forumInfoMap.containsKey((Long)result[0]))
- forumInfoMap.get( (Long)result[0] ).setLastTopic( (WikiDocument)result[1] );
- return null;
- }
- public List transformList(List list) { return list; }
- }
- )
+ .setCacheable(true)
.list();
+ for (Object[] lastTopicRow : forumsAndLastTopics) {
+ if (forumInfoMap.containsKey((Long)lastTopicRow[0])) {
+ WikiDocument lastTopic = wikiNodeDAO.findWikiDocument( (Long)lastTopicRow[1] );
+ forumInfoMap.get( (Long)lastTopicRow[0] ).setLastTopic( lastTopic );
+ }
+ }
// Append last reply WikiComment
getSession(true).getNamedQuery("forumLastReply")
.setParameter("parentDirId", forumsDirectory.getId())
.setParameter("readAccessLevel", currentAccessLevel)
.setComment("Finding last replies for all forums")
+ .setCacheable(true)
.setResultTransformer(
new ResultTransformer() {
public Object transformTuple(Object[] result, String[] strings) {
@@ -196,32 +199,58 @@
}
public Map<Long, TopicInfo> findTopics(WikiDirectory forum, long firstResult, long maxResults) {
+
+ // Limited list of topics, first retrieve identifiers only (faster on ORDER BY/LIMIT) then
+ // batch select the topic instances, then batch select the reply instances, we collect all
+ // of this stuff in this map:
final Map<Long, TopicInfo> topicInfoMap = new LinkedHashMap<Long, TopicInfo>();
- getSession(true).getNamedQuery("forumTopics")
+ // Retrieve topic identifier, sticky? and hasReplies? data
+ getSession(true).getNamedQuery("forumTopicsList")
.setParameter("parentNodeId", forum.getId())
.setParameter("readAccessLevel", currentAccessLevel)
- .setComment("Retrieving forum topics")
+ .setComment("Retrieving forum topics list")
.setFirstResult(new Long(firstResult).intValue())
.setMaxResults(new Long(maxResults).intValue())
.setResultTransformer(
- new ResultTransformer() {
- public Object transformTuple(Object[] result, String[] strings) {
- topicInfoMap.put(
- ((WikiDocument)result[0]).getId(),
- new TopicInfo( (WikiDocument)result[0], (Integer)result[1], (Boolean)result[2])
- );
- return null;
+ new ResultTransformer() {
+ public Object transformTuple(Object[] result, String[] strings) {
+ Long topicId = (Long) result[0];
+ Integer sticky = (Integer)result[1];
+ Boolean hasReplies = (Boolean)result[2];
+ topicInfoMap.put(topicId, new TopicInfo(sticky, hasReplies));
+ return null;
+ }
+ public List transformList(List list) { return list; }
}
- public List transformList(List list) { return list; }
- }
)
.list();
+ if (topicInfoMap.keySet().size() == 0) return topicInfoMap; // Early exist possible
+
+ // Retrieve the topic entity instances and shove them into the map
+ getSession(true).getNamedQuery("forumTopics")
+ .setParameterList("topicIds", topicInfoMap.keySet())
+ .setComment("Retrieving forum topic list instances")
+ .setResultTransformer(
+ new ResultTransformer() {
+ public Object transformTuple(Object[] result, String[] strings) {
+ WikiDocument topicInstance = (WikiDocument)result[0];
+ topicInfoMap.get(topicInstance.getId()).setTopic(topicInstance);
+ return null;
+ }
+ public List transformList(List list) { return list; }
+ }
+ )
+ .list();
+
+
+ // Figure out which and if we even should query the reply instances
List<Long> topicIdsWithReplies = new ArrayList<Long>();
for (Map.Entry<Long, TopicInfo> entry : topicInfoMap.entrySet()) {
if (entry.getValue().isReplies()) topicIdsWithReplies.add(entry.getKey());
}
+
if (topicIdsWithReplies.size() == 0) return topicInfoMap; // Early exit possible
getSession(true).getNamedQuery("forumTopicsReplies")
Modified: trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumQueries.hbm.xml
===================================================================
--- trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumQueries.hbm.xml 2009-02-15 03:54:15 UTC (rev 10044)
+++ trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/ForumQueries.hbm.xml 2009-02-15 03:54:51 UTC (rev 10045)
@@ -3,6 +3,13 @@
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<!--
+ Most of these queries are optimized for best execution plan and execution time. In some cases it might
+ not be obvious why a query is structured as it is, but that's the secret of MySQL tuning-by-accident!
+ Some queries are slow for no reason and can not be further optimized - MySQL is a bad DBMS that struggles
+ with a few nested joins on indexed columns only.
+-->
+
<hibernate-mapping>
<query name="forumsCount">
@@ -68,24 +75,34 @@
group by dir0.NODE_ID
</sql-query>
- <!-- TODO: This is based on the idea that the last topic is "one in a second", we should use a subselect with limit 1 order by -->
- <query name="forumLastTopic">
+ <sql-query name="forumLastTopic">
+ <return-scalar column="FORUM_ID" type="long"/>
+ <return-scalar column="LAST_TOPIC_ID" type="long"/>
select
- f.id, t
+ dir0.NODE_ID as FORUM_ID, doc0.NODE_ID as LAST_TOPIC_ID
from
- WikiDirectory f, WikiDocument t left join fetch t.parent
- where
- f.parent = :parentDir
- and t.parent = f
- and (t.headerMacrosString like '%forumPosting%' or t.headerMacrosString like '%forumStickyPosting%')
- and t.createdOn = (select max(t2.createdOn) from WikiDocument t2 where t2 = t)
- </query>
+ WIKI_DIRECTORY dir0
+ inner join WIKI_NODE dir1 on dir0.NODE_ID=dir1.NODE_ID and dir1.READ_ACCESS_LEVEL <= :readAccessLevel and dir1.PARENT_NODE_ID = :parentDirId
+ inner join WIKI_NODE doc0 on doc0.NODE_ID =
+ (
+ select
+ dlast0.NODE_ID
+ from
+ WIKI_NODE dlast0
+ inner join WIKI_DOCUMENT dlast1 on dlast0.NODE_ID = dlast1.NODE_ID
+ and (dlast1.HEADER_MACROS like '%forumPosting%' or dlast1.HEADER_MACROS like '%forumStickyPosting%')
+ where
+ dlast0.PARENT_NODE_ID = dir0.NODE_ID and dlast0.READ_ACCESS_LEVEL <= :readAccessLevel
+ order by dlast0.CREATED_ON desc limit 1
+ )
+ group by dir0.NODE_ID
+ </sql-query>
<sql-query name="forumLastReply">
<return-scalar column="FORUM_ID" type="long"/>
<return class="org.jboss.seam.wiki.core.model.WikiComment"/>
select
- dir1.NODE_ID as FORUM_ID,
+ dir0.NODE_ID as FORUM_ID,
c1.NODE_ID as NODE_ID,
c1.OBJ_VERSION as OBJ_VERSION,
@@ -112,30 +129,29 @@
c0.NS_RIGHT as NS_RIGHT,
c0.NS_THREAD as NS_THREAD
from
- WIKI_DIRECTORY dir0
- inner join WIKI_NODE dir1
- on dir0.NODE_ID = dir1.NODE_ID
- and dir1.PARENT_NODE_ID = :parentDirId
- and dir1.READ_ACCESS_LEVEL <= :readAccessLevel,
- WIKI_COMMENT c0
- inner join WIKI_NODE c1 on c0.NODE_ID = c1.NODE_ID
+ WIKI_NODE dir0,
+ WIKI_NODE c1 inner join WIKI_COMMENT c0 on c1.NODE_ID = c0.NODE_ID
where
- c0.NODE_ID = (
- select ct3.NODE_ID
- from WIKI_COMMENT ct
- inner join WIKI_NODE ct1 on ct.NODE_ID = ct1.NODE_ID
- inner join WIKI_COMMENT ct2 on ct2.NS_THREAD in (ct.NS_THREAD)
- inner join WIKI_NODE ct3 on ct2.NODE_ID = ct3.NODE_ID,
- WIKI_NODE doc0 inner join WIKI_DOCUMENT doc1
- on doc0.NODE_ID = doc1.NODE_ID
- and (doc1.HEADER_MACROS like '%forumPosting%' or doc1.HEADER_MACROS like '%forumStickyPosting%')
+ dir0.PARENT_NODE_ID = :parentDirId
+ and
+ dir0.READ_ACCESS_LEVEL <= :readAccessLevel
+ and
+ c1.CREATED_ON = (
+ select max(ct3.CREATED_ON)
+ from
+ WIKI_NODE doc0
+ inner join WIKI_DOCUMENT doc1 on doc0.NODE_ID = doc1.NODE_ID
+ and (doc1.HEADER_MACROS like '%forumPosting%' or doc1.HEADER_MACROS like '%forumStickyPosting%')
+ inner join WIKI_NODE ct0 on doc1.NODE_ID = ct0.PARENT_NODE_ID
+ inner join WIKI_COMMENT ct1 on ct0.NODE_ID = ct1.NODE_ID
+ inner join WIKI_COMMENT ct2 on ct2.NS_THREAD in (ct1.NS_THREAD)
+ inner join WIKI_NODE ct3 on ct2.NODE_ID = ct3.NODE_ID
where
doc0.PARENT_NODE_ID= dir0.NODE_ID
- and doc0.READ_ACCESS_LEVEL <= :readAccessLevel
- and ct1.PARENT_NODE_ID = doc0.NODE_ID
- order by ct3.CREATED_ON desc
- limit 1
+ and
+ doc0.READ_ACCESS_LEVEL <= :readAccessLevel
)
+
</sql-query>
<query name="forumUnreadTopics"><![CDATA[
@@ -217,64 +233,78 @@
and (t.headerMacrosString like '%forumPosting%' or t.headerMacrosString like '%forumStickyPosting%')
</query>
- <!-- TODO: We could optimize this a little if we'd also retrieve the CREATED_BY_USER_ID guy but
- we'll hit the 2nd level cache anyway or we load them in batches... -->
- <sql-query name="forumTopics">
- <return class="org.jboss.seam.wiki.core.model.WikiDocument"/>
+ <sql-query name="forumTopicsList">
+ <return-scalar column="NODE_ID" type="long"/>
<return-scalar column="STICKY" type="integer"/>
<return-scalar column="HAS_REPLIES" type="boolean"/>
<return-scalar column="LAST_POST" type="timestamp"/>
<![CDATA[
select distinct
- doc2.NODE_ID as NODE_ID,
- doc2.OBJ_VERSION as OBJ_VERSION,
- doc2.RATING as RATING,
- doc2.AREA_NR as AREA_NR,
- doc2.NAME as NAME,
- doc2.WIKINAME as WIKINAME,
- doc2.MESSAGE_ID as MESSAGE_ID,
- doc2.CREATED_ON as CREATED_ON,
- doc2.CREATED_BY_USER_ID as CREATED_BY_USER_ID,
- doc2.LAST_MODIFIED_ON as LAST_MODIFIED_ON,
- doc2.LAST_MODIFIED_BY_USER_ID as LAST_MODIFIED_BY_USER_ID,
- doc2.WRITE_ACCESS_LEVEL as WRITE_ACCESS_LEVEL,
- doc2.READ_ACCESS_LEVEL as READ_ACCESS_LEVEL,
- doc2.WRITE_PROTECTED as WRITE_PROTECTED,
- doc2.PARENT_NODE_ID as PARENT_NODE_ID,
-
- doc1.FILE_REVISION as FILE_REVISION,
-
- doc0.NAME_AS_TITLE as NAME_AS_TITLE,
- doc0.ENABLE_COMMENTS as ENABLE_COMMENTS,
- doc0.ENABLE_COMMENT_FORM as ENABLE_COMMENT_FORM,
- doc0.ENABLE_COMMENTS_ON_FEEDS as ENABLE_COMMENTS_ON_FEEDS,
- doc0.HEADER as HEADER,
- doc0.HEADER_MACROS as HEADER_MACROS,
- doc0.CONTENT_MACROS as CONTENT_MACROS,
- doc0.FOOTER as FOOTER,
- doc0.FOOTER_MACROS as FOOTER_MACROS,
-
- case when (doc0.HEADER_MACROS like '%forumStickyPosting%') then 1 else 0 end as STICKY,
+ d0.NODE_ID as NODE_ID,
+ case when (d2.HEADER_MACROS like '%forumStickyPosting%') then 1 else 0 end as STICKY,
case when c0.CREATED_ON is null then false else true end as HAS_REPLIES,
- case when c0.CREATED_ON is null then doc2.CREATED_ON else c0.CREATED_ON end as LAST_POST
-
+ case when c0.CREATED_ON is null then d0.CREATED_ON else c0.CREATED_ON end as LAST_POST
from
- WIKI_DOCUMENT doc0 inner join WIKI_FILE doc1 on doc0.NODE_ID=doc1.NODE_ID inner join WIKI_NODE doc2 on doc0.NODE_ID=doc2.NODE_ID
- left outer join WIKI_NODE c0
- on c0.NODE_ID = (
- select ct3.NODE_ID from WIKI_COMMENT ct
+ WIKI_NODE d0
+ inner join WIKI_DOCUMENT d2 on d0.NODE_ID = d2.NODE_ID and (d2.HEADER_MACROS like '%forumPosting%' or d2.HEADER_MACROS like '%forumStickyPosting%')
+ left outer join WIKI_NODE c0
+ on c0.CREATED_ON = (
+ select max(ct3.CREATED_ON) from WIKI_COMMENT ct
inner join WIKI_NODE ct1 on ct.NODE_ID = ct1.NODE_ID
inner join WIKI_COMMENT ct2 on ct2.NS_THREAD in (ct.NS_THREAD)
inner join WIKI_NODE ct3 on ct2.NODE_ID = ct3.NODE_ID
- where ct1.PARENT_NODE_ID = doc0.NODE_ID order by ct3.CREATED_ON desc
- limit 1
+ where ct1.PARENT_NODE_ID = d2.NODE_ID
)
where
- doc2.PARENT_NODE_ID = :parentNodeId
- and doc2.READ_ACCESS_LEVEL <= :readAccessLevel
- and (doc0.HEADER_MACROS like '%forumPosting%' or doc0.HEADER_MACROS like '%forumStickyPosting%')
+ d0.READ_ACCESS_LEVEL <= :readAccessLevel and d0.PARENT_NODE_ID = :parentNodeId
order
by STICKY desc, LAST_POST desc
+ ]]>
+ </sql-query>
+
+ <sql-query name="forumTopics">
+ <return alias="d" class="org.jboss.seam.wiki.core.model.WikiDocument"/>
+ <return-join alias="u" property="d.createdBy"/>
+ <![CDATA[
+ select
+ d0.NODE_ID as NODE_ID,
+ d0.OBJ_VERSION as OBJ_VERSION,
+ d0.RATING as RATING,
+ d0.AREA_NR as AREA_NR,
+ d0.NAME as NAME,
+ d0.WIKINAME as WIKINAME,
+ d0.MESSAGE_ID as MESSAGE_ID,
+ d0.CREATED_ON as CREATED_ON,
+ d0.CREATED_BY_USER_ID as CREATED_BY_USER_ID,
+ d0.LAST_MODIFIED_ON as LAST_MODIFIED_ON,
+ d0.LAST_MODIFIED_BY_USER_ID as LAST_MODIFIED_BY_USER_ID,
+ d0.WRITE_ACCESS_LEVEL as WRITE_ACCESS_LEVEL,
+ d0.READ_ACCESS_LEVEL as READ_ACCESS_LEVEL,
+ d0.WRITE_PROTECTED as WRITE_PROTECTED,
+ d0.PARENT_NODE_ID as PARENT_NODE_ID,
+
+ d1.FILE_REVISION as FILE_REVISION,
+
+ d2.NAME_AS_TITLE as NAME_AS_TITLE,
+ d2.ENABLE_COMMENTS as ENABLE_COMMENTS,
+ d2.ENABLE_COMMENT_FORM as ENABLE_COMMENT_FORM,
+ d2.ENABLE_COMMENTS_ON_FEEDS as ENABLE_COMMENTS_ON_FEEDS,
+ d2.HEADER as HEADER,
+ d2.HEADER_MACROS as HEADER_MACROS,
+ d2.CONTENT_MACROS as CONTENT_MACROS,
+ d2.FOOTER as FOOTER,
+ d2.FOOTER_MACROS as FOOTER_MACROS,
+
+ u.USER_ID, u.ACTIVATED, u.ACTIVATION_CODE, u.CREATED_ON, u.EMAIL, u.FIRSTNAME, u.LAST_LOGIN_ON,
+ u.LASTNAME, u.MEMBER_HOME_WIKI_DIRECTORY_ID, u.PASSWORDHASH, u.USER_PROFILE_ID, u.USERNAME, u.OBJ_VERSION
+
+ from
+ WIKI_NODE d0
+ inner join USERS u on d0.CREATED_BY_USER_ID = u.USER_ID
+ inner join WIKI_FILE d1 on d0.NODE_ID=d1.NODE_ID
+ inner join WIKI_DOCUMENT d2 on d1.NODE_ID=d2.NODE_ID
+ where
+ d0.NODE_ID in (:topicIds)
]]></sql-query>
<sql-query name="forumTopicsReplies">
Modified: trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/TopicInfo.java
===================================================================
--- trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/TopicInfo.java 2009-02-15 03:54:15 UTC (rev 10044)
+++ trunk/examples/wiki/src/plugin/org/jboss/seam/wiki/plugin/forum/TopicInfo.java 2009-02-15 03:54:51 UTC (rev 10045)
@@ -12,12 +12,15 @@
private long numOfReplies;
private WikiComment lastComment;
- public TopicInfo(WikiDocument topic, Integer sticky, Boolean replies) {
- this.topic = topic;
+ public TopicInfo(Integer sticky, boolean replies) {
this.sticky = sticky != 0;
this.replies = replies;
}
+ public void setTopic(WikiDocument topic) {
+ this.topic = topic;
+ }
+
public WikiDocument getTopic() {
return topic;
}
15 years, 11 months
Seam SVN: r10044 - trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/plugin.
by seam-commits@lists.jboss.org
Author: christian.bauer(a)jboss.com
Date: 2009-02-14 22:54:15 -0500 (Sat, 14 Feb 2009)
New Revision: 10044
Modified:
trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/plugin/WikiPluginMacro.java
Log:
Fixed wiki macro cache key issue
Modified: trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/plugin/WikiPluginMacro.java
===================================================================
--- trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/plugin/WikiPluginMacro.java 2009-02-13 22:04:00 UTC (rev 10043)
+++ trunk/examples/wiki/src/main/org/jboss/seam/wiki/core/plugin/WikiPluginMacro.java 2009-02-15 03:54:15 UTC (rev 10044)
@@ -150,7 +150,7 @@
Cache keys for macros are unique hashes:
- unique in all wiki areas: the id of the current document
- - unique in a particular document: the hashcode of the macro, which includes its name and position in the document
+ - unique in a particular document: the name and position of the macro in the document
- unique with changing macro parameters: the hashcode of any macro parameters
- unique for a particular user access level: the current users access level
- unique considering the hashCode() of any additional objects passed to the method
@@ -171,12 +171,17 @@
log.debug("generating cache key for document: " + currentDocument + " and macro: " + this + " and access level: " + accessLevel);
StringBuilder builder = new StringBuilder();
+
if (log.isDebugEnabled()) log.debug("including id of document: " + currentDocument.getId());
builder.append( currentDocument.getId() );
- if (log.isDebugEnabled()) log.debug("including hashCode of this macro: " + Math.abs(hashCode()));
- builder.append( Math.abs(hashCode()) );
+
+ int namePositionHash = (getName() + "_" + getPosition()).hashCode();
+ if (log.isDebugEnabled()) log.debug("including name/position of this macro: " + Math.abs(namePositionHash));
+ builder.append( Math.abs(namePositionHash) );
+
if (log.isDebugEnabled()) log.debug("including hashCode of macro params: " + Math.abs(getParams().hashCode()));
builder.append( Math.abs(getParams().hashCode()) );
+
if (log.isDebugEnabled()) log.debug("including accessLevel: " + accessLevel);
builder.append( accessLevel );
15 years, 11 months
Seam SVN: r10043 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-02-13 17:04:00 -0500 (Fri, 13 Feb 2009)
New Revision: 10043
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Events.xml
Log:
JBSEAM-3937
Modified: trunk/doc/Seam_Reference_Guide/en-US/Events.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Events.xml 2009-02-13 20:33:26 UTC (rev 10042)
+++ trunk/doc/Seam_Reference_Guide/en-US/Events.xml 2009-02-13 22:04:00 UTC (rev 10043)
@@ -751,17 +751,20 @@
<listitem><para><literal>org.jboss.seam.afterPhase </literal> — called after the end of a JSF phase</para></listitem>
<listitem><para><literal>org.jboss.seam.postInitialization </literal> — called when Seam has initialized and started up all components</para></listitem>
<listitem><para><literal>org.jboss.seam.postReInitialization </literal> — called when Seam has re-initialized and started up all components after a redeploy</para></listitem>
- <listitem><para><literal>org.jboss.seam.postAuthenticate.<name> </literal> — called after a user is authenticated</para></listitem>
- <listitem><para><literal>org.jboss.seam.preAuthenticate.<name> </literal> — called before attempting to authenticate a user</para></listitem>
- <listitem><para><literal>org.jboss.seam.notLoggedIn</literal> — called there is no authenticated user and authentication is required</para></listitem>
- <listitem><para><literal>org.jboss.seam.rememberMe</literal> — occurs when Seam security detects the username in a cookie</para></listitem>
<listitem><para><literal>org.jboss.seam.exceptionHandled.<type></literal> — called when an uncaught exception is handled by Seam</para></listitem>
<listitem><para><literal>org.jboss.seam.exceptionHandled</literal> — called when an uncaught exception is handled by Seam</para></listitem>
<listitem><para><literal>org.jboss.seam.exceptionNotHandled</literal> — called when there was no handler for an uncaught exception</para></listitem>
<listitem><para><literal>org.jboss.seam.afterTransactionSuccess</literal> — called when a transaction succeeds in the Seam Application Framework</para></listitem>
<listitem><para><literal>org.jboss.seam.afterTransactionSuccess.<name></literal> — called when a transaction succeeds in the Seam Application Framework which manages an entity called <literal><name></literal></para></listitem>
+ <listitem><para><literal>org.jboss.seam.security.loggedOut</literal> — called when a user logs out</para></listitem>
+ <listitem><para><literal>org.jboss.seam.security.loginFailed</literal> — called when a user authentication attempt fails</para></listitem>
+ <listitem><para><literal>org.jboss.seam.security.loginSuccessful</literal> — called when a user is successfully authenticated</para></listitem>
+ <listitem><para><literal>org.jboss.seam.security.notAuthorized</literal> — called when an authorization check fails</para></listitem>
+ <listitem><para><literal>org.jboss.seam.security.notLoggedIn</literal> — called there is no authenticated user and authentication is required</para></listitem>
+ <listitem><para><literal>org.jboss.seam.security.postAuthenticate.</literal> — called after a user is authenticated</para></listitem>
+ <listitem><para><literal>org.jboss.seam.security.preAuthenticate</literal> — called before attempting to authenticate a user</para></listitem>
</itemizedlist>
-
+
<para>
Seam components may observe any of these events in just the same way they
observe any other component-driven events.
15 years, 11 months
Seam SVN: r10042 - trunk/src/remoting/org/jboss/seam/remoting.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-02-13 15:33:26 -0500 (Fri, 13 Feb 2009)
New Revision: 10042
Modified:
trunk/src/remoting/org/jboss/seam/remoting/remote.js
Log:
JBSEAM-3944
Modified: trunk/src/remoting/org/jboss/seam/remoting/remote.js
===================================================================
--- trunk/src/remoting/org/jboss/seam/remoting/remote.js 2009-02-13 09:07:18 UTC (rev 10041)
+++ trunk/src/remoting/org/jboss/seam/remoting/remote.js 2009-02-13 20:33:26 UTC (rev 10042)
@@ -670,7 +670,8 @@
try
{
asyncReq.responseXML.documentElement;
- Seam.Remoting.processResponse(asyncReq.responseXML);
+ //Seam.Remoting.processResponse(asyncReq.responseXML);
+ callback(asyncReq.responseXML);
}
catch (ex)
{
@@ -686,7 +687,8 @@
{
// If that fails, use standards
var parser = new DOMParser();
- Seam.Remoting.processResponse(parser.parseFromString(asyncReq.responseText, "text/xml"));
+ //Seam.Remoting.processResponse(parser.parseFromString(asyncReq.responseText, "text/xml"));
+ callback(parser.parseFromString(asyncReq.responseText, "text/xml"));
}
}
}
15 years, 11 months
Seam SVN: r10041 - in trunk/src/test/ftest: examples and 65 other directories.
by seam-commits@lists.jboss.org
Author: jharting
Date: 2009-02-13 04:07:18 -0500 (Fri, 13 Feb 2009)
New Revision: 10041
Added:
trunk/src/test/ftest/examples/excel/
trunk/src/test/ftest/examples/excel/build.xml
trunk/src/test/ftest/examples/excel/jboss.xml
trunk/src/test/ftest/examples/excel/src/
trunk/src/test/ftest/examples/excel/src/org/
trunk/src/test/ftest/examples/excel/src/org/jboss/
trunk/src/test/ftest/examples/excel/src/org/jboss/seam/
trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/
trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/
trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/
trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/
trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java
trunk/src/test/ftest/examples/itext/
trunk/src/test/ftest/examples/itext/build.xml
trunk/src/test/ftest/examples/itext/jboss.xml
trunk/src/test/ftest/examples/itext/src/
trunk/src/test/ftest/examples/itext/src/org/
trunk/src/test/ftest/examples/itext/src/org/jboss/
trunk/src/test/ftest/examples/itext/src/org/jboss/seam/
trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/
trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/
trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/test/
trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/test/selenium/
trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java
trunk/src/test/ftest/examples/mail/
trunk/src/test/ftest/examples/mail/build.xml
trunk/src/test/ftest/examples/mail/jboss.xml
trunk/src/test/ftest/examples/mail/src/
trunk/src/test/ftest/examples/mail/src/org/
trunk/src/test/ftest/examples/mail/src/org/jboss/
trunk/src/test/ftest/examples/mail/src/org/jboss/seam/
trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/
trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/
trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/test/
trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/test/selenium/
trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/test/selenium/SeleniumMailTest.java
trunk/src/test/ftest/examples/openid/
trunk/src/test/ftest/examples/openid/build.xml
trunk/src/test/ftest/examples/openid/jboss.xml
trunk/src/test/ftest/examples/openid/src/
trunk/src/test/ftest/examples/openid/src/org/
trunk/src/test/ftest/examples/openid/src/org/jboss/
trunk/src/test/ftest/examples/openid/src/org/jboss/seam/
trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/
trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/
trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/test/
trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/test/selenium/
trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/test/selenium/SeleniumOpenIdTest.java
trunk/src/test/ftest/examples/remoting/
trunk/src/test/ftest/examples/remoting/chatroom/
trunk/src/test/ftest/examples/remoting/chatroom/build.xml
trunk/src/test/ftest/examples/remoting/chatroom/jboss.xml
trunk/src/test/ftest/examples/remoting/chatroom/src/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/selenium/
trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/selenium/SeleniumChatroomTest.java
trunk/src/test/ftest/examples/rss/
trunk/src/test/ftest/examples/rss/build.xml
trunk/src/test/ftest/examples/rss/jboss.xml
trunk/src/test/ftest/examples/rss/src/
trunk/src/test/ftest/examples/rss/src/org/
trunk/src/test/ftest/examples/rss/src/org/jboss/
trunk/src/test/ftest/examples/rss/src/org/jboss/seam/
trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/
trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/
trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/test/
trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/test/selenium/
trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/test/selenium/SeleniumRSSTest.java
trunk/src/test/ftest/examples/ui/
trunk/src/test/ftest/examples/ui/build.xml
trunk/src/test/ftest/examples/ui/jboss.xml
trunk/src/test/ftest/examples/ui/src/
trunk/src/test/ftest/examples/ui/src/org/
trunk/src/test/ftest/examples/ui/src/org/jboss/
trunk/src/test/ftest/examples/ui/src/org/jboss/seam/
trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/
trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/
trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/test/
trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/test/selenium/
trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/test/selenium/SeleniumUITest.java
Modified:
trunk/src/test/ftest/build.xml
Log:
JBSEAM-3690 place holders for remaining examples
Modified: trunk/src/test/ftest/build.xml
===================================================================
--- trunk/src/test/ftest/build.xml 2009-02-13 01:01:54 UTC (rev 10040)
+++ trunk/src/test/ftest/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -55,20 +55,27 @@
<testexample name="drools" />
<testexample name="dvdstore" />
<testexample name="contactlist" />
+ <testexample name="excel" />
<testexample name="groovybooking" />
<testexample name="hibernate" />
<testexample name="icefaces" />
+ <testexample name="itext" />
<testexample name="jpa" />
+ <testexample name="mail" />
<testexample name="messages" />
<testexample name="nestedbooking" />
<testexample name="numberguess" />
+ <testexample name="openid" />
<testexample name="quartz" />
<testexample name="registration" />
+ <testexample name="remoting/chatroom" />
+ <testexample name="rss" />
<testexample name="seambay" />
<testexample name="seampay" />
<testexample name="seamspace" />
<testexample name="spring" />
<testexample name="todo" />
+ <testexample name="ui" />
<testexample name="wicket" />
<antcall target="stop.selenium.server" />
</target>
@@ -136,21 +143,28 @@
<cleanexample name="drools" />
<cleanexample name="dvdstore" />
<cleanexample name="contactlist" />
+ <cleanexample name="excel" />
<cleanexample name="groovybooking" />
<cleanexample name="hibernate" />
<cleanexample name="icefaces" />
+ <cleanexample name="itext" />
<cleanexample name="jee5/booking" />
<cleanexample name="jpa" />
+ <cleanexample name="mail" />
<cleanexample name="messages" />
<cleanexample name="nestedbooking" />
<cleanexample name="numberguess" />
+ <cleanexample name="openid" />
<cleanexample name="quartz" />
<cleanexample name="registration" />
+ <cleanexample name="remoting/chatroom" />
+ <cleanexample name="rss" />
<cleanexample name="seambay" />
<cleanexample name="seampay" />
<cleanexample name="seamspace" />
<cleanexample name="spring" />
<cleanexample name="todo" />
+ <cleanexample name="ui" />
<cleanexample name="wicket" />
</target>
@@ -161,21 +175,28 @@
<undeployexample name="drools" />
<undeployexample name="dvdstore" />
<undeployexample name="contactlist" />
+ <undeployexample name="excel" />
<undeployexample name="groovybooking" />
<undeployexample name="hibernate" />
<undeployexample name="icefaces" />
+ <undeployexample name="itext" />
<undeployexample name="jee5/booking" />
<undeployexample name="jpa" />
+ <undeployexample name="mail" />
<undeployexample name="messages" />
<undeployexample name="nestedbooking" />
<undeployexample name="numberguess" />
+ <undeployexample name="openid" />
<undeployexample name="quartz" />
<undeployexample name="registration" />
+ <undeployexample name="rss" />
+ <undeployexample name="remoting/chatroom" />
<undeployexample name="seambay" />
<undeployexample name="seampay" />
<undeployexample name="seamspace" />
<undeployexample name="spring" />
<undeployexample name="todo" />
+ <undeployexample name="ui" />
<undeployexample name="wicket" />
</target>
Added: trunk/src/test/ftest/examples/excel/build.xml
===================================================================
--- trunk/src/test/ftest/examples/excel/build.xml (rev 0)
+++ trunk/src/test/ftest/examples/excel/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2008, Red Hat Middleware LLC, and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="excel.ftest.build" basedir="." default="build">
+ <property name="example.name" value="excel" />
+ <property name="jboss.example.ready.check.url" value="seam-excel/home.seam" />
+
+ <import file="../build.xml" />
+</project>
Property changes on: trunk/src/test/ftest/examples/excel/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/excel/jboss.xml
===================================================================
--- trunk/src/test/ftest/examples/excel/jboss.xml (rev 0)
+++ trunk/src/test/ftest/examples/excel/jboss.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,29 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software 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 software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="Excel example" verbose="2" parallel="false">
+ <test name="excel_jboss">
+ <parameter name="CONTEXT_PATH" value="/seam-excel" />
+ <parameter name="PROPERTY_FILE"
+ value="" />
+ <classes>
+ <class
+ name="org.jboss.seam.example.excel.test.selenium.SeleniumExcelTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: trunk/src/test/ftest/examples/excel/jboss.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java
===================================================================
--- trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java (rev 0)
+++ trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,27 @@
+package org.jboss.seam.example.excel.test.selenium;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertEquals;
+
+public class SeleniumExcelTest extends SeamSeleniumTest
+{
+ public static final String HOME_PAGE = "/home.seam";
+ public static final String HOME_PAGE_TITLE = "Microsoft® Excel® Export examples";
+
+ @BeforeMethod
+ @Override
+ public void setUp() {
+ super.setUp();
+ browser.open(CONTEXT_PATH + HOME_PAGE);
+ }
+
+ /**
+ * Place holder - just verifies that example deploys
+ */
+ @Test
+ public void homePageLoadTest() {
+ assertEquals("Unexpected page title.", HOME_PAGE_TITLE, browser.getTitle());
+ }
+}
Property changes on: trunk/src/test/ftest/examples/excel/src/org/jboss/seam/example/excel/test/selenium/SeleniumExcelTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/itext/build.xml
===================================================================
--- trunk/src/test/ftest/examples/itext/build.xml (rev 0)
+++ trunk/src/test/ftest/examples/itext/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2008, Red Hat Middleware LLC, and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="itext.ftest.build" basedir="." default="build">
+ <property name="example.name" value="itext" />
+ <property name="jboss.example.ready.check.url" value="seam-itext/index.seam" />
+
+ <import file="../build.xml" />
+</project>
Property changes on: trunk/src/test/ftest/examples/itext/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/itext/jboss.xml
===================================================================
--- trunk/src/test/ftest/examples/itext/jboss.xml (rev 0)
+++ trunk/src/test/ftest/examples/itext/jboss.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,27 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software 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 software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="Itext example" verbose="2" parallel="false">
+ <test name="itext_jboss">
+ <parameter name="CONTEXT_PATH" value="/seam-itext" />
+ <parameter name="PROPERTY_FILE" value="" />
+ <classes>
+ <class name="org.jboss.seam.example.itext.test.selenium.SeleniumItextTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: trunk/src/test/ftest/examples/itext/jboss.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java
===================================================================
--- trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java (rev 0)
+++ trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+package org.jboss.seam.example.itext.test.selenium;
+
+import static org.testng.AssertJUnit.assertEquals;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+public class SeleniumItextTest extends SeamSeleniumTest
+{
+ public static final String HOME_PAGE = "/index.seam";
+ public static final String HOME_PAGE_TITLE = "Seam PDF";
+
+ @BeforeMethod
+ @Override
+ public void setUp() {
+ super.setUp();
+ browser.open(CONTEXT_PATH + HOME_PAGE);
+ }
+
+ /**
+ * Place holder - just verifies that example deploys
+ */
+ @Test
+ public void homePageLoadTest() {
+ assertEquals("Unexpected page title.", HOME_PAGE_TITLE, browser.getTitle());
+ }
+}
Property changes on: trunk/src/test/ftest/examples/itext/src/org/jboss/seam/example/itext/test/selenium/SeleniumItextTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/mail/build.xml
===================================================================
--- trunk/src/test/ftest/examples/mail/build.xml (rev 0)
+++ trunk/src/test/ftest/examples/mail/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2008, Red Hat Middleware LLC, and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="mail.ftest.build" basedir="." default="build">
+ <property name="example.name" value="mail" />
+ <property name="jboss.example.ready.check.url" value="seam-mail/index.seam" />
+
+ <import file="../build.xml" />
+</project>
Property changes on: trunk/src/test/ftest/examples/mail/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/mail/jboss.xml
===================================================================
--- trunk/src/test/ftest/examples/mail/jboss.xml (rev 0)
+++ trunk/src/test/ftest/examples/mail/jboss.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,27 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software 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 software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="Mail example" verbose="2" parallel="false">
+ <test name="mail_jboss">
+ <parameter name="CONTEXT_PATH" value="/seam-mail" />
+ <parameter name="PROPERTY_FILE" value="" />
+ <classes>
+ <class name="org.jboss.seam.example.mail.test.selenium.SeleniumMailTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: trunk/src/test/ftest/examples/mail/jboss.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/test/selenium/SeleniumMailTest.java
===================================================================
--- trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/test/selenium/SeleniumMailTest.java (rev 0)
+++ trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/test/selenium/SeleniumMailTest.java 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,29 @@
+package org.jboss.seam.example.mail.test.selenium;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertEquals;
+
+public class SeleniumMailTest extends SeamSeleniumTest
+{
+ public static final String HOME_PAGE = "/index.seam";
+ public static final String HOME_PAGE_TITLE = "Seam Mail";
+
+ @BeforeMethod
+ @Override
+ public void setUp()
+ {
+ super.setUp();
+ browser.open(CONTEXT_PATH + HOME_PAGE);
+ }
+
+ /**
+ * Place holder - just verifies that example deploys
+ */
+ @Test
+ public void homePageLoadTest()
+ {
+ assertEquals("Unexpected page title.", HOME_PAGE_TITLE, browser.getTitle());
+ }
+}
Property changes on: trunk/src/test/ftest/examples/mail/src/org/jboss/seam/example/mail/test/selenium/SeleniumMailTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/openid/build.xml
===================================================================
--- trunk/src/test/ftest/examples/openid/build.xml (rev 0)
+++ trunk/src/test/ftest/examples/openid/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2008, Red Hat Middleware LLC, and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="openid.ftest.build" basedir="." default="build">
+ <property name="example.name" value="openid" />
+ <property name="jboss.example.ready.check.url" value="seam-openid" />
+
+ <import file="../build.xml" />
+</project>
Property changes on: trunk/src/test/ftest/examples/openid/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/openid/jboss.xml
===================================================================
--- trunk/src/test/ftest/examples/openid/jboss.xml (rev 0)
+++ trunk/src/test/ftest/examples/openid/jboss.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,27 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software 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 software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="OpenId example" verbose="2" parallel="false">
+ <test name="openid_jboss">
+ <parameter name="CONTEXT_PATH" value="/seam-openid" />
+ <parameter name="PROPERTY_FILE" value="" />
+ <classes>
+ <class name="org.jboss.seam.example.openid.test.selenium.SeleniumOpenIdTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: trunk/src/test/ftest/examples/openid/jboss.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/test/selenium/SeleniumOpenIdTest.java
===================================================================
--- trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/test/selenium/SeleniumOpenIdTest.java (rev 0)
+++ trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/test/selenium/SeleniumOpenIdTest.java 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,29 @@
+package org.jboss.seam.example.openid.test.selenium;
+
+import static org.testng.AssertJUnit.assertEquals;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+public class SeleniumOpenIdTest extends SeamSeleniumTest
+{
+ public static final String HOME_PAGE_TITLE = "OpenID Wall";
+
+ @BeforeMethod
+ @Override
+ public void setUp()
+ {
+ super.setUp();
+ browser.open(CONTEXT_PATH);
+ }
+
+ /**
+ * Place holder - just verifies that example deploys
+ */
+ @Test
+ public void homePageLoadTest()
+ {
+ assertEquals("Unexpected page title.", HOME_PAGE_TITLE, browser.getTitle());
+ }
+}
Property changes on: trunk/src/test/ftest/examples/openid/src/org/jboss/seam/example/openid/test/selenium/SeleniumOpenIdTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/remoting/chatroom/build.xml
===================================================================
--- trunk/src/test/ftest/examples/remoting/chatroom/build.xml (rev 0)
+++ trunk/src/test/ftest/examples/remoting/chatroom/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2008, Red Hat Middleware LLC, and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="chatroom.ftest.build" basedir="." default="build">
+ <property name="example.name" value="remoting/chatroom" />
+ <property name="jboss.example.ready.check.url" value="seam-chatroom/chatroom.seam" />
+
+ <import file="../../build.xml" />
+</project>
Property changes on: trunk/src/test/ftest/examples/remoting/chatroom/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/remoting/chatroom/jboss.xml
===================================================================
--- trunk/src/test/ftest/examples/remoting/chatroom/jboss.xml (rev 0)
+++ trunk/src/test/ftest/examples/remoting/chatroom/jboss.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,29 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software 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 software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="Chatroom example" verbose="2" parallel="false">
+ <test name="chatroom_jboss">
+ <parameter name="CONTEXT_PATH" value="/seam-chatroom" />
+ <parameter name="PROPERTY_FILE"
+ value="" />
+ <classes>
+ <class
+ name="org.jboss.seam.example.remoting.chatroom.test.selenium.SeleniumChatroomTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: trunk/src/test/ftest/examples/remoting/chatroom/jboss.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/selenium/SeleniumChatroomTest.java
===================================================================
--- trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/selenium/SeleniumChatroomTest.java (rev 0)
+++ trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/selenium/SeleniumChatroomTest.java 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,25 @@
+package org.jboss.seam.example.remoting.chatroom.test.selenium;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+import static org.testng.AssertJUnit.assertEquals;
+
+public class SeleniumChatroomTest extends SeamSeleniumTest
+{
+ public static final String HOME_PAGE = "/chatroom.seam";
+ public static final String HOME_PAGE_TITLE = "Chat Room Example";
+
+ @BeforeMethod
+ @Override
+ public void setUp() {
+ super.setUp();
+ browser.open(CONTEXT_PATH + HOME_PAGE);
+ }
+
+ @Test // place holder - should be replaced by better tests as soon as JBSEAM-3944 is resolved
+ public void homePageLoadTest() {
+ assertEquals("Unexpected page title.", HOME_PAGE_TITLE, browser.getTitle());
+ }
+
+}
Property changes on: trunk/src/test/ftest/examples/remoting/chatroom/src/org/jboss/seam/example/remoting/chatroom/test/selenium/SeleniumChatroomTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/rss/build.xml
===================================================================
--- trunk/src/test/ftest/examples/rss/build.xml (rev 0)
+++ trunk/src/test/ftest/examples/rss/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2008, Red Hat Middleware LLC, and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="rss.ftest.build" basedir="." default="build">
+ <property name="example.name" value="rss" />
+ <property name="jboss.example.ready.check.url" value="seam-rss/rss.seam" />
+
+ <import file="../build.xml" />
+</project>
Property changes on: trunk/src/test/ftest/examples/rss/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/rss/jboss.xml
===================================================================
--- trunk/src/test/ftest/examples/rss/jboss.xml (rev 0)
+++ trunk/src/test/ftest/examples/rss/jboss.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,27 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software 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 software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="RSS example" verbose="2" parallel="false">
+ <test name="rss_jboss">
+ <parameter name="CONTEXT_PATH" value="/seam-rss" />
+ <parameter name="PROPERTY_FILE" value="" />
+ <classes>
+ <class name="org.jboss.seam.example.rss.test.selenium.SeleniumRSSTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: trunk/src/test/ftest/examples/rss/jboss.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/test/selenium/SeleniumRSSTest.java
===================================================================
--- trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/test/selenium/SeleniumRSSTest.java (rev 0)
+++ trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/test/selenium/SeleniumRSSTest.java 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,30 @@
+package org.jboss.seam.example.rss.test.selenium;
+
+import static org.testng.AssertJUnit.assertEquals;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+public class SeleniumRSSTest extends SeamSeleniumTest
+{
+ public static final String HOME_PAGE = "/rss.seam";
+ public static final String HOME_PAGE_TITLE = "Title Feed";
+
+ @BeforeMethod
+ @Override
+ public void setUp()
+ {
+ super.setUp();
+ browser.open(CONTEXT_PATH + HOME_PAGE);
+ }
+
+ /**
+ * Place holder - just verifies that example deploys
+ */
+ @Test
+ public void homePageLoadTest()
+ {
+ assertEquals("Unexpected page title.", HOME_PAGE_TITLE, browser.getTitle());
+ }
+}
Property changes on: trunk/src/test/ftest/examples/rss/src/org/jboss/seam/example/rss/test/selenium/SeleniumRSSTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/ui/build.xml
===================================================================
--- trunk/src/test/ftest/examples/ui/build.xml (rev 0)
+++ trunk/src/test/ftest/examples/ui/build.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2008, Red Hat Middleware LLC, and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+<project name="ui.ftest.build" basedir="." default="build">
+ <property name="example.name" value="ui" />
+ <property name="jboss.example.ready.check.url" value="seam-ui/index.seam" />
+
+ <import file="../build.xml" />
+</project>
Property changes on: trunk/src/test/ftest/examples/ui/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/ui/jboss.xml
===================================================================
--- trunk/src/test/ftest/examples/ui/jboss.xml (rev 0)
+++ trunk/src/test/ftest/examples/ui/jboss.xml 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,27 @@
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+ Middleware LLC, and individual contributors by the @authors tag. See
+ the copyright.txt in the distribution for a full listing of individual
+ contributors. This is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version. This software 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 software; if not, write
+ to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ -->
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="UI example" verbose="2" parallel="false">
+ <test name="ui_jboss">
+ <parameter name="CONTEXT_PATH" value="/seam-ui" />
+ <parameter name="PROPERTY_FILE" value="" />
+ <classes>
+ <class name="org.jboss.seam.example.ui.test.selenium.SeleniumUITest" />
+ </classes>
+ </test>
+</suite>
Property changes on: trunk/src/test/ftest/examples/ui/jboss.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Added: trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/test/selenium/SeleniumUITest.java
===================================================================
--- trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/test/selenium/SeleniumUITest.java (rev 0)
+++ trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/test/selenium/SeleniumUITest.java 2009-02-13 09:07:18 UTC (rev 10041)
@@ -0,0 +1,30 @@
+package org.jboss.seam.example.ui.test.selenium;
+
+import static org.testng.AssertJUnit.assertEquals;
+
+import org.jboss.seam.example.common.test.selenium.SeamSeleniumTest;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+public class SeleniumUITest extends SeamSeleniumTest
+{
+ public static final String HOME_PAGE = "/index.seam";
+ public static final String HOME_PAGE_TITLE = "UI Example:";
+
+ @BeforeMethod
+ @Override
+ public void setUp()
+ {
+ super.setUp();
+ browser.open(CONTEXT_PATH + HOME_PAGE);
+ }
+
+ /**
+ * Place holder - just verifies that example deploys
+ */
+ @Test
+ public void homePageLoadTest()
+ {
+ assertEquals("Unexpected page title.", HOME_PAGE_TITLE, browser.getTitle());
+ }
+}
Property changes on: trunk/src/test/ftest/examples/ui/src/org/jboss/seam/example/ui/test/selenium/SeleniumUITest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 11 months