JBoss Rich Faces SVN: r22497 - in modules/tests/metamer/trunk: ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-17 19:42:01 -0400 (Tue, 17 May 2011)
New Revision: 22497
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java
Log:
Fix summary attribute test
Side by test fix, add id into relevant components in Metamer
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml 2011-05-16 15:17:29 UTC (rev 22496)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml 2011-05-17 23:42:01 UTC (rev 22497)
@@ -59,8 +59,8 @@
type="#{richGraphValidatorBean.attributes['type'].value}"
rendered="#{richGraphValidatorBean.attributes['rendered'].value}" >
<rich:panel id="gv1h" header="Many rich components within rich:graphValidator" style="width:800px">
- <rich:messages id="messages4gv1" for="gv1" />
- <rich:messages id="globalMessages" globalOnly="true" />
+ <rich:messages for="gv1" />
+ <rich:messages id="gv1_globalMessages" globalOnly="true" />
<h:panelGrid columns="6">
<h:outputText for="inplaceSelect" value="Inplace Select" />
<rich:inplaceSelect id="inplaceSelect" value="#{richGraphValidatorBean.inplaceSelect}" >
@@ -104,7 +104,8 @@
<rich:message for="inputSecret" />
<h:outputText for="calendar" value="Calendar" />
- <rich:calendar id="calendar" value="#{richGraphValidatorBean.calendar}" enableManualInput="true" />
+ <rich:calendar id="calendar" value="#{richGraphValidatorBean.calendar}"
+ enableManualInput="true" />
<rich:message for="calendar" />
<h:column/>
@@ -168,9 +169,9 @@
rendered="#{richGraphValidatorBean.attributes['rendered'].value}"
summary="#{richGraphValidatorBean.attributes['summary'].value}"
type="#{richGraphValidatorBean.attributes['type'].value}" >
- <rich:panel header="Change password" style="width:500px">
+ <rich:panel id="gv2h" header="Many rich components within rich:graphValidator" style="width:800px">
<rich:messages for="gv2" />
- <rich:messages globalOnly="true" />
+ <rich:messages id="gv2_globalMessages" globalOnly="true" />
<h:panelGrid columns="6">
<h:outputText for="gv2_inplaceSelect" value="Inplace Select" />
<rich:inplaceSelect id="gv2_inplaceSelect" value="#{richGraphValidatorBean.inplaceSelect}" >
@@ -214,7 +215,8 @@
<rich:message for="gv2_inputSecret" />
<h:outputText for="gv2_calendar" value="Calendar" />
- <rich:calendar id="gv2_calendar" value="#{richGraphValidatorBean.calendar}" enableManualInput="true" />
+ <rich:calendar id="gv2_calendar" value="#{richGraphValidatorBean.calendar}"
+ enableManualInput="true" />
<rich:message for="gv2_calendar" />
<h:column/>
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java 2011-05-16 15:17:29 UTC (rev 22496)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java 2011-05-17 23:42:01 UTC (rev 22497)
@@ -25,6 +25,8 @@
import static org.jboss.test.selenium.utils.URLUtils.buildUrl;
import java.net.URL;
+import java.text.SimpleDateFormat;
+import java.util.Date;
import org.jboss.test.selenium.locator.JQueryLocator;
import org.jboss.test.selenium.locator.option.OptionValueLocator;
@@ -40,13 +42,17 @@
public class RichGraphValidatorTest extends AbstractMetamerTest {
private static final String SMILE = ":-)";
- private static final GraphValidatorAttributes attributes = new GraphValidatorAttributes();
- private static final String[] groups = {"", "javax.validation.groups.Default",
+ private static final String[] GROUPS = {"", "javax.validation.groups.Default",
"org.richfaces.tests.metamer.validation.groups.ValidationGroupAllComponents",
"org.richfaces.tests.metamer.validation.groups.ValidationGroupBooleanInputs",
"org.richfaces.tests.metamer.validation.groups.ValidationGroupNumericInputs"};
+ private static final int BOOLEAN_INPUTS_GROUP = 3;
+ private static final int NUMERIC_INPUTS_GROUP = 4;
+
+ private GraphValidatorAttributes attributes = new GraphValidatorAttributes();
+
private JQueryLocator autocomplete = pjq("input[id$=autocompleteInput]");
private JQueryLocator inputSecret = pjq("input[id$=inputSecret]");
private JQueryLocator inputText = pjq("input[id$=inputText]");
@@ -61,7 +67,8 @@
private JQueryLocator inputNumberSliderInput = pjq("span[id$=inputNumberSlider] input.rf-insl-inp");
private JQueryLocator inputNumberSpinnerInput = pjq("span[id$=inputNumberSpinner] input.rf-insp-inp");
- private JQueryLocator globalMessagesContainer = pjq("span[id$=globalMessages]");
+ private JQueryLocator globalMessagesContainer = pjq("span[id$=_globalMessages]");
+ private JQueryLocator errorMessagesContainer = pjq("span.rf-msgs");
private JQueryLocator header = pjq("div.rf-p-hdr[id$=gv1h_header]");
private OptionValueLocator optionSmile = new OptionValueLocator(SMILE);
@@ -75,16 +82,16 @@
@Test
public void testGroups() {
- for (int i=0; i<groups.length; ++i) {
- attributes.setGroups(groups[i]);
+ for (int i=0; i<GROUPS.length; ++i) {
+ attributes.setGroups(GROUPS[i]);
setAllValidatedFields();
- if (i==3) {
+ if (i == BOOLEAN_INPUTS_GROUP) {
// only Boolean inputs validated
allFieldsSetToWrong();
selenium.check(selectBooleanCheckbox, true);
- } else if (i==4) {
+ } else if (i == NUMERIC_INPUTS_GROUP) {
// only numeric inputs validated
allFieldsSetToWrong();
selenium.type(inputNumberSliderInput, "10");
@@ -97,14 +104,23 @@
// wait for success validation
waitGui.until(textEquals
.locator(globalMessagesContainer.getDescendant(jq("span.rf-msgs-sum")))
- .text("Action sucessfully done!"));
+ .text("Action sucessfully done!"));
}
}
@Test
public void testSummary() {
+ String msg = "My own validation message!";
+ attributes.setSummary(msg);
+
setAllValidatedFields();
- // !!! Seems that there is bug - no content rendered when set summary attr
+ allFieldsSetToWrong();
+
+ selenium.click(applyChangesBtn);
+
+ waitGui.until(textEquals
+ .locator(errorMessagesContainer.getDescendant(jq("span.rf-msgs-sum")))
+ .text(msg));
}
@Test
@@ -120,7 +136,7 @@
// wait for success validation
waitGui.until(textEquals
.locator(globalMessagesContainer.getDescendant(jq("span.rf-msgs-sum")))
- .text("Action sucessfully done!"));
+ .text("Action sucessfully done!"));
}
@Test
@@ -132,7 +148,7 @@
waitGui.until(isNotDisplayed.locator(header));
}
- private void setAllValidatedFields(){
+ private void setAllValidatedFields() {
// inputSecret don't keed entered value after submit
selenium.type(inputSecret, SMILE);
@@ -143,17 +159,21 @@
}
private void allFieldsSetToWrong() {
- selenium.type(inplaceSelect, "---");
- selenium.type(inplaceInput, "---");
+ String wrongString = "---";
+ SimpleDateFormat sdf = new SimpleDateFormat("MMM dd, yyyy");
+ String wrongDate = sdf.format(new Date(System.currentTimeMillis() + 24*60*60*1000));
+
+ selenium.type(inplaceSelect, wrongString);
+ selenium.type(inplaceInput, wrongString);
selenium.type(inputNumberSpinnerInput, "10");
selenium.check(selectBooleanCheckbox, false);
- selenium.type(inputSecret, "---");
+ selenium.type(inputSecret, wrongString);
selenium.type(inputNumberSliderInput, "15");
selenium.type(inputNumberSpinnerInput, "15");
- selenium.type(autocomplete, "---");
- selenium.type(inputText, "---");
- selenium.type(calendar, "");
- selenium.type(inputTextArea, "---");
+ selenium.type(autocomplete, wrongString);
+ selenium.type(inputText, wrongString);
+ selenium.type(calendar, wrongDate);
+ selenium.type(inputTextArea, wrongString);
}
}
13 years, 7 months
JBoss Rich Faces SVN: r22496 - modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-16 11:17:29 -0400 (Mon, 16 May 2011)
New Revision: 22496
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml
Log:
Fix summary attribute behavior
Missing part under condition when summary attr != null
caused that form weren't rendered.
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml 2011-05-16 15:17:15 UTC (rev 22495)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml 2011-05-16 15:17:29 UTC (rev 22496)
@@ -171,11 +171,102 @@
<rich:panel header="Change password" style="width:500px">
<rich:messages for="gv2" />
<rich:messages globalOnly="true" />
- <h:panelGrid columns="3">
+ <h:panelGrid columns="6">
+ <h:outputText for="gv2_inplaceSelect" value="Inplace Select" />
+ <rich:inplaceSelect id="gv2_inplaceSelect" value="#{richGraphValidatorBean.inplaceSelect}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </rich:inplaceSelect>
+ <rich:message for="gv2_inplaceSelect" />
+ <h:outputText for="gv2_select" value="Select" />
+ <rich:select id="gv2_select" value="#{richGraphValidatorBean.select}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </rich:select>
+ <rich:message for="gv2_select" />
+
+ <h:outputText for="gv2_inplaceInput" value="Inplace Input" />
+ <rich:inplaceInput id="gv2_inplaceInput" value="#{richGraphValidatorBean.inplaceInput}" />
+ <rich:message for="gv2_inplaceInput" />
+
+ <h:outputText for="gv2_inputNumberSlider" value="Input Number Slider" />
+ <rich:inputNumberSlider id="gv2_inputNumberSlider" value="#{richGraphValidatorBean.inputNumberSlider}" />
+ <rich:message for="gv2_inputNumberSlider" />
+
+ <h:outputText for="gv2_inputNumberSpinner" value="Input Number Spinner" />
+ <rich:inputNumberSpinner id="gv2_inputNumberSpinner" value="#{richGraphValidatorBean.inputNumberSpinner}" />
+ <rich:message for="gv2_inputNumberSpinner" />
+
+ <h:outputText for="gv2_autocomplete" value="Autocomplete" />
+ <rich:autocomplete id="gv2_autocomplete" value="#{richGraphValidatorBean.autocompleteInput}"
+ autocompleteMethod="#{richGraphValidatorBean.autocomplete}" />
+ <rich:message for="gv2_autocomplete" />
+
+ <h:outputText for="gv2_selectBooleanCheckbox" value="Select Boolean Checkbox" />
+ <h:selectBooleanCheckbox id="gv2_selectBooleanCheckbox" value="#{richGraphValidatorBean.selectBooleanCheckbox}" />
+ <rich:message for="gv2_selectBooleanCheckbox" />
+
+ <h:outputText for="gv2_inputText" value="Input Text" />
+ <h:inputText id="gv2_inputText" value="#{richGraphValidatorBean.inputText}" />
+ <rich:message for="gv2_inputText" />
+
+ <h:outputText for="gv2_inputSecret" value="Input Secret" />
+ <h:inputSecret id="gv2_inputSecret" value="#{richGraphValidatorBean.inputSecret}" />
+ <rich:message for="gv2_inputSecret" />
+
+ <h:outputText for="gv2_calendar" value="Calendar" />
+ <rich:calendar id="gv2_calendar" value="#{richGraphValidatorBean.calendar}" enableManualInput="true" />
+ <rich:message for="gv2_calendar" />
+
+ <h:column/>
+ <h:column/>
+ <h:column/>
+
+ <h:outputText for="gv2_inputTextarea" value="Input Text Area" />
+ <h:inputTextarea id="gv2_inputTextarea" value="#{richGraphValidatorBean.inputTextarea}" />
+ <rich:message for="gv2_inputTextarea" />
+
+ <h:outputText for="gv2_selectOneListbox" value="Select One Listbox" />
+ <h:selectOneListbox id="gv2_selectOneListbox" value="#{richGraphValidatorBean.selectOneListbox}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </h:selectOneListbox>
+ <rich:message for="gv2_selectOneListbox" />
+
+ <h:outputText for="gv2_selectManyCheckbox" value="Select Many Checkbox" />
+ <h:selectManyCheckbox id="gv2_selectManyCheckbox"
+ value="#{richGraphValidatorBean.selectManyCheckbox}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </h:selectManyCheckbox>
+ <rich:message for="gv2_selectManyCheckbox" />
+
+ <h:outputText for="gv2_selectManyListbox" value="Select Many Listbox" />
+ <h:selectManyListbox id="gv2_selectManyListbox" value="#{richGraphValidatorBean.selectManyListbox}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </h:selectManyListbox>
+ <rich:message for="gv2_selectManyListbox" />
+
+ <h:outputText for="gv2_selectOneMenu" value="Select One Menu" />
+ <h:selectOneMenu id="gv2_selectOneMenu" value="#{richGraphValidatorBean.selectOneMenu}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </h:selectOneMenu>
+ <rich:message for="gv2_selectOneMenu" />
+
+ <h:outputText for="gv2_selectManyMenu" value="Select Many Menu" />
+ <h:selectManyMenu id="gv2_selectManyMenu" value="#{richGraphValidatorBean.selectManyMenu}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </h:selectManyMenu>
+ <rich:message for="gv2_selectManyMenu" />
+
+ <h:outputText for="gv2_selectOneRadio" value="Select One Radio" />
+ <h:selectOneRadio id="gv2_selectOneRadio" value="#{richGraphValidatorBean.selectOneRadio}" >
+ <f:selectItems value="#{richGraphValidatorBean.selectItems}" />
+ </h:selectOneRadio>
+ <rich:message for="gv2_selectOneRadio" />
+
</h:panelGrid>
- <a4j:commandButton value="Store changes"
- action="#{richGraphValidatorBean.anotherActionOnAllComponents}" />
+ <a4j:commandButton id="gv2_applyChanges"
+ value="Apply changes"
+ action="#{richGraphValidatorBean.anotherActionOnAllComponents}" />
+
</rich:panel>
</rich:graphValidator>
</ui:fragment>
13 years, 7 months
JBoss Rich Faces SVN: r22495 - modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-16 11:17:15 -0400 (Mon, 16 May 2011)
New Revision: 22495
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml
Log:
Add example of dynamic tab creation into Metamer
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml 2011-05-16 14:43:51 UTC (rev 22494)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml 2011-05-16 15:17:15 UTC (rev 22495)
@@ -34,6 +34,10 @@
<metamer:testPageLink id="simple" outcome="simple" value="Simple">
Simple page containing <b>rich:tabPanel</b> and input boxes for all its attributes.
</metamer:testPageLink>
+
+ <metamer:testPageLink id="addTab" outcome="addTab" value="Simple">
+ Simple page containing <b>rich:tabPanel</b> and buttons for create new tabs
+ </metamer:testPageLink>
</ui:define>
13 years, 7 months
JBoss Rich Faces SVN: r22494 - in modules/tests/metamer/trunk/application/src/main: webapp/components/richTabPanel and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-16 10:43:51 -0400 (Mon, 16 May 2011)
New Revision: 22494
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/addTab.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichTabPanelBean.java
Log:
Add example of dynamic tab creation into Metamer
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichTabPanelBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichTabPanelBean.java 2011-05-16 13:22:43 UTC (rev 22493)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichTabPanelBean.java 2011-05-16 14:43:51 UTC (rev 22494)
@@ -21,16 +21,20 @@
*******************************************************************************/
package org.richfaces.tests.metamer.bean.rich;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+
+import org.richfaces.component.UITab;
import org.richfaces.component.UITabPanel;
import org.richfaces.tests.metamer.Attributes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import javax.annotation.PostConstruct;
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.ViewScoped;
-import java.io.Serializable;
-
/**
* Managed bean for rich:tabPanel.
*
@@ -44,6 +48,8 @@
private static final long serialVersionUID = -1L;
private static Logger logger;
private Attributes attributes;
+
+ private List<UITab> tabs = new ArrayList<UITab>();
/**
* Initializes the managed bean.
@@ -66,6 +72,19 @@
attributes.setAttribute("bypassUpdates", null);
attributes.get("bypassUpdates").setType(Boolean.class);
}
+
+ public void createNewTab() {
+
+ UITab tab = new UITab();
+ int index = tabs.size() + 6; // there is already 5 tabs
+
+ tab.setHeader("tab" + index + " header");
+ tab.setId("tab" + index);
+ tab.setName("tab" + index);
+ tab.setRender("tab" + index);
+
+ tabs.add(tab);
+ }
public Attributes getAttributes() {
return attributes;
@@ -74,4 +93,12 @@
public void setAttributes(Attributes attributes) {
this.attributes = attributes;
}
+
+ public List<UITab> getTabs() {
+ return tabs;
+ }
+
+ public void setTabs(List<UITab> tabs) {
+ this.tabs = tabs;
+ }
}
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/addTab.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/addTab.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/addTab.xhtml 2011-05-16 14:43:51 UTC (rev 22494)
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+ xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j" xmlns:c="http://java.sun.com/jsp/jstl/core" >
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. 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.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates" value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:tabPanel id="tabPanel"
+ activeItem="#{richTabPanelBean.attributes['activeItem'].value}"
+ cycledSwitching="#{richTabPanelBean.attributes['cycledSwitching'].value}"
+ dir="#{richTabPanelBean.attributes['dir'].value}"
+ headerAlignment="#{richTabPanelBean.attributes['headerAlignment'].value}"
+ headerPosition="#{richTabPanelBean.attributes['headerPosition'].value}"
+ immediate="#{richTabPanelBean.attributes['immediate'].value}"
+ itemChangeListener="#{richBean.itemChangeListener}"
+ lang="#{richTabPanelBean.attributes['lang'].value}"
+ onbeforeitemchange="#{richTabPanelBean.attributes['onbeforeitemchange'].value}"
+ onclick="#{richTabPanelBean.attributes['onclick'].value}"
+ ondblclick="#{richTabPanelBean.attributes['ondblclick'].value}"
+ onitemchange="#{richTabPanelBean.attributes['onitemchange'].value}"
+ onmousedown="#{richTabPanelBean.attributes['onmousedown'].value}"
+ onmousemove="#{richTabPanelBean.attributes['onmousemove'].value}"
+ onmouseout="#{richTabPanelBean.attributes['onmouseout'].value}"
+ onmouseover="#{richTabPanelBean.attributes['onmouseover'].value}"
+ onmouseup="#{richTabPanelBean.attributes['onmouseup'].value}"
+ rendered="#{richTabPanelBean.attributes['rendered'].value}"
+ style="#{richTabPanelBean.attributes['style'].value}"
+ styleClass="#{richTabPanelBean.attributes['styleClass'].value}"
+ switchType="#{richTabPanelBean.attributes['switchType'].value}"
+ tabActiveHeaderClass="#{richTabPanelBean.attributes['tabActiveHeaderClass'].value}"
+ tabContentClass="#{richTabPanelBean.attributes['tabContentClass'].value}"
+ tabDisabledHeaderClass="#{richTabPanelBean.attributes['tabDisabledHeaderClass'].value}"
+ tabHeaderClass="#{richTabPanelBean.attributes['tabHeaderClass'].value}"
+ tabInactiveHeaderClass="#{richTabPanelBean.attributes['tabInactiveHeaderClass'].value}"
+ title="#{richTabPanelBean.attributes['title'].value}"
+ >
+
+ <rich:tab id="tab1" name="tab1" header="tab1 header">
+ content of tab 1
+ </rich:tab>
+ <rich:tab id="tab2" name="tab2" header="tab2 header">
+ content of tab 2
+ </rich:tab>
+ <rich:tab id="tab3" name="tab3" header="tab3 header">
+ content of tab 3
+ </rich:tab>
+ <rich:tab id="tab4" name="tab4" header="tab4 header" disabled="true">
+ content of tab 4
+ </rich:tab>
+ <rich:tab id="tab5" name="tab5" header="tab5 header">
+ content of tab 5
+ </rich:tab>
+
+ <c:forEach items="#{richTabPanelBean.tabs}" var="newTab">
+ <rich:tab binding="#{newTab}" >
+ content of tab
+ </rich:tab>
+ </c:forEach>
+
+ </rich:tabPanel>
+
+ <br/><br/>
+ <fieldset>
+ <legend>JavaScript API</legend>
+
+ <script type="text/javascript">
+ testedComponentId = "#{rich:clientId('tabPanel')}";
+ </script>
+
+ <h:commandButton id="switchButton1" value="switch to tab1">
+ <rich:componentControl event="click" operation="switchToItem" target="tabPanel" >
+ <f:param value="tab1" />
+ </rich:componentControl>
+ </h:commandButton>
+ <h:commandButton id="switchButton2" value="switch to tab2">
+ <rich:componentControl event="click" operation="switchToItem" target="tabPanel" >
+ <f:param value="tab2" />
+ </rich:componentControl>
+ </h:commandButton>
+ <h:commandButton id="switchButton3" value="switch to tab3">
+ <rich:componentControl event="click" operation="switchToItem" target="tabPanel" >
+ <f:param value="tab3" />
+ </rich:componentControl>
+ </h:commandButton>
+ <h:commandButton id="switchButton4" value="switch to tab4">
+ <rich:componentControl event="click" operation="switchToItem" target="tabPanel" >
+ <f:param value="tab4" />
+ </rich:componentControl>
+ </h:commandButton>
+ <h:commandButton id="switchButton5" value="switch to tab5">
+ <rich:componentControl event="click" operation="switchToItem" target="tabPanel" >
+ <f:param value="tab5" />
+ </rich:componentControl>
+ </h:commandButton>
+
+ <h:commandButton id="hCreateTabButton" value="[h] Create tab"
+ actionListener="#{richTabPanelBean.createNewTab}" />
+ <a4j:commandButton id="a4jCreateTabButton" value="[a4j] Create tab"
+ render="tabPanel"
+ actionListener="#{richTabPanelBean.createNewTab}" />
+
+ </fieldset>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richTabPanelBean.attributes}" id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
13 years, 7 months
JBoss Rich Faces SVN: r22493 - in modules/tests/metamer/trunk: application/src/main/java/org/richfaces/tests/metamer/bean/rich and 22 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-05-16 09:22:43 -0400 (Mon, 16 May 2011)
New Revision: 22493
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Message.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichGraphValidatorBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichMessagesBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichValidatorBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/converter/EmptyStringToNullConverter.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/converter/ValueConverter.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/AbstractNode.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/KeyConverter.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/LazyLoadable.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/LazyLoadingChecker.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/ModelNode.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/ModelNodeImpl.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/Node.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/RecursiveNode.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/RecursiveNodeImpl.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/LastYearValidator.java
modules/tests/metamer/trunk/application/src/test/java/org/richfaces/tests/metamer/TestRichTreeModelRecursiveAdaptorBeanSerialization.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/jboss/test/selenium/GuardRequest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/DelayTester.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAttachQueue/TestAttachQueueNamed.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jRegion/TestRegionSimple.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarFAjax.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDropTarget/DropTargetAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDropTarget/TestDropTarget.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceInput/TestRichInplaceInputFAjax.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelectFAjax.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/AbstractSliderTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/AbstractSpinnerTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/TestRichSpinnerFAjax.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/AbstractRichMessageTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/RichMessageComponentAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageCSV.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/RichMessagesTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesCSV.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSFValidator.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSR303.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenu/PanelMenuAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/AbstractPanelMenuGroupTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/PanelMenuGroupAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupClientSideHandlers.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupDOMEventHandlers.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupMode.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupSimple.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/PanelMenuItemAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemClientSideHandlers.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemDOMEventHandlers.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemMode.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemSimple.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richSelect/TestRichSelectFAjax.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/RecursiveModelRepresentation.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorLazyLoading.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorSelection.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorSimple.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorToggling.java
Log:
svn keyword "Revision" added
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Message.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichGraphValidatorBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichMessagesBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichValidatorBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/converter/EmptyStringToNullConverter.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/converter/ValueConverter.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/AbstractNode.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/KeyConverter.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/LazyLoadable.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/LazyLoadingChecker.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/ModelNode.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/ModelNodeImpl.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/Node.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/RecursiveNode.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/model/treeAdaptor/RecursiveNodeImpl.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/LastYearValidator.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/test/java/org/richfaces/tests/metamer/TestRichTreeModelRecursiveAdaptorBeanSerialization.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/jboss/test/selenium/GuardRequest.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/DelayTester.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAttachQueue/TestAttachQueueNamed.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jRegion/TestRegionSimple.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarFAjax.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richCalendar/TestRichCalendarModel.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDropTarget/DropTargetAttributes.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richDropTarget/TestDropTarget.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceInput/TestRichInplaceInputFAjax.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInplaceSelect/TestRichInplaceSelectFAjax.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSlider/AbstractSliderTest.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/AbstractSpinnerTest.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richInputNumberSpinner/TestRichSpinnerFAjax.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/AbstractRichMessageTest.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/RichMessageComponentAttributes.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageCSV.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/RichMessagesTest.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesCSV.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSFValidator.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSR303.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenu/PanelMenuAttributes.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/AbstractPanelMenuGroupTest.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/PanelMenuGroupAttributes.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupClientSideHandlers.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupDOMEventHandlers.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupMode.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuGroup/TestPanelMenuGroupSimple.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/PanelMenuItemAttributes.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemClientSideHandlers.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemDOMEventHandlers.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemMode.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPanelMenuItem/TestPanelMenuItemSimple.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richSelect/TestRichSelectFAjax.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/RecursiveModelRepresentation.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorLazyLoading.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorSelection.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorSimple.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richTreeModelAdaptor/TestTreeModelAdaptorToggling.java
___________________________________________________________________
Added: svn:keywords
+ Revision
13 years, 7 months
JBoss Rich Faces SVN: r22492 - in modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer: validation and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2011-05-16 09:12:59 -0400 (Mon, 16 May 2011)
New Revision: 22492
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/listener/HornetQInitializer.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/listener/TopicsInitializer.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/AssertFalseBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/AssertTrueBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/DecimalMinMaxBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/DigitsBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/FutureBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MaxBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MinBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MinMaxBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MultipleValidationRulesBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/NotEmptyBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/NotNullBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/PastBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/PatternBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/SizeBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/StringSizeBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/Validable.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroup1.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroup2.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroupAllComponents.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroupBooleanInputs.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroupNumericInputs.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/PositiveNumberValidator.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/StringHawaiiValidator.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/StringRichFacesValidator.java
Log:
added svn keyword Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/listener/HornetQInitializer.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/listener/TopicsInitializer.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/AssertFalseBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/AssertTrueBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/DecimalMinMaxBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/DigitsBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/FutureBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MaxBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MinBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MinMaxBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/MultipleValidationRulesBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/NotEmptyBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/NotNullBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/PastBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/PatternBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/SizeBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/StringSizeBean.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/Validable.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroup1.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroup2.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroupAllComponents.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroupBooleanInputs.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validation/groups/ValidationGroupNumericInputs.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/PositiveNumberValidator.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/StringHawaiiValidator.java
___________________________________________________________________
Added: svn:keywords
+ Revision
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/validator/StringRichFacesValidator.java
___________________________________________________________________
Added: svn:keywords
+ Revision
13 years, 7 months
JBoss Rich Faces SVN: r22491 - modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-15 21:12:43 -0400 (Sun, 15 May 2011)
New Revision: 22491
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml
Log:
Fix autocomplete.xhtml formatting
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml 2011-05-16 01:12:26 UTC (rev 22490)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml 2011-05-16 01:12:43 UTC (rev 22491)
@@ -92,10 +92,10 @@
>
<a4j:ajax event="change"
- render="#{richAutocompleteBean.ajaxAttributes['render'].value}"
- execute="#{richAutocompleteBean.ajaxAttributes['execute'].value}"
- listener="#{richBean.changeEventListener}" />
-
+ render="#{richAutocompleteBean.ajaxAttributes['render'].value}"
+ execute="#{richAutocompleteBean.ajaxAttributes['execute'].value}"
+ listener="#{richBean.changeEventListener}" />
+
<a4j:ajax event="selectitem" render="output"
listener="#{richBean.actionListener}"
/>
13 years, 7 months
JBoss Rich Faces SVN: r22490 - in modules/tests/metamer/trunk/application/src/main: webapp/components/richValidator and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-15 21:12:26 -0400 (Sun, 15 May 2011)
New Revision: 22490
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichValidatorBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richValidator/csv.xhtml
Log:
Add regExp based validator into client-side validation testing.
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichValidatorBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichValidatorBean.java 2011-05-16 01:11:22 UTC (rev 22489)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichValidatorBean.java 2011-05-16 01:12:26 UTC (rev 22490)
@@ -46,6 +46,8 @@
private static Logger logger;
private Attributes attributes;
private String stringValue = "RichFaces";
+ private String regExp = "\\d{3}";
+ private String regexpValue = "100";
/**
* Initializes the managed bean.
@@ -73,4 +75,20 @@
public void setStringValue(String stringValue) {
this.stringValue = stringValue;
}
+
+ public String getRegexpValue() {
+ return regexpValue;
+ }
+
+ public void setRegexpValue(String regexpValue) {
+ this.regexpValue = regexpValue;
+ }
+
+ public String getRegExp() {
+ return regExp;
+ }
+
+ public void setRegExp(String regExp) {
+ this.regExp = regExp;
+ }
}
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richValidator/csv.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richValidator/csv.xhtml 2011-05-16 01:11:22 UTC (rev 22489)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richValidator/csv.xhtml 2011-05-16 01:12:26 UTC (rev 22490)
@@ -283,7 +283,24 @@
/>
</h:inputText>
<rich:message id="customMsg" for="custom" />
-
+
+ <h:outputLabel for="regexp" value="custom regexp validator (pattern: #{richValidatorBean.regExp})" />
+ <h:inputText id="regexp" value="#{richValidatorBean.regexpValue}" label="custom">
+ <f:validateRegex pattern="#{richValidatorBean.regExp}" />
+ <rich:validator data="#{richValidatorBean.attributes['data'].value}"
+ disabled="#{richValidatorBean.attributes['disabled'].value}"
+ immediate="#{richValidatorBean.attributes['immediate'].value}"
+ onbeforedomupdate="#{richValidatorBean.attributes['onbeforedomupdate'].value}"
+ onbeforesubmit="#{richValidatorBean.attributes['onbeforesubmit'].value}"
+ onbegin="#{richValidatorBean.attributes['onbegin'].value}"
+ oncomplete="#{richValidatorBean.attributes['oncomplete'].value}"
+ onerror="#{richValidatorBean.attributes['onerror'].value}"
+ queueId="#{richValidatorBean.attributes['queueId'].value}"
+ status="#{richValidatorBean.attributes['status'].value}"
+ />
+ </h:inputText>
+ <rich:message id="regexpMsg" for="regexp" />
+
<h:outputLabel for="past" value="#{pastBean.description}" />
<h:inputText id="past" value="#{pastBean.value}" label="#{pastBean.label}" >
<f:convertDateTime pattern="d MMM yyyy"/>
13 years, 7 months
JBoss Rich Faces SVN: r22489 - in modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest: richGraphValidator and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-15 21:11:22 -0400 (Sun, 15 May 2011)
New Revision: 22489
Added:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/GraphValidatorAttributes.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java
Log:
Add selenium tests for rich:graphValidator into Metamer
Added: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/GraphValidatorAttributes.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/GraphValidatorAttributes.java (rev 0)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/GraphValidatorAttributes.java 2011-05-16 01:11:22 UTC (rev 22489)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010-2011, Red Hat, Inc. 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.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.ftest.richGraphValidator;
+
+import org.richfaces.tests.metamer.ftest.AbstractComponentAttributes;
+
+/**
+ * Component attributes for rich:graphValidator
+ *
+ * @author <a href="mailto:jjamrich@redhat.com">Jan Jamrich</a>
+ * @version $Revision$
+ */
+public class GraphValidatorAttributes extends AbstractComponentAttributes {
+
+ public void setRendered(Boolean rendered) {
+ setProperty("rendered", rendered);
+ }
+
+ public void setSummary(String summary) {
+ setProperty("summary", summary);
+ }
+
+ public void setValue(String value) {
+ setProperty("value", value);
+ }
+
+ public void setGroups(String groups) {
+ setProperty("groups", groups);
+ }
+
+}
Added: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java (rev 0)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richGraphValidator/RichGraphValidatorTest.java 2011-05-16 01:11:22 UTC (rev 22489)
@@ -0,0 +1,159 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010-2011, Red Hat, Inc. 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.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.ftest.richGraphValidator;
+
+import static org.jboss.test.selenium.locator.LocatorFactory.jq;
+import static org.jboss.test.selenium.utils.URLUtils.buildUrl;
+
+import java.net.URL;
+
+import org.jboss.test.selenium.locator.JQueryLocator;
+import org.jboss.test.selenium.locator.option.OptionValueLocator;
+import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
+import org.testng.annotations.Test;
+
+/**
+ * Test for page /faces/components/richGraphValidator/all.xhtml
+ *
+ * @author <a href="mailto:jjamrich@redhat.com">Jan Jamrich</a>
+ * @version $Revision$
+ */
+public class RichGraphValidatorTest extends AbstractMetamerTest {
+
+ private static final String SMILE = ":-)";
+ private static final GraphValidatorAttributes attributes = new GraphValidatorAttributes();
+
+ private static final String[] groups = {"", "javax.validation.groups.Default",
+ "org.richfaces.tests.metamer.validation.groups.ValidationGroupAllComponents",
+ "org.richfaces.tests.metamer.validation.groups.ValidationGroupBooleanInputs",
+ "org.richfaces.tests.metamer.validation.groups.ValidationGroupNumericInputs"};
+
+ private JQueryLocator autocomplete = pjq("input[id$=autocompleteInput]");
+ private JQueryLocator inputSecret = pjq("input[id$=inputSecret]");
+ private JQueryLocator inputText = pjq("input[id$=inputText]");
+ private JQueryLocator calendar = pjq("input[id$=calendarInputDate]");
+ private JQueryLocator inputTextArea = pjq("textarea[id$=inputTextarea]");
+ private JQueryLocator inplaceSelect = pjq("span[id$=inplaceSelect] input[id$=inplaceSelectFocus]");
+ private JQueryLocator inplaceInput = pjq("span[id$=inplaceInput] input[id$=inplaceInputFocus]");
+ private JQueryLocator selectManyCheckbox = pjq("input[id$=selectManyCheckbox:4]");
+ private JQueryLocator selectManyListbox = pjq("select[id$=selectManyListbox]");
+ private JQueryLocator selectManyMenu = pjq("select[id$=selectManyMenu]");
+ private JQueryLocator selectBooleanCheckbox = pjq("input[id$=selectBooleanCheckbox]");
+ private JQueryLocator inputNumberSliderInput = pjq("span[id$=inputNumberSlider] input.rf-insl-inp");
+ private JQueryLocator inputNumberSpinnerInput = pjq("span[id$=inputNumberSpinner] input.rf-insp-inp");
+
+ private JQueryLocator globalMessagesContainer = pjq("span[id$=globalMessages]");
+ private JQueryLocator header = pjq("div.rf-p-hdr[id$=gv1h_header]");
+
+ private OptionValueLocator optionSmile = new OptionValueLocator(SMILE);
+
+ private JQueryLocator applyChangesBtn = pjq("input[id$=applyChanges]");
+
+ @Override
+ public URL getTestUrl() {
+ return buildUrl(contextPath, "faces/components/richGraphValidator/all.xhtml");
+ }
+
+ @Test
+ public void testGroups() {
+ for (int i=0; i<groups.length; ++i) {
+ attributes.setGroups(groups[i]);
+
+ setAllValidatedFields();
+
+ if (i==3) {
+ // only Boolean inputs validated
+ allFieldsSetToWrong();
+ selenium.check(selectBooleanCheckbox, true);
+ } else if (i==4) {
+ // only numeric inputs validated
+ allFieldsSetToWrong();
+ selenium.type(inputNumberSliderInput, "10");
+ selenium.type(inputNumberSpinnerInput, "10");
+ }
+
+ // let's submit the form
+ selenium.click(applyChangesBtn);
+
+ // wait for success validation
+ waitGui.until(textEquals
+ .locator(globalMessagesContainer.getDescendant(jq("span.rf-msgs-sum")))
+ .text("Action sucessfully done!"));
+ }
+ }
+
+ @Test
+ public void testSummary() {
+ setAllValidatedFields();
+ // !!! Seems that there is bug - no content rendered when set summary attr
+ }
+
+ @Test
+ public void testValue() {
+
+ attributes.setValue("testValue");
+
+ setAllValidatedFields();
+
+ // let's submit the form
+ selenium.click(applyChangesBtn);
+
+ // wait for success validation
+ waitGui.until(textEquals
+ .locator(globalMessagesContainer.getDescendant(jq("span.rf-msgs-sum")))
+ .text("Action sucessfully done!"));
+ }
+
+ @Test
+ public void testRendered() {
+ setAllValidatedFields();
+
+ attributes.setRendered(Boolean.FALSE);
+
+ waitGui.until(isNotDisplayed.locator(header));
+ }
+
+ private void setAllValidatedFields(){
+ // inputSecret don't keed entered value after submit
+ selenium.type(inputSecret, SMILE);
+
+ // input returning List/Set are by default without any element checked
+ selenium.check(selectManyCheckbox, true);
+ selenium.select(selectManyListbox, optionSmile);
+ selenium.select(selectManyMenu, optionSmile);
+ }
+
+ private void allFieldsSetToWrong() {
+ selenium.type(inplaceSelect, "---");
+ selenium.type(inplaceInput, "---");
+ selenium.type(inputNumberSpinnerInput, "10");
+ selenium.check(selectBooleanCheckbox, false);
+ selenium.type(inputSecret, "---");
+
+ selenium.type(inputNumberSliderInput, "15");
+ selenium.type(inputNumberSpinnerInput, "15");
+ selenium.type(autocomplete, "---");
+ selenium.type(inputText, "---");
+ selenium.type(calendar, "");
+ selenium.type(inputTextArea, "---");
+ }
+}
13 years, 7 months
JBoss Rich Faces SVN: r22488 - modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2011-05-15 21:10:59 -0400 (Sun, 15 May 2011)
New Revision: 22488
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml
Log:
Fix element locators in graphValidator example
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml 2011-05-16 01:10:44 UTC (rev 22487)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richGraphValidator/all.xhtml 2011-05-16 01:10:59 UTC (rev 22488)
@@ -58,9 +58,9 @@
groups="#{richGraphValidatorBean.validationGroups}"
type="#{richGraphValidatorBean.attributes['type'].value}"
rendered="#{richGraphValidatorBean.attributes['rendered'].value}" >
- <rich:panel header="Many rich components within rich:graphValidator" style="width:800px">
- <rich:messages for="gv1" />
- <rich:messages globalOnly="true" />
+ <rich:panel id="gv1h" header="Many rich components within rich:graphValidator" style="width:800px">
+ <rich:messages id="messages4gv1" for="gv1" />
+ <rich:messages id="globalMessages" globalOnly="true" />
<h:panelGrid columns="6">
<h:outputText for="inplaceSelect" value="Inplace Select" />
<rich:inplaceSelect id="inplaceSelect" value="#{richGraphValidatorBean.inplaceSelect}" >
@@ -104,7 +104,7 @@
<rich:message for="inputSecret" />
<h:outputText for="calendar" value="Calendar" />
- <rich:calendar id="calendar" value="#{richGraphValidatorBean.calendar}" />
+ <rich:calendar id="calendar" value="#{richGraphValidatorBean.calendar}" enableManualInput="true" />
<rich:message for="calendar" />
<h:column/>
13 years, 7 months