JBoss Rich Faces SVN: r12278 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/tabPanel and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2009-01-14 11:13:07 -0500 (Wed, 14 Jan 2009)
New Revision: 12278
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/tabPanel/immediateTabPanelTest.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java
Log:
Tab panel immediate test
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java 2009-01-14 16:12:56 UTC (rev 12277)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/RichPanelTestBean.java 2009-01-14 16:13:07 UTC (rev 12278)
@@ -24,6 +24,11 @@
import java.util.HashMap;
import java.util.Map;
+import javax.faces.application.FacesMessage;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.convert.ConverterException;
import javax.faces.event.ActionEvent;
public class RichPanelTestBean {
@@ -38,6 +43,8 @@
private String itemAction;
private boolean rendered;
+
+ private boolean immediate;
private String content;
@@ -52,6 +59,7 @@
value2 = 0;
rendered = true;
content = "content";
+ immediate = false;
}
public void reset() {
@@ -60,6 +68,7 @@
rendered = true;
content = "content";
selectedTab = "tab1";
+ immediate = false;
}
public void initAjaxCoreTest() {
@@ -193,6 +202,12 @@
public void itemActionNone() {
setItemAction("NOT none");
}
+
+ public String initImmediateTest() {
+ reset();
+ setImmediate(true);
+ return null;
+ }
public String increment() {
if (4 == this.value2) {
@@ -232,6 +247,7 @@
itemAction = "";
rendered = true;
content = "content";
+ immediate = false;
}
/**
@@ -264,4 +280,20 @@
this.inputs = inputs;
}
+ /**
+ * @return the immediate
+ */
+ public boolean isImmediate() {
+ return immediate;
+ }
+
+ /**
+ * @param immediate the immediate to set
+ */
+ public void setImmediate(boolean immediate) {
+ this.immediate = immediate;
+ }
+
+
+
}
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/tabPanel/immediateTabPanelTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/tabPanel/immediateTabPanelTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java 2009-01-14 16:12:56 UTC (rev 12277)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java 2009-01-14 16:13:07 UTC (rev 12278)
@@ -36,6 +36,9 @@
private static final String RESET_METHOD = "#{panelBean.reset}";
private final static String INIT_AJAX_CORE_TEST = "#{panelBean.initAjaxCoreTest}";
+
+ private final static String INIT_IMMEDIATE_TEST = "#{panelBean.initImmediateTest}";
+ private final static String INIT_IMMEDIATE_TEST_URL = "pages/tabPanel/immediateTabPanelTest.xhtml";
private static Map<String, String> params = new HashMap<String, String>();
@@ -106,6 +109,54 @@
testSubmissionModes(parentId);
}
+
+ @Test
+ public void testImmediatePanel(Template template) {
+ renderPage(INIT_IMMEDIATE_TEST_URL, template, INIT_IMMEDIATE_TEST);
+ String parentId = getParentId();
+
+ String tabId1 = parentId + FORM_ID + "tab1";
+ String tabId2 = parentId + FORM_ID + "tab2";
+ String tabId4 = parentId + FORM_ID + "tab4";
+ String messages = parentId + FORM_ID + "messages";
+
+ //immediate = true and external validation failure
+
+ AssertPresent(tabId1);
+ AssertNotPresent(messages);
+
+ AssertNotPresent(tabId2);
+ AssertNotPresent(tabId4);
+
+ //switch to second tab
+ clickCommandAndWait(tabId2 + "_lbl");
+
+ //second tab should to open
+ AssertNotPresent(messages);
+ AssertNotPresent(tabId1);
+ AssertPresent(tabId2);
+ AssertNotPresent(tabId4);
+
+ //immediate = false and external validation failure
+ reset(parentId);
+
+ AssertPresent(tabId1);
+ AssertNotPresent(messages);
+
+ AssertNotPresent(tabId2);
+ AssertNotPresent(tabId4);
+
+ //switch to second tab
+ clickCommandAndWait(tabId2 + "_lbl");
+
+ //second tab should not to open - validation message should appear
+ AssertPresent(messages);
+ AssertPresent(tabId1);
+ AssertNotPresent(tabId2);
+ AssertNotPresent(tabId4);
+
+
+ }
private void testListener(String parentId) {
16 years, 11 months
JBoss Rich Faces SVN: r12277 - trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-01-14 11:12:56 -0500 (Wed, 14 Jan 2009)
New Revision: 12277
Modified:
trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
Log:
https://jira.jboss.org/jira/browse/RF-5710
Modified: trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js
===================================================================
--- trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2009-01-14 16:12:25 UTC (rev 12276)
+++ trunk/ui/inplaceSelect/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceselectlist.js 2009-01-14 16:12:56 UTC (rev 12277)
@@ -103,5 +103,20 @@
doNormalItem : function($super, item) {
$super(item);
item.style.width = "";
+ },
+
+ findItemByDOMNode : function($super, node) {
+ //https://jira.jboss.org/jira/browse/RF-5710
+ //need to search for value
+ var value = node.value;
+ var items = this.getItems();
+ for (var i = 0; i < items.length; i++) {
+ var item = items[i];
+ var itValue = item.value;
+ if (value == itValue) {
+ return item;
+ }
+ }
}
+
});
16 years, 11 months
JBoss Rich Faces SVN: r12276 - trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-01-14 11:12:25 -0500 (Wed, 14 Jan 2009)
New Revision: 12276
Modified:
trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
Log:
https://jira.jboss.org/jira/browse/RF-5710
Modified: trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js
===================================================================
--- trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2009-01-14 15:45:00 UTC (rev 12275)
+++ trunk/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combolist.js 2009-01-14 16:12:25 UTC (rev 12276)
@@ -91,7 +91,7 @@
if (this.selectedItem) {
//was created new item list, so necessary to recreate selectedItem
- this.doSelectItem(this.findItemBySubstr(this.selectedItem.innerHTML.unescapeHTML()));
+ this.doSelectItem(this.findItemByDOMNode(this.selectedItem));
}
@@ -367,6 +367,11 @@
return items;
},
+ findItemByDOMNode : function(node) {
+ var substr = node.innerHTML.unescapeHTML();
+ return this.findItemBySubstr(substr);
+ },
+
findItemBySubstr : function(substr) {
var items = this.getItems();
for (var i = 0; i < items.length; i++) {
@@ -381,13 +386,13 @@
createNewList : function(items) {
//FIX for FF
if (this.selectedItem) {
- var text = this.selectedItem.innerHTML;
+ var node = this.selectedItem;
}
this.list.innerHTML = items.join("");
//was created new item list, so necessary to recreate selectedItem
if (this.selectedItem) {
- var item = this.findItemBySubstr(text);
+ var item = this.findItemByDOMNode(node);
if (item) {
this.doSelectItem(item);
}
16 years, 11 months
JBoss Rich Faces SVN: r12275 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-14 10:45:00 -0500 (Wed, 14 Jan 2009)
New Revision: 12275
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
https://jira.jboss.org/jira/browse/RF-5736
The queue principles is updated
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2009-01-14 15:42:38 UTC (rev 12274)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2009-01-14 15:45:00 UTC (rev 12275)
@@ -538,13 +538,16 @@
</itemizedlist>
- <para>You can reference a named queue from any Ajax4JSF or RichFaces
+ <para>
+ You can reference a named queue from any Ajax4JSF or RichFaces
component that supports the "eventsQueue" attribute. Below
there is an example of how the components can reference a named
- queue.</para>
+ queue.
+ </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
+
<programlisting role="XML"><![CDATA[...
<a4j:queue name="sampleQueue"/>
16 years, 11 months
JBoss Rich Faces SVN: r12274 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-01-14 10:42:38 -0500 (Wed, 14 Jan 2009)
New Revision: 12274
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
https://jira.jboss.org/jira/browse/RF-5736
The queue principles is updated
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2009-01-14 14:45:25 UTC (rev 12273)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2009-01-14 15:42:38 UTC (rev 12274)
@@ -404,11 +404,11 @@
<title>Queue Principles</title>
<para>Starting from 3.3.0 version RichFaces has an improved queue.</para>
- <para>There are some serious reasons why the queue has been improved. The improved queue allows to</para>
+ <para>There are some reasons why the queue has been improved. In previous versions the queue had quite simple implementation: it sent to the server only the last Ajax request out of all requests coming in the queue during request delay.</para>
+ <para>The improved queue allows to</para>
<itemizedlist>
-
-
+
<listitem>
<para>
Eliminate the possibility of collisions when several JSF requests pass the JSF lifecycle at the same time. The queue prevents sending such requests. Only one request is processed. The rest ones are waiting.
@@ -417,15 +417,11 @@
<listitem>
<para>
- Reduce the traffic between browser and the server. The "similar" requests came within requestDelay are absorbed. Only the last one is actually sent. Reducing the number of request reduces the server load.
+ Reduce the traffic between browser and the server. The "similar" requests came within request delay are absorbed. Only the last one is actually sent. Reducing the number of request reduces the server load.
</para>
</listitem>
- <listitem><para>
-
- Significantly increase the amount of "unrelated" asynchronous requests to processed
-
- </para></listitem>
+
</itemizedlist>
16 years, 11 months
JBoss Rich Faces SVN: r12273 - trunk/docs/realworld_app_guide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-01-14 09:45:25 -0500 (Wed, 14 Jan 2009)
New Revision: 12273
Modified:
trunk/docs/realworld_app_guide/en/src/main/docbook/modules/getting_started.xml
trunk/docs/realworld_app_guide/en/src/main/docbook/modules/intro.xml
trunk/docs/realworld_app_guide/en/src/main/docbook/modules/rw_itself.xml
Log:
Modified: trunk/docs/realworld_app_guide/en/src/main/docbook/modules/getting_started.xml
===================================================================
--- trunk/docs/realworld_app_guide/en/src/main/docbook/modules/getting_started.xml 2009-01-14 13:34:15 UTC (rev 12272)
+++ trunk/docs/realworld_app_guide/en/src/main/docbook/modules/getting_started.xml 2009-01-14 14:45:25 UTC (rev 12273)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="Getting_started_with_RW" xreflabel="Getting_started_with_RW">
- <?dbhtml filename="RichFacesMigrationIssues31to32.html"?>
+ <?dbhtml filename="Getting_started_with_RW.html"?>
<chapterinfo>
<keywordset>
<keyword>RichFaces</keyword>
Modified: trunk/docs/realworld_app_guide/en/src/main/docbook/modules/intro.xml
===================================================================
--- trunk/docs/realworld_app_guide/en/src/main/docbook/modules/intro.xml 2009-01-14 13:34:15 UTC (rev 12272)
+++ trunk/docs/realworld_app_guide/en/src/main/docbook/modules/intro.xml 2009-01-14 14:45:25 UTC (rev 12273)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="introduction" xreflabel="introduction">
- <?dbhtml filename="intro.html"?>
+ <?dbhtml filename="introduction.html"?>
<title>Introduction</title>
<para>
Modified: trunk/docs/realworld_app_guide/en/src/main/docbook/modules/rw_itself.xml
===================================================================
--- trunk/docs/realworld_app_guide/en/src/main/docbook/modules/rw_itself.xml 2009-01-14 13:34:15 UTC (rev 12272)
+++ trunk/docs/realworld_app_guide/en/src/main/docbook/modules/rw_itself.xml 2009-01-14 14:45:25 UTC (rev 12273)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="rw_itself" xreflabel="rw_itself">
- <?dbhtml filename="requirements.html"?>
+ <?dbhtml filename="rw_itself.html"?>
<chapterinfo>
<keywordset>
<keyword>RichFaces</keyword>
16 years, 11 months
JBoss Rich Faces SVN: r12272 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/treeNodesAdaptor and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-01-14 08:34:15 -0500 (Wed, 14 Jan 2009)
New Revision: 12272
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeNodesAdaptorTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/treeNodesAdaptor/treeNodesAdaptor.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TreeNodesAdaptorTest.java
Log:
RF-5582
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeNodesAdaptorTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeNodesAdaptorTestBean.java 2009-01-14 12:14:51 UTC (rev 12271)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/tree/TreeNodesAdaptorTestBean.java 2009-01-14 13:34:15 UTC (rev 12272)
@@ -1,23 +1,87 @@
package org.ajax4jsf.bean.tree;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
public class TreeNodesAdaptorTestBean {
+
+ public static class Node {
+
+
+ private String id;
- private String[] nodes = {"1", "2", "3"};
- private String[] roots = {"A", "B", "C"};
+ private List<Node> children;
- public void setNodes(String[] nodes) {
- this.nodes = nodes;
+ public Node() {
+ children = new ArrayList<Node>(3);
+ }
+
+ public Node(String id) {
+ this();
+ this.id = id;
+ }
+
+ public void addChild(Node child) {
+ children.add(child);
+ }
+
+ public void setChildren(List<Node> children) {
+ this.children = children;
+ }
+
+ public List<Node> getChildren() {
+ return children;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getId() {
+ return id;
+ }
+
}
- public String[] getNodes() {
- return nodes;
+ private List<Node> nodes;
+ private String trace;
+
+ public TreeNodesAdaptorTestBean() {
+ init();
}
+
+ public void init() {
+ trace = "";
+ nodes = new ArrayList<Node>(3);
+ for (int i = 1; i <= 3; i++) {
+ Node node = new Node(Integer.toString(i));
+ nodes.add(node);
+ for (int j = 1; j <= 3; j++) {
+ node.addChild(new Node(Integer.toString(i * 10 + j)));
+ }
+ }
+ }
- public void setRoots(String[] roots) {
- this.roots = roots;
+ public void submit(ActionEvent event) {
+ trace = event.getComponent().getClientId(FacesContext.getCurrentInstance());
}
+
+ public void setTrace(String trace) {
+ this.trace = trace;
+ }
- public String[] getRoots() {
- return roots;
+ public String getTrace() {
+ return trace;
}
+
+ public void setNodes(List<Node> nodes) {
+ this.nodes = nodes;
+ }
+
+ public List<Node> getNodes() {
+ return nodes;
+ }
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/treeNodesAdaptor/treeNodesAdaptor.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/treeNodesAdaptor/treeNodesAdaptor.xhtml 2009-01-14 12:14:51 UTC (rev 12271)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/treeNodesAdaptor/treeNodesAdaptor.xhtml 2009-01-14 13:34:15 UTC (rev 12272)
@@ -10,18 +10,27 @@
<ui:define name="component">
<h:form id="mainForm">
<rich:tree id="tree">
- <rich:treeNodesAdaptor nodes="#{treeNodesAdaptor.roots}" var="root">
+ <rich:treeNodesAdaptor nodes="#{treeNodesAdaptor.nodes}" var="node">
<rich:treeNode>
- <h:outputText value="#{root}"></h:outputText>
+ <h:outputText value="#{node.id}"></h:outputText>
+ <h:commandButton id="submit" value="submit" actionListener="#{treeNodesAdaptor.submit}"></h:commandButton>
+ <a4j:commandButton id="ajaxSubmit" value="ajaxSubmit" reRender="outputText, dataTable" actionListener="#{treeNodesAdaptor.submit}"></a4j:commandButton>
+ <a4j:commandButton id="ajaxSingleSubmit" value="ajaxSingleSubmit" reRender="outputText, dataTable" actionListener="#{treeNodesAdaptor.submit}" ajaxSingle="true"></a4j:commandButton>
</rich:treeNode>
- <rich:treeNodesAdaptor nodes="#{treeNodesAdaptor.nodes}" var="node">
+ <rich:treeNodesAdaptor nodes="#{node.children}" var="child">
<rich:treeNode>
- <h:outputText value="#{root}#{node}"></h:outputText>
+ <h:inputText value="#{child.id}"></h:inputText>
</rich:treeNode>
</rich:treeNodesAdaptor>
</rich:treeNodesAdaptor>
</rich:tree>
</h:form>
+ <h:outputText id="outputText" value="#{treeNodesAdaptor.trace}"></h:outputText>
+ <h:dataTable id="dataTable" value="#{treeNodesAdaptor.nodes[1].children}" var="child">
+ <h:column>
+ <h:outputText value="#{child.id}"></h:outputText>
+ </h:column>
+ </h:dataTable>
</ui:define>
</ui:composition>
</html>
\ No newline at end of file
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TreeNodesAdaptorTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TreeNodesAdaptorTest.java 2009-01-14 12:14:51 UTC (rev 12271)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TreeNodesAdaptorTest.java 2009-01-14 13:34:15 UTC (rev 12272)
@@ -20,6 +20,10 @@
*/
package org.richfaces.testng;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.ajax4jsf.bean.tree.TreeNodesAdaptorTestBean.Node;
import org.ajax4jsf.template.Template;
import org.richfaces.SeleniumTestBase;
import org.testng.Assert;
@@ -28,15 +32,26 @@
public class TreeNodesAdaptorTest extends SeleniumTestBase {
- private String[] nodes = {"1", "2", "3"};
- private String[] roots = {"A", "B", "C"};
+ private List<Node> nodes;
private String tree;
+ private String outputText;
+ private String dataTable;
private void init(Template template) {
- renderPage(template);
+ renderPage(null, template, "#{treeNodesAdaptor.init}");
+ nodes = new ArrayList<Node>(3);
+ for (int i = 1; i <= 3; i++) {
+ Node node = new Node(Integer.toString(i));
+ nodes.add(node);
+ for (int j = 1; j <= 3; j++) {
+ node.addChild(new Node(Integer.toString(i * 10 + j)));
+ }
+ }
String mainForm = getParentId() + "mainForm";
tree = mainForm + ":tree";
+ outputText = getParentId() + "outputText";
+ dataTable = getParentId() + "dataTable";
}
/**
@@ -47,17 +62,54 @@
public void testTreeStructure(Template template) {
init(template);
String locator = "xpath=id('"+ tree + "')/div";
- for (int i = 0; i < roots.length; i++) {
+ for (int i = 0; i < nodes.size(); i++) {
+ Node node = nodes.get(i);
String rootLocator = locator + "/table[" + (i + 1) + "]/tbody/tr";
- Assert.assertEquals(selenium.getText(rootLocator), roots[i]);
+ Assert.assertEquals(selenium.getText(rootLocator), node.getId());
clickAjaxCommandAndWait(rootLocator + "/td[1]/div/a");
String nodesLocator = locator + "/div[" + (i + 1) + "]";
- for (int j = 0; j < nodes.length; j++) {
- Assert.assertEquals(selenium.getText(nodesLocator + "/table[" + (j + 1) + "]/tbody/tr"), roots[i] + nodes[j]);
+ List<Node> children = node.getChildren();
+ for (int j = 0; j < children.size(); j++) {
+ Assert.assertEquals(selenium.getValue(nodesLocator + "/table[" + (j + 1) + "]/tbody/tr/td[3]/input"), children.get(j).getId());
}
}
}
+ private void checkModel(String nodesLocator) {
+ String dataTableLocator = "xpath=id('"+ dataTable + "')/tbody/tr[";
+ for (int j = 1; j <= 3; j++) {
+ Assert.assertEquals(selenium.getValue(nodesLocator + "/table[" + j + "]/tbody/tr/td[3]/input"), selenium.getText(dataTableLocator + j + "]"));
+ }
+ }
+
+ /**
+ * check input and command components processing
+ */
+ @Test
+ public void testComponentsProcessing(Template template) {
+ init(template);
+ String locator = "xpath=id('"+ tree + "')/div";
+ String titleLocator = locator + "/table[2]/tbody/tr";
+ clickAjaxCommandAndWait(titleLocator + "/td[1]/div/a");
+ String nodesLocator = locator + "/div[2]";
+ checkModel(nodesLocator);
+ for (int j = 1; j <= 3; j++) {
+ selenium.type(nodesLocator + "/table[" + j + "]/tbody/tr/td[3]/input", "abc" + j);
+ }
+ String buttonLocator = titleLocator + "/td[3]/input[";
+ Assert.assertEquals(selenium.getText(outputText), "");
+ selenium.click(buttonLocator + "1]");
+ waitForPageToLoad();
+ checkModel(nodesLocator);
+ Assert.assertTrue(selenium.getText(outputText).endsWith("1::submit"));
+ selenium.click(buttonLocator + "2]");
+ waitForAjaxCompletion();
+ Assert.assertTrue(selenium.getText(outputText).endsWith("1::ajaxSubmit"));
+ selenium.click(buttonLocator + "3]");
+ waitForAjaxCompletion();
+ Assert.assertTrue(selenium.getText(outputText).endsWith("1::ajaxSingleSubmit"));
+ }
+
@Override
public String getTestUrl() {
return "pages/treeNodesAdaptor/treeNodesAdaptor.xhtml";
16 years, 11 months
JBoss Rich Faces SVN: r12271 - trunk/sandbox/samples/maven-rd-plugin-sample.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-01-14 07:14:51 -0500 (Wed, 14 Jan 2009)
New Revision: 12271
Modified:
trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml
Log:
Modified: trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml
===================================================================
--- trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml 2009-01-14 12:13:12 UTC (rev 12270)
+++ trunk/sandbox/samples/maven-rd-plugin-sample/pom.xml 2009-01-14 12:14:51 UTC (rev 12271)
@@ -21,19 +21,25 @@
</configuration>
</plugin>
<plugin>
- <artifactId>maven-resource-dependency-plugin</artifactId>
- <groupId>org.richfaces.cdk.sandbox</groupId>
+ <artifactId>maven-resource-dependency-plugin</artifactId>
+ <groupId>org.richfaces.cdk.sandbox</groupId>
<version>3.3.1-SNAPSHOT</version>
- <executions>
- <execution>
- <phase>process-resources</phase>
- <goals>
- <goal>assemblyScripts</goal>
- <goal>assemblyStyles</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
+ <configuration>
+ <namespaces>
+ <namespace>http://richfaces.org/rich</namespace>
+ <namespace>http://richfaces.org/a4j</namespace>
+ </namespaces>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>assemblyScripts</goal>
+ <goal>assemblyStyles</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<dependencies>
16 years, 11 months