Author: nbelaevski
Date: 2009-02-04 11:31:38 -0500 (Wed, 04 Feb 2009)
New Revision: 12562
Added:
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5849/
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5849/Bean.java
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5933/
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5933/Bean.java
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf6035/
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf6035/Bean.java
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5849/
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5849/Test.java
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5933/
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5933/Test.java
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6035/
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6035/Test.java
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5849.xhtml
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5933.xhtml
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6035.xhtml
Removed:
trunk/test-applications/regressionArea/Test.bat
trunk/test-applications/regressionArea/build.bat
Modified:
trunk/test-applications/regressionArea/readMe.txt
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/resources/META-INF/MANIFEST.MF
trunk/test-applications/regressionArea/regressionArea-tests/
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml
trunk/test-applications/regressionArea/regressionArea-web/src/main/resources/META-INF/MANIFEST.MF
Log:
https://jira.jboss.org/jira/browse/RF-5849
https://jira.jboss.org/jira/browse/RF-5933
https://jira.jboss.org/jira/browse/RF-6035
Deleted: trunk/test-applications/regressionArea/Test.bat
===================================================================
--- trunk/test-applications/regressionArea/Test.bat 2009-02-04 16:22:31 UTC (rev 12561)
+++ trunk/test-applications/regressionArea/Test.bat 2009-02-04 16:31:38 UTC (rev 12562)
@@ -1,2 +0,0 @@
-cd /regressionArea-web
-mvn integration-test -P Test
\ No newline at end of file
Deleted: trunk/test-applications/regressionArea/build.bat
===================================================================
--- trunk/test-applications/regressionArea/build.bat 2009-02-04 16:22:31 UTC (rev 12561)
+++ trunk/test-applications/regressionArea/build.bat 2009-02-04 16:31:38 UTC (rev 12562)
@@ -1 +0,0 @@
-mvn clean install
\ No newline at end of file
Modified: trunk/test-applications/regressionArea/readMe.txt
===================================================================
--- trunk/test-applications/regressionArea/readMe.txt 2009-02-04 16:22:31 UTC (rev 12561)
+++ trunk/test-applications/regressionArea/readMe.txt 2009-02-04 16:31:38 UTC (rev 12562)
@@ -1,11 +1,5 @@
-1. Download JBOSS from \\Eltegra-pdc\INCOMING\amarkavtsov\. Unzip.
+1. Run mvn clean integration-test
-2. Open regressionArea/pom.xml file. Define there jboss home property.
-
-3. Launch 'build.bat' to build project.
-
-4. Launch 'Test.bat' to start selenium testing.
-
-----------------------------------------------------
Added:
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5849/Bean.java
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5849/Bean.java
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5849/Bean.java 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,45 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.regressionarea.issues.rf5849;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+/**
+ * This test case for: <a
href="https://jira.jboss.org/jira/browse/RF-5849">RF-5849 -
+ * Ajax: timed out requests kill status</a>
+ *
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+
+@Name("rf5849")
+(a)Scope(ScopeType.APPLICATION)
+public class Bean {
+
+ public void test() throws Exception {
+ System.out.println("rf5849.Bean.test()");
+ Thread.sleep(5000);
+ }
+}
Added:
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5933/Bean.java
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5933/Bean.java
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf5933/Bean.java 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,45 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.regressionarea.issues.rf5933;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+/**
+ * This test case for: <a
href="https://jira.jboss.org/jira/browse/RF-5933">RF-5933 -
+ * AJAX: oncomplete called for aborted timed out requests</a>
+ *
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+
+@Name("rf5933")
+(a)Scope(ScopeType.APPLICATION)
+public class Bean {
+
+ public void test() throws Exception {
+ System.out.println("rf5993.Bean.test()");
+ Thread.sleep(5000);
+ }
+}
Added:
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf6035/Bean.java
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf6035/Bean.java
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/java/org/richfaces/regressionarea/issues/rf6035/Bean.java 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,45 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.regressionarea.issues.rf6035;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+/**
+ * This test case for: <a
href="https://jira.jboss.org/jira/browse/RF-6035">RF-6035 -
+ * Status: onstart and onstop aren't executed correctly</a>
+ *
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+
+@Name("rf6035")
+(a)Scope(ScopeType.APPLICATION)
+public class Bean {
+
+ public void test() throws Exception {
+ System.out.println("rf6035.Bean.test()");
+ Thread.sleep(5000);
+ }
+}
Modified:
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/resources/META-INF/MANIFEST.MF
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/resources/META-INF/MANIFEST.MF 2009-02-04
16:22:31 UTC (rev 12561)
+++
trunk/test-applications/regressionArea/regressionArea-ejb/src/main/resources/META-INF/MANIFEST.MF 2009-02-04
16:31:38 UTC (rev 12562)
@@ -1,10 +1,10 @@
Manifest-Version: 1.0
Class-Path: bsh-1.3.0.jar commons-beanutils-1.7.0.jar commons-collecti
- ons-3.2.jar commons-digester-1.8.jar commons-lang-2.3.jar commons-log
+ ons-3.2.jar commons-digester-2.0.jar commons-lang-2.3.jar commons-log
ging-1.0.4.jar dom4j-1.6.1-brew.jar el-api-1.0.jar jboss-el-1.0_02.CR
- 2.jar jboss-seam-2.1.0.SP1.jar jboss-seam-debug-2.1.0.SP1.jar jboss-s
- eam-jul-2.1.0.SP1.jar jboss-seam-remoting-2.1.0.SP1.jar jboss-seam-ui
- -2.1.0.SP1.jar jsf-api-1.2_10.jar jsf-facelets-1.1.15.B1.jar jsf-impl
- -1.2_10.jar log4j-1.2.14.jar richfaces-api-3.3.0-SNAPSHOT.jar richfac
- es-impl-3.3.0-SNAPSHOT.jar richfaces-ui-3.3.0-SNAPSHOT.jar
+ 2.jar jboss-seam-2.1.1.GA.jar jboss-seam-debug-2.1.1.GA.jar jboss-sea
+ m-jul-2.1.1.GA.jar jboss-seam-remoting-2.1.1.GA.jar jboss-seam-ui-2.1
+ .1.GA.jar jsf-api-1.2_11.jar jsf-facelets-1.1.15.B1.jar jsf-impl-1.2_
+ 11.jar log4j-1.2.14.jar richfaces-api-3.3.1-SNAPSHOT.jar richfaces-im
+ pl-3.3.1-SNAPSHOT.jar richfaces-ui-3.3.1-SNAPSHOT.jar
Property changes on: trunk/test-applications/regressionArea/regressionArea-tests
___________________________________________________________________
Name: svn:ignore
- target
+ target
test-output
.classpath
.project
.settings
bin
Added:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5849/Test.java
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5849/Test.java
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5849/Test.java 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,64 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.testng.rf5849;
+
+import org.richfaces.SeleniumTestBase;
+
+/**
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+public class Test extends SeleniumTestBase {
+
+ private static final String STATUS = "status.";
+
+ private static final String STATUS_START = STATUS + "start";
+
+ private static final String STATUS_STOP = STATUS + "stop";
+
+ @org.testng.annotations.Test
+ public void testExecute() throws Exception {
+ renderPage();
+
+ AssertNotVisible(STATUS_START);
+ AssertVisible(STATUS_STOP);
+
+ clickById("execute");
+
+ AssertNotVisible(STATUS_STOP);
+ AssertVisible(STATUS_START);
+
+ waitForAjaxCompletion(10000);
+
+ AssertValueEquals("form:text", "3");
+
+ AssertNotVisible(STATUS_START);
+ AssertVisible(STATUS_STOP);
+ }
+
+
+ @Override
+ public String getTestUrl() {
+ return "pages/rf5849.xhtml";
+ }
+}
Added:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5933/Test.java
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5933/Test.java
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf5933/Test.java 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,56 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.testng.rf5933;
+
+import org.richfaces.SeleniumTestBase;
+
+/**
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+public class Test extends SeleniumTestBase {
+
+ private static final String STATUS = "status.";
+
+ private static final String STATUS_START = STATUS + "start";
+
+ private static final String STATUS_STOP = STATUS + "stop";
+
+ @org.testng.annotations.Test
+ public void testExecute() throws Exception {
+ renderPage();
+
+ AssertNotVisible(STATUS_START);
+ AssertVisible(STATUS_STOP);
+
+ clickById("execute");
+ waitForAjaxCompletion(8000);
+ AssertTextEquals("//*[@id = 'form:group']", "pass");
+ }
+
+
+ @Override
+ public String getTestUrl() {
+ return "pages/rf5933.xhtml";
+ }
+}
Added:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6035/Test.java
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6035/Test.java
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-tests/src/test/java/org/richfaces/testng/rf6035/Test.java 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,49 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+
+package org.richfaces.testng.rf6035;
+
+import org.richfaces.SeleniumTestBase;
+
+/**
+ * @author Nick Belaevski
+ * @since 3.3.1
+ */
+public class Test extends SeleniumTestBase {
+
+ @org.testng.annotations.Test
+ public void testExecute() throws Exception {
+ renderPage();
+
+ clickById("execute");
+
+ waitForAjaxCompletion(15000);
+ AssertTextEquals("//*[@id = 'form:starts']", "2");
+ AssertTextEquals("//*[@id = 'form:stops']", "2");
+ }
+
+
+ @Override
+ public String getTestUrl() {
+ return "pages/rf6035.xhtml";
+ }
+}
Modified:
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml 2009-02-04
16:22:31 UTC (rev 12561)
+++
trunk/test-applications/regressionArea/regressionArea-tests/src/test/resources/testng.xml 2009-02-04
16:31:38 UTC (rev 12562)
@@ -19,13 +19,18 @@
<parameter name="loadScriptStrategy" value="ALL"/>
<parameter name="filterPrefix" value="/faces/NEKO/"/>
<parameter name="browser" value="*firefox"/>
- <packages>
- <package name="org.richfaces.testng" />
- <package name="org.richfaces.testng.rf4507" />
- <package name="org.richfaces.testng.rf4709" />
- <package name="org.richfaces.testng.rf5264" />
- <package name="org.richfaces.testng.rf5851" />
- <package name="org.richfaces.testng.rf5948" />
- </packages>
- </test>
+
+ <packages>
+ <package name="org.richfaces.testng" />
+ <package name="org.richfaces.testng.rf4507" />
+ <package name="org.richfaces.testng.rf4709" />
+ <package name="org.richfaces.testng.rf5264" />
+ <package name="org.richfaces.testng.rf5849" />
+ <package name="org.richfaces.testng.rf5851" />
+ <package name="org.richfaces.testng.rf5948" />
+ <package name="org.richfaces.testng.rf5933" />
+ <package name="org.richfaces.testng.rf6035" />
+ </packages>
+
+ </test>
</suite>
Modified:
trunk/test-applications/regressionArea/regressionArea-web/src/main/resources/META-INF/MANIFEST.MF
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-web/src/main/resources/META-INF/MANIFEST.MF 2009-02-04
16:22:31 UTC (rev 12561)
+++
trunk/test-applications/regressionArea/regressionArea-web/src/main/resources/META-INF/MANIFEST.MF 2009-02-04
16:31:38 UTC (rev 12562)
@@ -1,6 +1,4 @@
Manifest-Version: 1.0
-Class-Path: avalon-framework-4.1.3.jar commons-beanutils-1.7.0.jar com
- mons-digester-1.8.jar commons-logging-1.1.jar jsf-facelets-1.1.14.jar
- log4j-1.2.14.jar logkit-1.0.1.jar richfaces-impl-3.3.0-SNAPSHOT.jar
- richfaces-ui-3.3.0-SNAPSHOT.jar servlet-api-2.4.jar
+Class-Path: commons-digester-2.0.jar jsf-facelets-1.1.14.jar richfaces
+ -impl-3.3.1-SNAPSHOT.jar richfaces-ui-3.3.1-SNAPSHOT.jar
Added:
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5849.xhtml
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5849.xhtml
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5849.xhtml 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+<ui:composition template="/layout/layout.xhtml">
+ <ui:define name="style">
+
+ </ui:define>
+ <ui:define name="template">
+ <h:form id="form">
+ <h:inputText id="text" />
+
+ <script type="text/javascript">
+ var counter = 0;
+ </script>
+
+ <a4j:status startText="...start..." stopText="stop"
id="status" forceId="true"
+ onstart="#{rich:element('text')}.value = 'undefined';
counter++;"
+ onstop="#{rich:element('text')}.value = (counter + '')"
/>
+
+ <br />
+
+ <a4j:jsFunction timeout="10" action="#{rf5849.test}"
status="status"
+ name="kill" eventsQueue="a" id="link0" />
+ <br />
+
+ <a4j:jsFunction timeout="10" action="#{rf5849.test}"
status="status"
+ name="kill2" eventsQueue="a" id="link1"
oncomplete="#{rich:element('text')}" />
+ <br />
+
+ <a4j:jsFunction name="normal" action="#{rf5849.test}"
status="status"
+ eventsQueue="a" id="link2" />
+
+ <a id="execute" onclick="kill(); kill2(); normal(); return
false;" href="#">execute</a>
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file
Added:
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5933.xhtml
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5933.xhtml
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf5933.xhtml 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+<ui:composition template="/layout/layout.xhtml">
+ <ui:define name="style">
+
+ </ui:define>
+ <ui:define name="template">
+ <h:form id="form">
+ <a4j:status startText="...start..." stopText="stop"
id="status" forceId="true" /><br />
+
+ <h:panelGroup id="group"></h:panelGroup>
+
+ <script type="text/javascript">
+ function logResult(result) {
+ #{rich:element('group')}.appendChild(document.createTextNode(result ?
"pass" : "fail"));
+ }
+ </script>
+
+ <a4j:jsFunction status="status" name="functionA"
eventsQueue="a" similarityGroupingId="a"
oncomplete="logResult(false)" timeout="100"
action="#{rf5933.test}" />
+ <a4j:jsFunction status="status" name="functionB"
eventsQueue="a" similarityGroupingId="a"
ignoreDupResponses="true" oncomplete="logResult(true)"
action="#{rf5933.test}" />
+ <a href="#" id="execute" onclick="functionA();
functionB();">Click here</a>
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file
Added:
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6035.xhtml
===================================================================
---
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6035.xhtml
(rev 0)
+++
trunk/test-applications/regressionArea/regressionArea-web/src/main/webapp/pages/rf6035.xhtml 2009-02-04
16:31:38 UTC (rev 12562)
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+
+<ui:composition template="/layout/layout.xhtml">
+ <ui:define name="style">
+
+ </ui:define>
+ <ui:define name="template">
+ <h:form id="form">
+ <script type="text/javascript">
+ var startsCount = 0;
+ var stopsCount = 0;
+ </script>
+
+ <a4j:status startText="...start..." stopText="stop"
+ onstart="#{rich:element('starts')}.innerHTML = (++startsCount +
'')"
+ onstop="#{rich:element('stops')}.innerHTML = (++stopsCount +
'')"
+ /><br />
+
+ Starts: <h:panelGroup id="starts"
layout="block"></h:panelGroup>
+ Stops: <h:panelGroup id="stops"
layout="block"></h:panelGroup>
+
+ <a4j:jsFunction name="functionA" action="#{rf6035.test}" />
+ <a4j:jsFunction name="functionB" action="#{rf6035.test}" />
+
+ <a href="#" onclick="functionA(); setTimeout(functionB, 500)"
id="execute">click here</a>
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file