Author: vmolotkov
Date: 2008-11-20 10:43:45 -0500 (Thu, 20 Nov 2008)
New Revision: 11276
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testBasicBehaviour.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testControlsFacet.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testDefaultLabelAndSpaces.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testEditEventAttribute.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testImmediateAttribute.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testJSApi.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testProcessingInvalidValue.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRenderedAttribute.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRequiredAttributes.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute1.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute2.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testStandartAttributes.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValidator.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValueChangeListener.xhtml
Log:
tests for inplaceinput
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testBasicBehaviour.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testBasicBehaviour.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testBasicBehaviour.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testBasicBehaviour</ui:define>
+ <ui:define name="caseBody">
+ <h:form id="_form">
+ <h:panelGroup id="group_tbb">
+ <table cellpadding="5" >
+ <tr>
+ <td></td>
+ <td>
+ <rich:inplaceSelect id="ii_tbb"
value="#{inplaceInputBean.iiValue}">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+ </td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testControlsFacet.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testControlsFacet.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testControlsFacet.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testControlsFacet</ui:define>
+ <ui:define name="caseBody">
+ <h:form id="_form">
+ <rich:inplaceSelect id="ii_tcf"
value="#{inplaceSelectBean.isValue}" showControls="true">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ <f:facet name="controls">
+ <button id="ok_tcf">ok</button>
+ <button id="canclel_tcf">cancel</button>
+ </f:facet>
+ </rich:inplaceSelect>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testDefaultLabelAndSpaces.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testDefaultLabelAndSpaces.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testDefaultLabelAndSpaces.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testControlsFacet</ui:define>
+ <ui:define name="caseBody">
+ <h:form id="_form">
+ <rich:inplaceSelect id="ii_dfas" value=""
defaultLabel="defaultLabel">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testEditEventAttribute.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testEditEventAttribute.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testEditEventAttribute.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testEditEventAttribute</ui:define>
+ <ui:define name="caseBody">
+ <ui:include src="includes/testBody.xhtml">
+ <ui:param name="test_prefix" value="teea"/>
+ <ui:param name="required" value="false"/>
+ <ui:param name="value" value="value"/>
+ <ui:param name="requiredMessage" value="" />
+ <ui:param name="editEvent" value="ondblclick" />
+ </ui:include>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testImmediateAttribute.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testImmediateAttribute.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testImmediateAttribute.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testImmediateAttribute</ui:define>
+ <ui:define name="caseBody">
+ <h:panelGroup id="group_tia">
+ <h:form id="_form">
+ <table cellpadding="5" >
+ <tr>
+ <td></td>
+ <td>
+ <h:inputText value="" required="true"
></h:inputText>
+ <rich:inplaceSelect id="ii_tia"
value="#{inplaceSelectBean.isValue}"
validator="#{inplaceSelectBean.validator}" immediate="true">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+ <a4j:commandButton id="bn_tia" reRender="group_tia"
value="Submit"/>
+ </td>
+ <td><span
id="text_tia">#{inplaceSelectBean.isValue}<h:messages
/></span></td>
+ </tr>
+ </table>
+ </h:form>
+ </h:panelGroup>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testJSApi.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testJSApi.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testJSApi.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testJSApi</ui:define>
+ <ui:define name="caseBody">
+ <h:form id="_form">
+ <h:panelGroup id="group_tpiv">
+ <table cellpadding="5" >
+ <tr>
+ <td></td>
+ <td>
+ <rich:inplaceSelect id="ii_tja"
value="#{inplaceSelectBean.isValue}" showControls="true">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+
+ <button id="okButton_tja"
onclick="#{rich:component('ii_tja')}.save();return
false;">ok</button>
+ <button id="cancelButton_tja"
onclick="#{rich:component('ii_tja')}.cancel();return
false;">cancel</button>
+
+ </td>
+ <td></td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testProcessingInvalidValue.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testProcessingInvalidValue.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testProcessingInvalidValue.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testValidator</ui:define>
+ <ui:define name="caseBody">
+ <h:form id="_form">
+ <h:panelGroup id="group_tpiv">
+ <table cellpadding="5" >
+ <tr>
+ <td></td>
+ <td>
+ <rich:inplaceSelect id="ii_tpiv"
value="#{inplaceSelectBean.isNumberValue}">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ <f:convertNumber integerOnly="true"/>
+ </rich:inplaceSelect>
+ <a4j:commandButton id="bn_tpiv" reRender="group_tpiv"
value="Submit"/>
+ </td>
+ <td><span id="text_tpiv"><h:message
for="ii_tpiv"/></span></td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRenderedAttribute.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRenderedAttribute.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRenderedAttribute.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testRenderedAttribute</ui:define>
+ <ui:define name="caseBody">
+ <h:form id="_form">
+ <h:panelGroup id="group_tra">
+ <table cellpadding="5" >
+ <tr>
+ <td></td>
+ <td>
+ <rich:inplaceSelect id="ii_tra"
value="#{inplaceSelectBean.isValue}" rendered="false">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+ </td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRequiredAttributes.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRequiredAttributes.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testRequiredAttributes.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testRequiredAttributes</ui:define>
+ <ui:define name="caseBody">
+ <ui:include src="includes/testBody.xhtml">
+ <ui:param name="test_prefix" value="tra"/>
+ <ui:param name="required" value="true"/>
+ <ui:param name="value" value="#{inplaceSelectBean.tree}"/>
+ <ui:param name="requiredMessage" value="requiredMsg" />
+ <ui:param name="editEvent" value="" />
+ </ui:include>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute1.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute1.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute1.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testShowControlsAttribute</ui:define>
+ <ui:define name="caseBody">
+ <ui:include src="includes/testBody.xhtml">
+ <ui:param name="test_prefix" value="tsca1"/>
+ <ui:param name="required" value="false"/>
+ <ui:param name="value"
value="#{inplaceSelectBean.isValue}"/>
+ <ui:param name="requiredMessage" value="" />
+ <ui:param name="showControls" value="false" />
+ <ui:param name="editEvent" value="onclick" />
+ </ui:include>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute2.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute2.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testShowControlsAttribute2.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testShowControlsAttribute2</ui:define>
+ <ui:define name="caseBody">
+ <ui:include src="includes/testBody.xhtml">
+ <ui:param name="test_prefix" value="tsca2"/>
+ <ui:param name="required" value="false"/>
+ <ui:param name="value"
value="#{inplaceSelectBean.isValue}"/>
+ <ui:param name="requiredMessage" value="" />
+ <ui:param name="showControls" value="true" />
+ <ui:param name="editEvent" value="onclick" />
+ </ui:include>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testStandartAttributes.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testStandartAttributes.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testStandartAttributes.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testStandartAttributes</ui:define>
+ <ui:define name="caseBody">
+ <style>
+ .classForInplaceinput {
+ color: red;
+ }
+ </style>
+ <h:form id="_form">
+ <table cellpadding="5" >
+ <tr>
+ <td></td>
+ <td>
+ <rich:inplaceSelect id="ii_tsa"
value="#{inplaceSelectBean.isValue}" style="color: red"
+ styleClass="classForInplaceinput"
+ onclick="EventQueue.fire('onclick')"
+ ondblclick="EventQueue.fire('ondblclick')"
+ onkeydown="EventQueue.fire('onkeydown')"
+ onkeypress="EventQueue.fire('onkeypress')"
+ onkeyup="EventQueue.fire('onkeyup')"
+ onmousedown="EventQueue.fire('onmousedown')"
+ onmousemove="EventQueue.fire('onmousemove')"
+ onmouseout="EventQueue.fire('onmouseout')"
+ onmouseover="EventQueue.fire('onmouseover')"
+ onmouseup="EventQueue.fire('onmouseup')">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+ </td>
+ <td></td>
+ </tr>
+ </table>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValidator.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValidator.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValidator.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testValidator</ui:define>
+ <ui:define name="caseBody">
+ <h:form id="_form">
+ <h:panelGroup id="group_tv2">
+ <table cellpadding="5" >
+ <tr>
+ <td>1</td>
+ <td>
+ <rich:inplaceSelect id="ii_tv1"
value="#{inplaceSelectBean.isValue}"
validator="#{inplaceSelectBean.validator}">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+ <a4j:commandButton id="bn_tv1" reRender="group_tv2"
value="Submit"/>
+ </td>
+ <td><span id="text_tv1"><h:message
for="ii_tv1"/></span></td>
+ </tr>
+ <tr>
+ <td>2</td>
+ <td>
+ <rich:inplaceSelect id="ii_tv2"
value="#{inplaceSelectBean.isValue}" >
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ <f:validator validatorId="inplaceInputValidator" />
+ </rich:inplaceSelect>
+ <a4j:commandButton id="bn_tv2" reRender="group_tv2"
value="Submit"/>
+ </td>
+ <td><span id="text_tv2"><h:message
for="ii_tv2"></h:message></span></td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ </h:form>
+ </ui:define>
+</ui:composition>
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValueChangeListener.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValueChangeListener.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/inplaceSelect/testValueChangeListener.xhtml 2008-11-20
15:43:45 UTC (rev 11276)
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+ template="../../template/caseTemplate.xhtml">
+ <ui:define name="caseName">testValueChangeListener</ui:define>
+ <ui:define name="caseBody">
+ <h:panelGroup id="group_tvcl">
+ <h:form id="_form">
+ <table cellpadding="5" >
+ <tr>
+ <td></td>
+ <td>
+ <rich:inplaceSelect id="ii_tvcl"
value="#{inplaceSelectBean.isValue}"
valueChangeListener="#{inplaceSelectBean.valueChangeListener}">
+ <f:selectItems value="#{inplaceSelectBean.treeItems}"/>
+ </rich:inplaceSelect>
+ <a4j:commandButton id="bn_tvcl" reRender="group_tvcl"
value="Submit"/>
+ </td>
+ <td><span
id="text_tvcl">#{inplaceSelectBean.isValue}#{inplaceSelectBean.newValue}</span></td>
+ </tr>
+ </table>
+ </h:form>
+ </h:panelGroup>
+ </ui:define>
+</ui:composition>