Author: dmaliarevich
Date: 2008-10-23 07:37:29 -0400 (Thu, 23 Oct 2008)
New Revision: 11099
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/separator.xhtml.xml
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.xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/separator.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/spacer.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/suggestionbox.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:separator, rich:spacer,
rich:simpleTogglePanel, rich:suggestionbox.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/separator.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/separator.xhtml 2008-10-23
10:32:10 UTC (rev 11098)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/separator.xhtml 2008-10-23
11:37:29 UTC (rev 11099)
@@ -10,7 +10,8 @@
</head>
<body>
-<!-- Separator component -->
- <rich:separator height="20"/>
+<f:view>
+ <rich:separator id="separator" height="4"
lineType="double" />
+</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/separator.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/separator.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/separator.xhtml.xml 2008-10-23
11:37:29 UTC (rev 11099)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="separator">
+ <DIV ALIGN="left" CLASS="td-parentdiv">
+ <DIV CLASS="separator-color"
+ STYLE="border-style: double; width: 100%;">
+ </DIV>
+ </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/separator.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/simpleTogglePanel.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml 2008-10-23
10:32:10 UTC (rev 11098)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml 2008-10-23
11:37:29 UTC (rev 11099)
@@ -10,10 +10,19 @@
</head>
<body>
-<!-- Simple Toggle Panel component -->
-<rich:simpleTogglePanel switchType="client"
- label="Test simple toggle panel">
- This is simple toggle panel
+<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>
+</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/simpleTogglePanel.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/simpleTogglePanel.xhtml.xml 2008-10-23
11:37:29 UTC (rev 11099)
@@ -0,0 +1,31 @@
+<tests>
+ <test id="simpleTogglePanel">
+ <DIV CLASS="dr-stglpnl rich-stglpanel" STYLE="">
+ <DIV CLASS="dr-stglpnl-h rich-stglpanel-header"
+ STYLE="/position: relative; background-image:
url\(.*org.jboss.tools.jsf.vpe.richfaces/resources/common/background.gif\);/"
+ 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>
+ </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>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </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/simpleTogglePanel.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/spacer.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml 2008-10-23
10:32:10 UTC (rev 11098)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml 2008-10-23
11:37:29 UTC (rev 11099)
@@ -1,16 +1,19 @@
<!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>
-<!-- Spacer component -->
-<rich:spacer width="720" height="50" />
+<f:view>
+ line1
+ <rich:spacer width="1" height="5" title="Here is a
spacer..." />
+ line2
+</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/spacer.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/spacer.xhtml.xml 2008-10-23
11:37:29 UTC (rev 11099)
@@ -0,0 +1,6 @@
+<tests>
+ <test id="spacer">
+ <IMG WIDTH="1" HEIGHT="5"
+ SRC="/.*org.jboss.tools.jsf.vpe.richfaces/resources/spacer/spacer.gif/"
/>
+ </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/spacer.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/suggestionbox.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/suggestionbox.xhtml 2008-10-23
10:32:10 UTC (rev 11098)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/suggestionbox.xhtml 2008-10-23
11:37:29 UTC (rev 11099)
@@ -10,21 +10,28 @@
</head>
<body>
-<!-- Suggestion Box component -->
-<h:inputText value="#{suggestionBox.property}" id="text" />
-<rich:suggestionbox id="suggestionBoxId" for="text"
tokens=",["
+<rich:suggestionbox id="suggestionBox" for="text"
tokens=",[]"
rules="#{suggestionBox.rules}"
- suggestionAction="#{suggestionBox.autocomplete}" var="result"
- fetchValue="#{result.text}" rows="#{suggestionBox.intRows}"
- first="#{suggestionBox.intFirst}"
minChars="#{suggestionBox.minchars}"
+ suggestionAction="#{capitalsBean.autocomplete}" var="result"
+ fetchValue="#{result.name}" first="#{suggestionBox.intFirst}"
+ minChars="#{suggestionBox.minchars}"
shadowOpacity="#{suggestionBox.shadowOpacity}"
border="#{suggestionBox.border}" width="#{suggestionBox.width}"
height="#{suggestionBox.height}"
shadowDepth="#{suggestionBox.shadowDepth}"
- cellpadding="#{suggestionBox.cellpadding}">
+ cellpadding="#{suggestionBox.cellpadding}"
+ nothingLabel="No capitals found" usingSuggestObjects="true"
+ onobjectchange="processObjectsChange(suggestion)">
+
<h:column>
- <h:outputText value="#{result.text}" />
+ <h:graphicImage value="#{result.stateFlag}" />
</h:column>
+ <h:column>
+ <h:outputText value="#{result.name}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.state}" style="font-style:italic"
/>
+ </h:column>
</rich:suggestionbox>
</body>
</html>
\ No newline at end of file
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
10:32:10 UTC (rev 11098)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2008-10-23
11:37:29 UTC (rev 11099)
@@ -256,19 +256,19 @@
}
public void testSeparator() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/separator.xhtml");//$NON-NLS-1$
}
public void testSimpleTogglePanel() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/simpleTogglePanel.xhtml");//$NON-NLS-1$
}
public void testSpacer() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performContentTest("components/spacer.xhtml");//$NON-NLS-1$
}
public void testSuggestionbox() throws Throwable {
- assertTrue("it is necessary to add a body of the test ",
false);//$NON-NLS-1$
+ performInvisibleTagTest("components/suggestionbox.xhtml",
"suggestionBox"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testTabPanel() throws Throwable {