Author: dmaliarevich
Date: 2008-10-23 09:38:58 -0400 (Thu, 23 Oct 2008)
New Revision: 11108
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml.xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSlider.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSpinner.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2810, tests for rich:tabPanel, rich:tab,
rich:togglePanel, rich:toggleControl. Other tests were updated.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSlider.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSlider.xhtml 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSlider.xhtml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -9,7 +9,9 @@
<head>
</head>
<body>
+<f:view>
<rich:inputNumberSlider id="inputNumberSlider" value="50">
</rich:inputNumberSlider>
+</f:view>
</body>
</html>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSpinner.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSpinner.xhtml 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/inputNumberSpinner.xhtml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -9,7 +9,9 @@
<head>
</head>
<body>
+<f:view>
<rich:inputNumberSpinner id="inputNumberSpinner" value="50">
</rich:inputNumberSpinner>
+</f:view>
</body>
</html>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -12,17 +12,7 @@
<body>
<f:view>
<rich:simpleTogglePanel id="simpleTogglePanel"
switchType="client"
- label="Add AJAX capability to existing JSF applications">
- The framework is implemented by using a component library. The library
- set Ajax functionality into existing pages, so there is no need to write
- any JavaScript code or to replace existing components with new Ajax one.
- Ajax4jsf enables page-wide Ajax support instead of the traditional
- component-wide support and it gives the opportunity to define the event
- on the page. An event invokes an Ajax request and areas of the page
- which are synchronized with the JSF Component Tree after changing the
- data on the server by Ajax request in accordance with events fired on
- the client.
- </rich:simpleTogglePanel>
+ label="Add AJAX capability to existing JSF applications">The framework is
implemented by using a component library.</rich:simpleTogglePanel>
</f:view>
</body>
</html>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml.xml 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml.xml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -6,22 +6,13 @@
VPE-USER-TOGGLE-ID="false">
Add AJAX capability to existing JSF applications
<DIV STYLE="position: absolute; top: 0px; right: 5px;"
- VPE-USER-TOGGLE-ID="false"
VPE-USER-TOGGLE-LOOKUP-PARENT="true"> «</DIV>
+ VPE-USER-TOGGLE-ID="false"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">«</DIV>
</DIV>
<DIV STYLE="overflow: hidden; width: 100%;">
<TABLE CELLPADDING="0" STYLE="width: 100%;">
<TR>
<TD CLASS="dr-stglpnl-b rich-stglpanel-body">
- <SPAN> The framework is implemented by using a component library.
- The library set Ajax functionality into existing pages, so there
- is no need to write any JavaScript code or to replace existing
- components with new Ajax one. Ajax4jsf enables page-wide Ajax
- support instead of the traditional component-wide support and it
- gives the opportunity to define the event on the page. An event
- invokes an Ajax request and areas of the page which are
- synchronized with the JSF Component Tree after changing the data
- on the server by Ajax request in accordance with events fired on
- the client.</SPAN>
+ <SPAN> The framework is implemented by using a component
library.</SPAN>
</TD>
</TR>
</TABLE>
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -12,7 +12,7 @@
<body>
<f:view>
line1
- <rich:spacer width="1" height="5" title="Here is a
spacer..." />
+ <rich:spacer id="spacer" width="1" height="5"
title="Here is a spacer..." />
line2
</f:view>
</body>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml.xml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -0,0 +1,6 @@
+<tests>
+ <test id="tab">
+ <!-- rich:tab is rendered inside RichFacesTabPanelTempalte -->
+ <!-- so it can't be found on its own account -->
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tab.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -1,27 +1,26 @@
<!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:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:rich="http://richfaces.org/rich">
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
<head>
</head>
-
<body>
-<!-- Tab panel component -->
-<rich:tabPanel>
- <!-- Tab component -->
- <rich:tab label="First">
+<f:view>
+ <rich:tabPanel id="tabPanel" switchType="ajax">
+ <rich:tab label="First">
Here is tab #1
</rich:tab>
- <rich:tab label="Second">
+ <rich:tab label="Second" disabled="true">
Here is tab #2
</rich:tab>
- <rich:tab label="Third">
+ <rich:tab label="Third">
Here is tab #3
</rich:tab>
-</rich:tabPanel>
+ </rich:tabPanel>
+</f:view>
</body>
</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml.xml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -0,0 +1,167 @@
+<tests>
+ <test id="tabPanel">
+ <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
CLASS="rich-tabpanel"
+ STYLE="width: 100%;">
+ <TBODY>
+ <TR>
+ <TD ALIGN="left" CLASS="">
+ <TABLE CELLSPACING="0" CELLPADDING="0"
BORDER="0">
+ <TR>
+ <TD>
+ <IMG WIDTH="2" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"/>
+ </TD>
+ <TD>
+ <IMG HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ STYLE="width: 1px;"/>
+ </TD>
+ <TD STYLE="height: 100%; vertical-align: bottom;"
CLASS="rich-tabhdr-cell-active"
+ VPE-USER-TOGGLE-ID="0">
+ <TABLE CELLSPACING="0" CELLPADDING="0"
BORDER="0"
+ STYLE="height: 100%; position: relative; z-index: 2;"
+ VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TR VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TD CLASS="rich-tabhdr-side-cell rich-tabhdr-side-border"
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/tabPanel/border.gif\);/"
+ VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <IMG WIDTH="1" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true"/>
+ </TD>
+ <TD VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TABLE CELLSPACING="0" CELLPADDING="0"
BORDER="0"
+ STYLE="height: 100%; width: 100%;"
VPE-USER-TOGGLE-ID="0"
+ VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TR VPE-USER-TOGGLE-ID="0"
+ VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TD
+ CLASS="rich-tab-header rich-tab-label rich-tab-active
rich-tabhdr-cell-active"
+ VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ First </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD CLASS="rich-tabhdr-side-cell rich-tabhdr-side-border"
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/tabPanel/border.gif\);/"
+ VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <IMG WIDTH="1" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ VPE-USER-TOGGLE-ID="0"
VPE-USER-TOGGLE-LOOKUP-PARENT="true"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD>
+ <IMG HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ STYLE="width: 1px;"/>
+ </TD>
+ <TD STYLE="height: 100%; vertical-align: bottom;"
CLASS="rich-tabhdr-cell-disabled rich-tab-disabled"
+ VPE-USER-TOGGLE-ID="1">
+ <TABLE CELLSPACING="0" CELLPADDING="0"
BORDER="0"
+ STYLE="height: 100%; position: relative; z-index: 2;"
+ VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TR VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TD CLASS="rich-tabhdr-side-cell rich-tabhdr-side-border"
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/tabPanel/border.gif\);/"
+ VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <IMG WIDTH="1" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true"/>
+ </TD>
+ <TD VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TABLE CELLSPACING="0" CELLPADDING="0"
BORDER="0"
+ STYLE="height: 100%; width: 100%;"
VPE-USER-TOGGLE-ID="1"
+ VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TR VPE-USER-TOGGLE-ID="1"
+ VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TD
+ CLASS="rich-tab-header rich-tab-label rich-tab-disabled
rich-tabhdr-cell-disabled"
+ VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ Second </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD CLASS="rich-tabhdr-side-cell rich-tabhdr-side-border"
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/tabPanel/border.gif\);/"
+ VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <IMG WIDTH="1" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ VPE-USER-TOGGLE-ID="1"
VPE-USER-TOGGLE-LOOKUP-PARENT="true"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD>
+ <IMG HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ STYLE="width: 1px;"/>
+ </TD>
+ <TD STYLE="height: 100%; vertical-align: bottom;"
CLASS="rich-tabhdr-cell-inactive"
+ VPE-USER-TOGGLE-ID="2">
+ <TABLE CELLSPACING="0" CELLPADDING="0"
BORDER="0"
+ STYLE="height: 100%; position: relative; z-index: 2;"
+ VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TR VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TD CLASS="rich-tabhdr-side-cell rich-tabhdr-side-border"
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/tabPanel/border.gif\);/"
+ VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <IMG WIDTH="1" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true"/>
+ </TD>
+ <TD VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TABLE CELLSPACING="0" CELLPADDING="0"
BORDER="0"
+ STYLE="height: 100%; width: 100%;"
VPE-USER-TOGGLE-ID="2"
+ VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TR VPE-USER-TOGGLE-ID="2"
+ VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <TD
+ CLASS="rich-tab-header rich-tab-label rich-tab-inactive
rich-tabhdr-cell-inactive"
+ VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ Third </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD CLASS="rich-tabhdr-side-cell rich-tabhdr-side-border"
+ STYLE="/background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/tabPanel/border.gif\);/"
+ VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true">
+ <IMG WIDTH="1" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ VPE-USER-TOGGLE-ID="2"
VPE-USER-TOGGLE-LOOKUP-PARENT="true"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ <TD>
+ <IMG HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"
+ STYLE="width: 1px;"/>
+ </TD>
+ <TD>
+ <IMG WIDTH="1" HEIGHT="1" BORDER="0"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/common/spacer.gif/"/>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ </TR>
+ <TR>
+ <TD HEIGHT="100%">
+ <TABLE WIDTH="100%" CELLSPACING="0"
CELLPADDING="10" BORDER="0"
+ CLASS="rich-tabpanel-content-position" STYLE="position: relative;
z-index: 1;">
+ <TR>
+ <TD
+ CLASS="rich-tabpanel rich-tabpanel-content
rich-tabpanel-content-position"
+ STYLE="">
+ <SPAN> Here is tab #1 </SPAN>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+ </TR>
+ </TBODY>
+ </TABLE>
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/tabPanel.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml.xml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -0,0 +1,8 @@
+<tests>
+ <test id="toggleControl">
+ <SPAN STYLE="color: blue; text-decoration: underline;"
+ VPE-USER-TOGGLE-ID="">
+ <SPAN> CLOSED </SPAN>
+ </SPAN>
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/toggleControl.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -1,58 +1,38 @@
<!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:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:rich="http://richfaces.org/rich">
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
<head>
</head>
-
<body>
-<!-- Toggle Panel component -->
-<rich:togglePanel value="#{toggleBean.skinChooserState1}"
- switchType="client" stateOrder="closed,tip1, tip2,tip3">
-
- <f:facet name="closed">
- <!-- Toggle Control component-->
- <rich:toggleControl>
- <h:graphicImage id="pic" style="border-width:0"
- value="/pictures/clickme.gif" />
- </rich:toggleControl>
- </f:facet>
-
- <f:facet name="tip1">
- <ui:include src="/templetes/tipBlock.xhtml">
- <ui:param name="tip"
- value="rich:toggleControl might bre located inside of outside
- of the rich:toogleControl it works for. In case of outside location, the
control
- attribute 'for' should refer to the toggle panel id." />
- <ui:param name="next" value="tip2" />
- </ui:include>
- </f:facet>
-
- <f:facet name="tip2">
- <ui:include src="/templetes/tipBlock.xhtml">
- <ui:param name="tip"
- value="Attribute initialState defines the first state appear
- when the page is loaded. If this attribute is not specified, the first
state
- mentioned in the attribute stateOrder will be the first" />
- <ui:param name="previous" value="tip1" />
- <ui:param name="next" value="tip3" />
- </ui:include>
- </f:facet>
-
- <f:facet name="tip3">
- <ui:include src="/templetes/tipBlock.xhtml">
- <ui:param name="tip"
- value="Note that rich:toggleControl similar to
- h:commandLink for 'server' mode and smilar to a4j:commandLink for
'ajax' mode.
- Set immediate attribute to true if jsf form has other input field that might
- cause the validation error. Otherwize, the state switched will not
perform" />
- <ui:param name="previous" value="tip2" />
- </ui:include>
- </f:facet>
-</rich:togglePanel>
+<f:view>
+ <rich:togglePanel id="togglePanel" value="togglePanelValue"
switchType="client"
+ stateOrder="closed,tip1,tip2">
+ <f:facet name="closed">
+ <rich:toggleControl>
+ <h:outputText value="CLOSED" />
+ </rich:toggleControl>
+ </f:facet>
+ <f:facet name="tip1">
+ <h:outputText value="TIP 1" />
+ <h:panelGrid columns="2">
+ <rich:toggleControl switchToState="closed" value="x
Close" />
+ <rich:toggleControl switchToState="tip2" value="Next
>>" />
+ </h:panelGrid>
+ </f:facet>
+ <f:facet name="tip2">
+ <h:outputText value="TIP 2" />
+ <h:panelGrid columns="2">
+ <rich:toggleControl switchToState="closed" value="x
Close" />
+ <rich:toggleControl switchToState="tip1"
value="« Previous" />
+ <rich:toggleControl switchToState="tip2" value="Next
>>" />
+ </h:panelGrid>
+ </f:facet>
+ </rich:togglePanel>
+</f:view>
</body>
</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml.xml 2008-10-23
13:38:58 UTC (rev 11108)
@@ -0,0 +1,10 @@
+<tests>
+ <test id="togglePanel">
+ <DIV>
+ <SPAN STYLE="color: blue; text-decoration: underline;"
+ VPE-USER-TOGGLE-ID="">
+ <SPAN> CLOSED </SPAN>
+ </SPAN>
+ </DIV>
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/togglePanel.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-23
13:27:19 UTC (rev 11107)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-23
13:38:58 UTC (rev 11108)
@@ -272,19 +272,19 @@
}
public void testTabPanel() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/tabPanel.xhtml");//$NON-NLS-1$
}
public void testTab() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/tab.xhtml");//$NON-NLS-1$
}
public void testTogglePanel() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/togglePanel.xhtml");//$NON-NLS-1$
}
public void testToggleControl() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/toggleControl.xhtml");//$NON-NLS-1$
}
public void testToolBar() throws Throwable {