Author: abelevich
Date: 2009-02-24 12:45:43 -0500 (Tue, 24 Feb 2009)
New Revision: 12731
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelAutoTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelChildProcessingTest.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelTest.xhtml
Log:
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelAutoTest.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelAutoTest.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelAutoTest.xhtml 2009-02-24
17:45:43 UTC (rev 12731)
@@ -0,0 +1,63 @@
+<!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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <ui:composition template="#{templateBean.autoTestTemplate}">
+
+ <ui:define name="component">
+ <rich:togglePanel id="componentId"
+ initialState="one"
+ stateOrder="one,two"
+ switchType="ajax"
+ immediate="#{autoTestBean.immediate}"
+ rendered="#{autoTestBean.rendered}"
+ required="#{autoTestBean.required}"
+ requiredMessage="#{autoTestBean.requiredMessage}"
+ style="width: 200px; background-color: blue; color: yellow;"
+ styleClass="className"
+ onclick="EventQueue.fire('onclick')"
+ ondbclick="EventQueue.fire('ondbclick')"
+ 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:facet name="one">
+ <h:outputText id="client_state_one" value="State
One" />
+ </f:facet>
+
+ <f:facet name="two">
+ <h:outputText id="client_state_two" value="State
Two" />
+ </f:facet>
+
+ </rich:togglePanel>
+
+ <rich:toggleControl id="client_next"
for="componentId" >
+ <h:outputText value="Client next" />
+ </rich:toggleControl>
+
+ <br />
+
+ <rich:toggleControl id="client_one" for="componentId"
switchToState="one" >
+ <h:outputText value="Client one" />
+ </rich:toggleControl>
+
+ <br />
+
+ <rich:toggleControl id="client_two" for="componentId"
switchToState="two" >
+ <h:outputText value="Client two" />
+ </rich:toggleControl>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelChildProcessingTest.xhtml
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelChildProcessingTest.xhtml
(rev 0)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelChildProcessingTest.xhtml 2009-02-24
17:45:43 UTC (rev 12731)
@@ -0,0 +1,40 @@
+<!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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <ui:composition template="#{templateBean.template}">
+ <ui:define name="component">
+ <h:form id="mainForm">
+
+ <h:panelGroup>
+ <rich:togglePanel id="_ajax_panel" style="border: 1px solid blue;
width: 200px;" label="Switch type: #{panelBean.switchType}"
switchType="#{panelBean.switchType}" initialState="none"
stateOrder="none,one">
+ <f:facet name="none">
+ <h:outputText value="none"/>
+ </f:facet>
+ <f:facet name="one">
+ <h:inputText id="_child" value="#{panelBean.content}"
required="true"/>
+ </f:facet>
+ </rich:togglePanel>
+ <rich:toggleControl id="_ajax_switch" for="_ajax_panel"
actionListener="#{panelBean.actionListener}">
+ <h:outputText value="click me" />
+ </rich:toggleControl>
+ </h:panelGroup>
+
+ <br></br>
+ <h:outputText value="Result: " />
+ <h:outputText id="_result" value="#{panelBean.value2}"/>
+ <br></br>
+
+ <h:panelGroup>
+ <a4j:commandButton id="_ajax_submit"
action="#{panelBean.increment}" value="ajax_submit"
reRender="_result, _ajax_panel"/>
+ <h:commandButton id="_server_submit"
action="#{panelBean.increment}" value="server_submit"/>
+ </h:panelGroup>
+
+ </h:form>
+ </ui:define>
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/togglePanel/togglePanelTest.xhtml
===================================================================
(Binary files differ)