JBoss Rich Faces SVN: r8302 - trunk/test-applications/facelets/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-29 08:57:47 -0400 (Tue, 29 Apr 2008)
New Revision: 8302
Modified:
trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml
Log:
Erase tests for maxlegth and alt
Modified: trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml 2008-04-29 12:57:33 UTC (rev 8301)
+++ trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml 2008-04-29 12:57:47 UTC (rev 8302)
@@ -19,21 +19,34 @@
listClass="#{style.listClass}"
listStyle="#{style.listStyle}"
itemSelectedClass="border:5px solid red"
- filterNewValues="#{combobox.filterNewValues}"
+ filterNewValues="#{combobox.filterNewValues}"
+ rich-combobox-button="style"
directInputSuggestions="#{combobox.directInputSuggestions}" immediate="#{combobox.immediate}"
width="#{combobox.width}" valueChangeListener="#{combobox.valueChangeListener}"
tabindex="#{combobox.tabindex}" suggestionValues="#{combobox.suggestionValues}"
required="#{combobox.required}" requiredMessage="#{combobox.requiredMessage}"
- rendered="#{combobox.rendered}" selectFirstOnUpdate="#{combobox.selectFirstOnUpdate}" maxlength="#{combobox.maxlength}"
+ rendered="#{combobox.rendered}" selectFirstOnUpdate="#{combobox.selectFirstOnUpdate}"
enableManualInput="#{combobox.enableManualInput}" listHeight="#{combobox.listHeight}" listWidth="#{combobox.listWidth}" style="#{style.style}" styleClass="#{style.styleClass}"
- onblur="#{event.onblur}" onchange="#{event.onchange}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
- onfocus="#{event.onfocus}" onitemselected="#{event.onitemselected}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
- onkeyup="#{event.onkeyup}" onlistcall="#{event.onlistcall}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}"
+
+ onblur="#{event.onblur}"
+ onchange="alert('onchange')"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onfocus="#{event.onfocus}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onlistcall="#{event.onlistcall}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+
binding="#{combobox.myComboBox}"
- align="#{combobox.align}"
- alt="#{combobox.alt}">
- <f:selectItems value="#{combobox.selectItem}"/>
+ align="#{combobox.align}">
+ <f:selectItem itemValue="GoshaGoshaGoshaGoshaGosha"/>
</rich:comboBox>
</f:subview>
16 years, 8 months
JBoss Rich Faces SVN: r8301 - trunk/test-applications/jsp/src/main/java/combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-29 08:57:33 -0400 (Tue, 29 Apr 2008)
New Revision: 8301
Modified:
trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
Log:
Erase tests for maxlegth and alt
Modified: trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-29 12:57:22 UTC (rev 8300)
+++ trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-29 12:57:33 UTC (rev 8301)
@@ -30,7 +30,6 @@
public String requiredMessage;
public boolean rendered;
public boolean selectFirstOnUpdate;
- public int maxlength;
public boolean enableManualInput;
public String listHeight;
public String listWidth;
@@ -39,8 +38,17 @@
private String bindLabel;
private String align;
private String alt;
+ private String accesskey;
+ public String getAccesskey() {
+ return accesskey;
+ }
+
+ public void setAccesskey(String accesskey) {
+ this.accesskey = accesskey;
+ }
+
public Combobox() {
this.disabled = false;
this.defaultLabel = "defaultLabel";
@@ -57,7 +65,6 @@
this.requiredMessage = "requiredMessage";
this.rendered = true;
this.selectFirstOnUpdate = true;
- this.maxlength = 5;
this.enableManualInput = true;
this.listHeight = "400";
this.listWidth = "350";
@@ -66,6 +73,7 @@
this.bindLabel = "Click Binding";
this.align = "left";
this.alt = "hidden";
+ this.accesskey = "y";
Random r = new Random();
for(int i = 0; i < 10; i++){
suggestionValues.add(new Data("selectItem", i));
@@ -222,14 +230,6 @@
this.selectFirstOnUpdate = selectFirstOnUpdate;
}
- public int getMaxlength() {
- return maxlength;
- }
-
- public void setMaxlength(int maxlength) {
- this.maxlength = maxlength;
- }
-
public boolean isEnableManualInput() {
return enableManualInput;
}
@@ -282,12 +282,4 @@
public void setAlign(String align) {
this.align = align;
}
-
- public String getAlt() {
- return alt;
- }
-
- public void setAlt(String alt) {
- this.alt = alt;
- }
}
16 years, 8 months
JBoss Rich Faces SVN: r8300 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-29 08:57:22 -0400 (Tue, 29 Apr 2008)
New Revision: 8300
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
Log:
Erase tests for maxlegth and alt
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-29 12:57:09 UTC (rev 8299)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-29 12:57:22 UTC (rev 8300)
@@ -13,10 +13,6 @@
<h:outputText value="tabindex"></h:outputText>
<h:inputText value="#{combobox.tabindex}" onchange="submit();"></h:inputText>
-
- <h:outputText value="maxlength"></h:outputText>
- <h:inputText value="#{combobox.maxlength}" onchange="submit();"></h:inputText>
-
<h:outputText value="width"></h:outputText>
<h:inputText value="#{combobox.width}" onchange="submit();"></h:inputText>
@@ -24,7 +20,10 @@
<h:inputText value="#{combobox.listHeight}" onchange="submit();"></h:inputText>
<h:outputText value="listWidth"></h:outputText>
- <h:inputText value="#{combobox.listWidth}" onchange="submit();"></h:inputText>
+ <h:inputText value="#{combobox.listWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="accesskey"></h:outputText>
+ <h:inputText value="#{combobox.accesskey}" onchange="submit();"></h:inputText>
<h:outputText value="enableManualInput"></h:outputText>
<h:selectBooleanCheckbox value="#{combobox.enableManualInput}" onchange="submit();"></h:selectBooleanCheckbox>
@@ -54,10 +53,7 @@
<h:outputText value="#{combobox.bindLabel}"></h:outputText>
<h:outputText value="align"></h:outputText>
- <h:inputText value="#{combobox.align}" onchange="submit();"></h:inputText>
-
- <h:outputText value="alt (hidden)"></h:outputText>
- <h:inputText value="#{combobox.alt}" onchange="submit();"></h:inputText>
+ <h:inputText value="#{combobox.align}" onchange="submit();"></h:inputText>
</h:panelGrid>
<a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.showList()" value="showList"></a4j:commandLink> <br/>
16 years, 8 months
JBoss Rich Faces SVN: r8299 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-29 08:57:09 -0400 (Tue, 29 Apr 2008)
New Revision: 8299
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp
Log:
Erase tests for maxlegth and alt
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp 2008-04-29 12:50:09 UTC (rev 8298)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp 2008-04-29 12:57:09 UTC (rev 8299)
@@ -22,25 +22,34 @@
itemClass="#{style.itemClass}"
inputStyle="#{style.inputStyle}"
listClass="#{style.listClass}"
- listStyle="#{style.listStyle}"
- buttonIconDisabled="ddd0"
- buttonIconInactive="ddd1"
-
-
+ listStyle="#{style.listStyle}"
filterNewValues="#{combobox.filterNewValues}"
directInputSuggestions="#{combobox.directInputSuggestions}" immediate="#{combobox.immediate}"
width="#{combobox.width}" valueChangeListener="#{combobox.valueChangeListener}"
tabindex="#{combobox.tabindex}" suggestionValues="#{combobox.suggestionValues}"
required="#{combobox.required}" requiredMessage="#{combobox.requiredMessage}"
- rendered="#{combobox.rendered}" selectFirstOnUpdate="#{combobox.selectFirstOnUpdate}" maxlength="#{combobox.maxlength}"
+ rendered="#{combobox.rendered}" selectFirstOnUpdate="#{combobox.selectFirstOnUpdate}"
enableManualInput="#{combobox.enableManualInput}" listHeight="#{combobox.listHeight}" listWidth="#{combobox.listWidth}" style="#{style.style}" styleClass="#{style.styleClass}"
- onblur="#{event.onblur}" onchange="#{event.onchange}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
- onfocus="#{event.onfocus}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
- onkeyup="#{event.onkeyup}" onlistcall="#{event.onlistcall}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}"
+
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ onfocus="#{event.onfocus}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onlistcall="#{event.onlistcall}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+
binding="#{combobox.myComboBox}"
- align="#{combobox.align}"
- alt="#{combobox.alt}">
+ align="#{combobox.align}">
+ <f:selectItem itemValue="GoshaGoshaGoshaGoshaGosha"/>
</rich:comboBox>
</f:subview>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r8298 - trunk/test-applications/facelets/src/main/java/dataDefinitionList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-29 08:50:09 -0400 (Tue, 29 Apr 2008)
New Revision: 8298
Modified:
trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
Log:
binding
Modified: trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java 2008-04-29 12:49:52 UTC (rev 8297)
+++ trunk/test-applications/facelets/src/main/java/dataDefinitionList/DataDefinitionList.java 2008-04-29 12:50:09 UTC (rev 8298)
@@ -1,7 +1,9 @@
package dataDefinitionList;
import java.util.ArrayList;
-
+import org.richfaces.component.html.HtmlDataDefinitionList;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import util.data.Data;
public class DataDefinitionList
@@ -13,7 +15,18 @@
private String title;
private String dir;
private int mSize;
+ private HtmlDataDefinitionList myDefinitionList = null;
+ private String bindLabel;
+ private String columnClasses;
+ public String getColumnClasses() {
+ return columnClasses;
+ }
+
+ public void setColumnClasses(String columnClasses) {
+ this.columnClasses = columnClasses;
+ }
+
public String getDir() {
return dir;
}
@@ -42,6 +55,8 @@
first = 0;
rendered = true;
title = "title";
+ bindLabel = "not ready";
+ columnClasses = "test,style";
for(int i = 1; i < Data.cityAfrica.length; i++)
arr.add(new Data(Data.cityAfrica[i]));
}
@@ -81,5 +96,26 @@
public ArrayList<Data> getArr() {
return arr;
}
+
+ public HtmlDataDefinitionList getMyDefinitionList() {
+ return myDefinitionList;
+ }
+
+ public void setMyDefinitionList(HtmlDataDefinitionList myDefinitionList) {
+ this.myDefinitionList = myDefinitionList;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myDefinitionList.getBaseClientId(context);
+ }
+
}
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r8297 - trunk/test-applications/facelets/src/main/webapp/DataDefinitionList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-29 08:49:52 -0400 (Tue, 29 Apr 2008)
New Revision: 8297
Modified:
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
Log:
binding
Modified: trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml 2008-04-29 12:48:19 UTC (rev 8296)
+++ trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionList.xhtml 2008-04-29 12:49:52 UTC (rev 8297)
@@ -2,12 +2,15 @@
<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="dataDefinitionListSubviewID">
<rich:dataDefinitionList id="ddListID" value="#{dataDefinitionList.arr}" var="arr" first="#{dataDefinitionList.first}"
rendered="#{dataDefinitionList.rendered}" title="#{dataDefinitionList.title}" dir="#{dataDefinitionList.dir}"
- rows="#{dataDefinitionList.rows}" style="#{style.style}" styleClass="#{style.styleClass}" columnClasses="#{style.columnClasses}" rowClasses="#{style.rowClasses}">
+ rows="#{dataDefinitionList.rows}" style="#{style.style}" styleClass="#{style.styleClass}" columnClasses="#{style.columnClasses}" rowClasses="#{style.rowClasses}"
+ binding="#{dataDefinitionList.myDefinitionList}"
+ rowKeyVar="myVar">
<f:facet name="header">
<h:outputText value="Africa(header):" />
</f:facet>
<h:outputText value="#{arr.str0} " />
<h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
+ <h:outputText value="#{myVar}"></h:outputText>
<f:facet name="footer">
<h:outputText value="Africa(footer);" />
</f:facet>
Modified: trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-04-29 12:48:19 UTC (rev 8296)
+++ trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-04-29 12:49:52 UTC (rev 8297)
@@ -25,5 +25,8 @@
<h:outputText value="rendered" />
<h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}" onchange="submit();" />
+
+ <h:commandButton actionListener="#{dataDefinitionList.checkBinding}" value="Binding"></h:commandButton>
+ <h:outputText value="#{dataDefinitionList.bindLabel}"></h:outputText>
</h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r8296 - trunk/test-applications/facelets/src/main/webapp/DataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-29 08:48:19 -0400 (Tue, 29 Apr 2008)
New Revision: 8296
Modified:
trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml
Log:
+dataTable with dataGrid & multiple inputs inside dataGrid.
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml 2008-04-29 12:47:29 UTC (rev 8295)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml 2008-04-29 12:48:19 UTC (rev 8296)
@@ -71,4 +71,22 @@
<h:outputText value="#{dataTableID.total}" />
</rich:column>
</rich:dataTable>
+
+ <h1>Test page</h1>
+ <a4j:outputPanel id="panel">
+ <h:dataTable id="c1" border="1" value="#{testBean.tables}"
+ var="table">
+ <h:column>
+ <rich:dataGrid id="c2" columns="2" value="#{table.cells}"
+ var="cell">
+ <h:outputLabel value="Value:" for="field" />
+ <h:inputText id="field" value="#{cell.value}" required="true"/>
+ </rich:dataGrid>
+ </h:column>
+ </h:dataTable>
+ <h:messages />
+ </a4j:outputPanel>
+ <h:commandButton action="#{testBean.submit}" value="Submit" />
+ <a4j:commandButton action="#{testBean.submitAjax}" value="Submit Ajax" reRender="panel"/>
+
</f:subview>
16 years, 8 months
JBoss Rich Faces SVN: r8295 - trunk/test-applications/facelets/src/main/java/dataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-29 08:47:29 -0400 (Tue, 29 Apr 2008)
New Revision: 8295
Added:
trunk/test-applications/facelets/src/main/java/dataTable/Cell.java
trunk/test-applications/facelets/src/main/java/dataTable/Table.java
trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java
Log:
+dataGrid with multiple input fields. Testing of bug RF-2076
Added: trunk/test-applications/facelets/src/main/java/dataTable/Cell.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/Cell.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/dataTable/Cell.java 2008-04-29 12:47:29 UTC (rev 8295)
@@ -0,0 +1,13 @@
+package dataTable;
+public class Cell {
+ private Integer value;
+
+ public Integer getValue() {
+ return value;
+ }
+
+ public void setValue(Integer value) {
+ this.value = value;
+ }
+
+}
Added: trunk/test-applications/facelets/src/main/java/dataTable/Table.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/Table.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/dataTable/Table.java 2008-04-29 12:47:29 UTC (rev 8295)
@@ -0,0 +1,15 @@
+package dataTable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class Table {
+ private List<Cell> cells = new ArrayList<Cell>();
+
+ public List<Cell> getCells() {
+ return cells;
+ }
+
+ public void setCells(List<Cell> cells) {
+ this.cells = cells;
+ }
+}
Added: trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java 2008-04-29 12:47:29 UTC (rev 8295)
@@ -0,0 +1,36 @@
+package dataTable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class TestBean {
+
+ private List<Table> tables = new ArrayList<Table>();
+
+ public TestBean() {
+ Table t1 = new Table();
+ tables.add(t1);
+ t1.getCells().add(new Cell());
+ t1.getCells().add(new Cell());
+
+ Table t2 = new Table();
+ tables.add(t2);
+ t2.getCells().add(new Cell());
+ t2.getCells().add(new Cell());
+ }
+
+ public String submit() {
+ return null;
+ }
+
+ public void submitAjax() {
+
+ }
+
+ public List<Table> getTables() {
+ return tables;
+ }
+
+ public void setTables(List<Table> tables) {
+ this.tables = tables;
+ }
+}
16 years, 8 months
JBoss Rich Faces SVN: r8294 - in trunk/test-applications/seleniumTest/src: test/java/org/ajax4jsf/test/base and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-04-29 08:35:51 -0400 (Tue, 29 Apr 2008)
New Revision: 8294
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java
Log:
Modified: trunk/test-applications/seleniumTest/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-29 12:31:51 UTC (rev 8293)
+++ trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-29 12:35:51 UTC (rev 8294)
@@ -309,6 +309,26 @@
}
/**
+ * Asserts DOM node is visible
+ *
+ * @param id -
+ * DOM element id
+ */
+ public void AssertVisible(String id) {
+ Assert.assertTrue(isVisibleById(id));
+ }
+
+ /**
+ * Asserts DOM node is not visible
+ *
+ * @param id -
+ * DOM element id
+ */
+ public void AssertNotVisible(String id) {
+ Assert.assertFalse(isVisibleById(id));
+ }
+
+ /**
* Returns element's text
*
* @param id -
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java 2008-04-29 12:31:51 UTC (rev 8293)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/AjaxStatusTest.java 2008-04-29 12:35:51 UTC (rev 8294)
@@ -2,6 +2,7 @@
import org.ajax4jsf.test.base.SeleniumTestBase;
import org.ajax4jsf.test.base.Templates;
+import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
@@ -32,10 +33,52 @@
@Test
public void testAjaxStatusComponent() throws Exception {
- _testAjaxStatusComponent(Templates.DATATABLE);
+ _testAjaxStatusComponent(Templates.DATATABLE);
}
private void _testAjaxStatusComponent(Templates template) {
renderPage("/faces/pages/ajaxStatus/ajaxStatusTest.xhtml", template);
+
+ String parentId = getParentId() + "_form:";
+ String btn1 = parentId + "button1";
+ clickById(btn1);
+
+ String reg1Status = parentId + "region1:status";
+
+ writeStatus("Ajax request is in progress");
+
+ AssertVisible(reg1Status + ".start");
+ AssertNotVisible(reg1Status + ".stop");
+ String start = getTextById(reg1Status + ".start");
+ Assert.assertTrue(start.startsWith("In progress..."));
+ pause(3000, reg1Status);
+
+ writeStatus("Ajax request completed");
+
+ AssertNotVisible(reg1Status + ".start");
+ AssertVisible(reg1Status + ".stop");
+ String stop = getTextById(reg1Status + ".stop");
+ Assert.assertTrue(stop.startsWith("Complete"));
+
+ String btn2 = parentId + "button2";
+ clickById(btn2);
+
+ String reg2Status = parentId + "region2:status";
+
+ writeStatus("Ajax request is in progress");
+
+ AssertVisible(reg2Status + ".start");
+ AssertNotVisible(reg2Status + ".stop");
+ start = getTextById(reg2Status + ".start");
+ Assert.assertTrue(start.startsWith("In progress..."));
+ pause(3000, reg2Status);
+
+ writeStatus("Ajax request completed");
+
+ AssertNotVisible(reg2Status + ".start");
+ AssertVisible(reg2Status + ".stop");
+ stop = getTextById(reg1Status + ".stop");
+ Assert.assertTrue(stop.startsWith("Complete"));
+
}
}
16 years, 8 months
JBoss Rich Faces SVN: r8293 - trunk/ui/dataTable/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2008-04-29 08:31:51 -0400 (Tue, 29 Apr 2008)
New Revision: 8293
Modified:
trunk/ui/dataTable/src/main/config/component/dataList.xml
Log:
http://jira.jboss.com/jira/browse/RF-3293
Modified: trunk/ui/dataTable/src/main/config/component/dataList.xml
===================================================================
--- trunk/ui/dataTable/src/main/config/component/dataList.xml 2008-04-29 12:23:11 UTC (rev 8292)
+++ trunk/ui/dataTable/src/main/config/component/dataList.xml 2008-04-29 12:31:51 UTC (rev 8293)
@@ -243,7 +243,7 @@
<classname>java.lang.Object</classname>
<description>The current value for this component</description>
</property>
- <property el="false">
+ <property el="false" hide="true" exist="false" existintag="false" >
<name>stateVar</name>
<classname>java.lang.String</classname>
<description>The attribute provides access to a component state on the client side</description>
16 years, 8 months