JBoss Rich Faces SVN: r10054 - in trunk/docs/cdkguide/en/src/main: docbook/includes and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-12 10:24:08 -0400 (Tue, 12 Aug 2008)
New Revision: 10054
Added:
trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml
trunk/docs/cdkguide/en/src/main/resources/examples/inputDate_skeleton.xml
Modified:
trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/ui.xml
trunk/docs/cdkguide/en/src/main/docbook/master.xml
Log:
https://jira.jboss.org/jira/browse/RF-3692 - 'Extending a UIInput', 'Configuring component' sections were added.
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml 2008-08-12 14:21:17 UTC (rev 10053)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/register.xml 2008-08-12 14:24:08 UTC (rev 10054)
@@ -96,6 +96,11 @@
<name>org.mycompany.renderkit.html.images.inputDate</name>
</resource>
...]]></programlisting>
+ <para>
+ With the help of the <emphasis role="bold"><property><cacheable></property></emphasis> element
+ you could manage whether the resource is cached or not.
+ If the value of this element is "true", the resource is cached on the server and also on the client sides.
+ </para>
<!--programlisting role="XML"><![CDATA[...
<resource>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-08-12 14:21:17 UTC (rev 10053)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-08-12 14:24:08 UTC (rev 10054)
@@ -123,7 +123,7 @@
...]]></programlisting>
<para>
How to register all resources is explained in the
- <property>"Component resources registration"</property> chapter.
+ <link linkend="register">"Component resources registration"</link> chapter.
</para>
<important>
<title>Important:</title>
@@ -158,6 +158,6 @@
</para>
</note>
<para>
- All the Template tags you could find in the <property>"Template tags overview"</property> chapter.
+ All the Template tags you could find in the <link linkend="temptags">"Template tags overview"</link> chapter.
</para>
</section>
\ No newline at end of file
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/ui.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/ui.xml 2008-08-12 14:21:17 UTC (rev 10053)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/ui.xml 2008-08-12 14:24:08 UTC (rev 10054)
@@ -3,15 +3,68 @@
<?dbhtml filename="uicomponent.html"?>
<sectioninfo>
<keywordset>
- <keyword>uicomponent</keyword>
+ <keyword>ui</keyword>
<keyword>component</keyword>
<keyword>CDK</keyword>
<keyword>Guide</keyword>
</keywordset>
</sectioninfo>
-<title>Configuring component</title>
-<para>
-UI Component generation
-</para>
+ <title>Extending a UIInput.</title>
+ <para>
+ The base class for all JSF components is <code>UIComponent</code>.
+ When you develop <emphasis role="bold"><property><inputDate></property></emphasis> component
+ you could see that you subclass <code>UIComponentBase</code> at first.
+ This class extends <code>UIComponent</code>, and provides default implementations of the all of the abstract methods of <code>UIComponent</code>.
+ </para>
+ <para>
+ You could proceed to the <property>src/main/java/org/mycompany/component</property> directory
+ and find a <property>UIInputDate.java</property> there:
+ </para>
+ <programlisting role="JAVA"><![CDATA[package org.mycompany.component;
+import javax.faces.component.UIComponentBase;
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIInputDate extends UIComponentBase {
+ public static final String COMPONENT_TYPE = "org.mycompany.InputDate";
+ public static final String COMPONENT_FAMILY = "org.mycompany.InputDate";
+}]]></programlisting>
+ <para>
+ The <emphasis role="bold"><property><inputDate></property></emphasis> is a simple
+ input component therefore you should import <code>javax.faces.component.UIInput</code> class and extend it:
+ </para>
+ <programlisting role="JAVA"><![CDATA[package org.mycompany.component;
+import javax.faces.component.UIInput;
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIInputDate extends UIInput {
+ public static final String COMPONENT_TYPE = "org.mycompany.InputDate";
+ public static final String COMPONENT_FAMILY = "org.mycompany.InputDate";
+}]]></programlisting>
+ <para>
+ Each component is associated with a <property>component type</property>,
+ which is used as "JSF recognized" name of the <emphasis role="bold"><property><inputDate></property></emphasis> component.
+ We will refer to this later in our tag handler.
+ </para>
+ <para>
+ The <property>component class</property> is the actual class path address of our <emphasis role="bold"><property><inputDate></property></emphasis> component.
+ </para>
+ <para>
+ As it was mentioned before, the <emphasis role="bold"><property><inputDate></property></emphasis> component has some attributes
+ that are bound to the properties in the <code>UIInputDate</code> class
+ (for example <property>title</property>, <property>title</property>, <property>name</property>, <property>type</property>, etc.).
+ The next thing to do is to save the component state
+ by overriding <code>saveState()</code> and <code>restoreState()</code> component methods.
+ But you do not have to do it in the <code>UIInputDate</code> class by hand!
+ </para>
+ <para>
+ You should configure the <emphasis role="bold"><property><inputDate></property></emphasis> component
+ in the <property>inputDate.xml</property>,
+ and the <property>CDK</property> factory will generate the complete <code>UIInputDate</code> class.
+ How to configure the component is explained in the <link linkend="ui_conf">"Configuring component"</link> chapter.
+ </para>
</section>
Added: trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml 2008-08-12 14:24:08 UTC (rev 10054)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section id="ui_conf" xreflabel="ui_conf">
+ <?dbhtml filename="ui_conf.html"?>
+ <sectioninfo>
+ <keywordset>
+ <keyword>ui</keyword>
+ <keyword>component</keyword>
+ <keyword>CDK</keyword>
+ <keyword>Guide</keyword>
+ </keywordset>
+ </sectioninfo>
+ <title>Configuring component.</title>
+ <para>
+ Well, it is almost the final step in the component creation process - component configuration.
+ </para>
+ <para>
+ There is <property>inputDate.xml</property> file in the <property>src/main/config/component</property> directory that is used
+ by <property>CDK</property> factory for generating not only the complete <code>UIInputDate</code> class,
+ but also a TLD file, a tag handler and a descriptor for JSP and Facelets.
+ </para>
+ <para>
+ Please, open the <ulink url="examples/inputDate_skeleton.xml">inputDate.xml</ulink> in your favorite text editor
+ and take a look at the skeleton.
+ </para>
+</section>
+
Property changes on: trunk/docs/cdkguide/en/src/main/docbook/includes/ui_conf.xml
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/docs/cdkguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-08-12 14:21:17 UTC (rev 10053)
+++ trunk/docs/cdkguide/en/src/main/docbook/master.xml 2008-08-12 14:24:08 UTC (rev 10054)
@@ -16,6 +16,7 @@
<!ENTITY pcreate SYSTEM "includes/pcreate.xml">
<!ENTITY ccreate SYSTEM "includes/ccreate.xml">
<!ENTITY ui SYSTEM "includes/ui.xml">
+<!ENTITY ui_conf SYSTEM "includes/ui_conf.xml">
<!ENTITY protoui SYSTEM "includes/protoui.xml">
<!ENTITY template SYSTEM "includes/template.xml">
<!ENTITY skin SYSTEM "includes/skin.xml">
@@ -148,6 +149,7 @@
</section>
®ister;
&ui;
+ &ui_conf;
&taghandler;
</chapter>
&test;
Added: trunk/docs/cdkguide/en/src/main/resources/examples/inputDate_skeleton.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/resources/examples/inputDate_skeleton.xml (rev 0)
+++ trunk/docs/cdkguide/en/src/main/resources/examples/inputDate_skeleton.xml 2008-08-12 14:24:08 UTC (rev 10054)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "http://labs.jboss.com/jbossrichfaces/component-config.dtd">
+
+<components>
+ <component>
+ <name>org.mycompany.InputDate</name>
+ <family>org.mycompany.InputDate</family>
+ <classname>org.mycompany.component.html.HtmlInputDate</classname>
+ <superclass>org.mycompany.component.UIInputDate</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.mycompany.InputDateRenderer</name>
+ <template>org/mycompany/htmlInputDate.jspx</template>
+ </renderer>
+ <tag>
+ <name>inputDate</name>
+ <classname>org.mycompany.taglib.InputDateTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/docs/cdkguide/en/src/main/resources/examples/inputDate_skeleton.xml
___________________________________________________________________
Name: svn:executable
+ *
16 years, 5 months
JBoss Rich Faces SVN: r10053 - in trunk/ui: scrollableDataTable and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-08-12 10:21:17 -0400 (Tue, 12 Aug 2008)
New Revision: 10053
Modified:
trunk/ui/extendedDataTable/src/main/templates/org/richfaces/htmlExtendedDataTable.jspx
trunk/ui/scrollableDataTable/generatescript.xml
trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx
trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java
Log:
RF-4136
Modified: trunk/ui/extendedDataTable/src/main/templates/org/richfaces/htmlExtendedDataTable.jspx
===================================================================
--- trunk/ui/extendedDataTable/src/main/templates/org/richfaces/htmlExtendedDataTable.jspx 2008-08-12 14:06:39 UTC (rev 10052)
+++ trunk/ui/extendedDataTable/src/main/templates/org/richfaces/htmlExtendedDataTable.jspx 2008-08-12 14:21:17 UTC (rev 10053)
@@ -38,7 +38,7 @@
/org/richfaces/renderkit/html/scripts/jquery/jquery.js,
/org/richfaces/renderkit/html/script/controlUtils.js,
- /org/richfaces/renderkit/html/scripts/scrollable-data-table.js,
+ /org/richfaces/renderkit/html/scripts/common-scrollable-data-table.js,
/org/richfaces/renderkit/html/scripts/extended-data-table.js,
/org/richfaces/renderkit/html/scripts/drag-indicator.js,
Modified: trunk/ui/scrollableDataTable/generatescript.xml
===================================================================
--- trunk/ui/scrollableDataTable/generatescript.xml 2008-08-12 14:06:39 UTC (rev 10052)
+++ trunk/ui/scrollableDataTable/generatescript.xml 2008-08-12 14:21:17 UTC (rev 10053)
@@ -18,8 +18,7 @@
<target name="merge-scripts-eclipse-3.3">
<property name="script-path" value="org/richfaces/renderkit/html/scripts"></property>
<property name="gen-script-name" value="scrollable-data-table.js"></property>
- <property name="gen-script-full-name" value="${target-dir}/${script-path}/${gen-script-name}"></property>
- <concat append="false" binary="false" destfile="${gen-script-full-name}">
+ <concat append="false" binary="false" destfile="${target-dir}/${script-path}/common-${gen-script-name}">
<filelist dir="${resources-dir}">
<file name="${resources-dir}/ClientUILib.js"/>
<file name="${resources-dir}/ClientUI/common/utils/Utils.js"/>
@@ -28,11 +27,15 @@
<file name="${resources-dir}/ClientUI/common/box/Box.js"/>
<file name="${resources-dir}/ClientUI/common/box/InlineBox.js"/>
<file name="${resources-dir}/ClientUI/common/box/ScrollableBox.js"/>
+ <file name="${resources-dir}/ClientUI/common/box/Substrate.js"/>
+ </filelist>
+ </concat>
+ <concat append="false" binary="false" destfile="${target-dir}/${script-path}/controls-${gen-script-name}">
+ <filelist dir="${resources-dir}">
<file name="${resources-dir}/ClientUI/controls/grid/DataModel.js"/>
<file name="${resources-dir}/ClientUI/controls/grid/ArrayDataModel.js"/>
<file name="${resources-dir}/ClientUI/controls/grid/FakeArrayDataModel.js"/>
<file name="${resources-dir}/ClientUI/layouts/LayoutManager.js"/>
- <file name="${resources-dir}/ClientUI/common/box/Substrate.js"/>
<file name="${resources-dir}/ClientUI/layouts/VLayoutManager.js"/>
<file name="${resources-dir}/ClientUI/layouts/GridLayoutManager.js"/>
<file name="${resources-dir}/ClientUI/controls/grid/GridHeader.js"/>
@@ -50,8 +53,7 @@
<target name="merge-scripts">
<property name="script-path" value="org/richfaces/renderkit/html/scripts"></property>
<property name="gen-script-name" value="scrollable-data-table.js"></property>
- <property name="gen-script-full-name" value="${target-dir}/${script-path}/${gen-script-name}"></property>
- <concat append="false" binary="false" destfile="${gen-script-full-name}">
+ <concat append="false" binary="false" destfile="${target-dir}/${script-path}/common-${gen-script-name}">
<filelist dir="${resources-dir}">
<file name="ClientUILib.js"/>
<file name="/ClientUI/common/utils/Utils.js"/>
@@ -60,11 +62,15 @@
<file name="/ClientUI/common/box/Box.js"/>
<file name="/ClientUI/common/box/InlineBox.js"/>
<file name="/ClientUI/common/box/ScrollableBox.js"/>
+ <file name="/ClientUI/common/box/Substrate.js"/>
+ </filelist>
+ </concat>
+ <concat append="false" binary="false" destfile="${target-dir}/${script-path}/controls-${gen-script-name}">
+ <filelist dir="${resources-dir}">
<file name="/ClientUI/controls/grid/DataModel.js"/>
<file name="/ClientUI/controls/grid/ArrayDataModel.js"/>
<file name="/ClientUI/controls/grid/FakeArrayDataModel.js"/>
<file name="/ClientUI/layouts/LayoutManager.js"/>
- <file name="/ClientUI/common/box/Substrate.js"/>
<file name="/ClientUI/layouts/VLayoutManager.js"/>
<file name="/ClientUI/layouts/GridLayoutManager.js"/>
<file name="/ClientUI/controls/grid/GridHeader.js"/>
Modified: trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx
===================================================================
--- trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx 2008-08-12 14:06:39 UTC (rev 10052)
+++ trunk/ui/scrollableDataTable/src/main/templates/org/richfaces/scrollable-data-table.jspx 2008-08-12 14:21:17 UTC (rev 10053)
@@ -19,7 +19,8 @@
<h:scripts>
new org.ajax4jsf.javascript.PrototypeScript(),
new org.ajax4jsf.javascript.AjaxScript(),
- /org/richfaces/renderkit/html/scripts/scrollable-data-table.js
+ /org/richfaces/renderkit/html/scripts/common-scrollable-data-table.js,
+ /org/richfaces/renderkit/html/scripts/controls-scrollable-data-table.js
</h:scripts>
<f:clientId var="clientId" />
Modified: trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java
===================================================================
--- trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java 2008-08-12 14:06:39 UTC (rev 10052)
+++ trunk/ui/scrollableDataTable/src/test/java/org/richfaces/renderkit/html/ScrollableDataTableRendererTest.java 2008-08-12 14:21:17 UTC (rev 10053)
@@ -34,7 +34,8 @@
javaScripts.add(AjaxScript.class.getName());
javaScripts.add(PrototypeScript.class.getName());
- javaScripts.add("org/richfaces/renderkit/html/scripts/scrollable-data-table.js");
+ javaScripts.add("org/richfaces/renderkit/html/scripts/common-scrollable-data-table.js");
+ javaScripts.add("org/richfaces/renderkit/html/scripts/controls-scrollable-data-table.js");
}
public ScrollableDataTableRendererTest(String arg0) {
16 years, 5 months
JBoss Rich Faces SVN: r10052 - trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-08-12 10:06:39 -0400 (Tue, 12 Aug 2008)
New Revision: 10052
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java
Log:
activate tests
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-08-12 14:04:25 UTC (rev 10051)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-08-12 14:06:39 UTC (rev 10052)
@@ -57,7 +57,7 @@
private String activeItemText;
- //@Test
+ @Test
public void testButtons(Template template) {
renderPage(template);
initFields();
@@ -114,7 +114,7 @@
checkButtons(true, true, false, false);
}
- //@Test
+ @Test
public void testJSFunctions(Template template) {
renderPage(template);
initFields();
16 years, 5 months
JBoss Rich Faces SVN: r10051 - in trunk/test-applications/seleniumTest/src: main/webapp/pages/orderingList and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-08-12 10:04:25 -0400 (Tue, 12 Aug 2008)
New Revision: 10051
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml
trunk/test-applications/seleniumTest/src/main/webapp/pages/orderingList/orderingListTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java
Log:
Ordering Test refactoring
Modified: trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml 2008-08-12 13:05:36 UTC (rev 10050)
+++ trunk/test-applications/seleniumTest/src/main/webapp/layout/layout.xhtml 2008-08-12 14:04:25 UTC (rev 10051)
@@ -71,21 +71,21 @@
element.innerHTML = 'No';
}
- function fireMouseEvent(id, eventName, x, y) {
+ function fireMouseEvent(id,eventName, x, y, ctrl) {
var e = $(id);
var evt;
if (document.createEvent) {
evt = document.createEvent("MouseEvents");
- evt.initMouseEvent(eventName, true, true, window,0, x, y, x, y, false, false, false, false, 0, null);
+ evt.initMouseEvent(eventName, true, true, window,0, x, y, x, y, ctrl, false, false, false, 0, null);
evt.srcElement = e;
e.dispatchEvent(evt);
- return evt;
}else {
if (e[eventName]) {
return e[eventName]();
}
}
}
+
</script>
<style type="text/css">
<ui:insert name="style"/>
Modified: trunk/test-applications/seleniumTest/src/main/webapp/pages/orderingList/orderingListTest.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/pages/orderingList/orderingListTest.xhtml 2008-08-12 13:05:36 UTC (rev 10050)
+++ trunk/test-applications/seleniumTest/src/main/webapp/pages/orderingList/orderingListTest.xhtml 2008-08-12 14:04:25 UTC (rev 10051)
@@ -39,8 +39,8 @@
<f:facet name="header">
<h:outputText value="Ajax Action" />
</f:facet>
- <a4j:commandButton value="Ajax Action" reRender="results"
- action="#{item.action}" id="#{item.name}_ajax" />
+ <a4j:commandButton action="#{item.action}" value="Ajax Action" reRender="results"
+ id="#{item.name}_ajax" />
</h:column>
<h:column>
<f:facet name="header">
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java 2008-08-12 13:05:36 UTC (rev 10050)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/SeleniumTestBase.java 2008-08-12 14:04:25 UTC (rev 10051)
@@ -841,8 +841,8 @@
* @param y - Y mouse position
* @return - Event
*/
- public String fireMouseEvent(String id, String eventName, int x, int y) {
+ public String fireMouseEvent(String id, String eventName, int x, int y, boolean ctrl) {
return runScript("fireMouseEvent('" + id + "','" + eventName + "', "
- + x + "," + y + ");");
+ + x + "," + y + ","+ctrl+");");
}
}
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java 2008-08-12 13:05:36 UTC (rev 10050)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java 2008-08-12 14:04:25 UTC (rev 10051)
@@ -225,7 +225,7 @@
private void _selectItem(String itemId) {
writeStatus("Select item id: " + itemId);
try {
- fireMouseEvent(itemId, "click", 0, 0);
+ fireMouseEvent(itemId, "click", 0, 0, false);
} catch (Exception e) {
writeStatus("Selection item id: " + itemId + " failed.");
Assert.fail("No item was found. Item id: " + itemId + e);
Modified: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-08-12 13:05:36 UTC (rev 10050)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/OrderingListTest.java 2008-08-12 14:04:25 UTC (rev 10051)
@@ -57,7 +57,7 @@
private String activeItemText;
- @Test
+ //@Test
public void testButtons(Template template) {
renderPage(template);
initFields();
@@ -90,12 +90,11 @@
public void testActions(Template template) {
renderPage(template);
initFields();
-
+
writeStatus("Select two rows");
- clickById(firstRow);
- selenium.controlKeyDown();
- clickById(thirdRow);
- selenium.controlKeyUp();
+
+ fireMouseEvent(firstRow, "click", 0, 0, false);
+ fireMouseEvent(thirdRow, "click", 0, 0, true);
checkButtons(true, true, false, false);
writeStatus("Click on ajax button");
@@ -103,20 +102,19 @@
waitForAjaxCompletion();
AssertTextEquals(actionResultText, "item0");
AssertTextEquals(selectionText, "item0,item2");
- AssertTextEquals(activeItemText, "Item [item2]");
+ AssertTextEquals(activeItemText, "Item [item0]");
writeStatus("Select one row");
- clickById(firstRow);
-
+ fireMouseEvent(firstRow, "click", 0, 0, false);
writeStatus("Click on server link");
clickCommandAndWait(server);
AssertTextEquals(actionResultText, "item1");
AssertTextEquals(selectionText, "item0");
- AssertTextEquals(activeItemText, "Item [item0]");
+ //AssertTextEquals(activeItemText, "Item [item0]");
checkButtons(true, true, false, false);
}
- @Test
+ //@Test
public void testJSFunctions(Template template) {
renderPage(template);
initFields();
16 years, 5 months
JBoss Rich Faces SVN: r10050 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-08-12 09:05:36 -0400 (Tue, 12 Aug 2008)
New Revision: 10050
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-4162
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml 2008-08-12 11:21:41 UTC (rev 10049)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/filteringFeature/examples/externalFiltering.xhtml 2008-08-12 13:05:36 UTC (rev 10050)
@@ -23,7 +23,7 @@
<rich:column filterMethod="#{filteringBean.filterStates}">
<f:facet name="header">
<h:inputText value="#{filteringBean.filterValue}" id="input">
- <a4j:support event="onkeyup" reRender="table , ds"
+ <a4j:support event="onkeyup" reRender="table , ds2"
ignoreDupResponses="true" requestDelay="700" focus="input" />
</h:inputText>
</f:facet>
@@ -34,7 +34,7 @@
<f:facet name="header">
<h:selectOneMenu value="#{filteringBean.filterZone}">
<f:selectItems value="#{filteringBean.filterZones}" />
- <a4j:support event="onchange" reRender="table, ds" />
+ <a4j:support event="onchange" reRender="table, ds2" />
</h:selectOneMenu>
</f:facet>
<h:outputText value="#{cap.timeZone}" />
16 years, 5 months
JBoss Rich Faces SVN: r10049 - Plan and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-08-12 07:21:41 -0400 (Tue, 12 Aug 2008)
New Revision: 10049
Modified:
trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA3.xls
Log:
Modified: trunk/test-applications/qa/Test Plan/ComponentsAssignment3.2.2.BETA3.xls
===================================================================
(Binary files differ)
16 years, 5 months
JBoss Rich Faces SVN: r10048 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: beanValidator/examples and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-08-12 07:15:18 -0400 (Tue, 12 Aug 2008)
New Revision: 10048
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
Log:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml 2008-08-12 11:10:37 UTC (rev 10047)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/hibernateValidation.xhtml 2008-08-12 11:15:18 UTC (rev 10048)
@@ -5,7 +5,7 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <h:form id="validationForm">
+ <h:form id="ajaxValidatorForm2">
<rich:panel>
<f:facet name="header">
<h:outputText value="User Info:" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml 2008-08-12 11:10:37 UTC (rev 10047)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxValidator/examples/jsfValidation.xhtml 2008-08-12 11:15:18 UTC (rev 10048)
@@ -5,7 +5,7 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <h:form id="validationForm">
+ <h:form id="ajaxValidatorForm">
<rich:panel>
<f:facet name="header">
<h:outputText value="User Info:" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml 2008-08-12 11:10:37 UTC (rev 10047)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/beanValidator/examples/simple.xhtml 2008-08-12 11:15:18 UTC (rev 10048)
@@ -5,7 +5,7 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <h:form id="validationForm">
+ <h:form id="beanValidatorForm">
<rich:panel>
<f:facet name="header">
<h:outputText value="#{validationBean.progressString}" id="progress"/>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml 2008-08-12 11:10:37 UTC (rev 10047)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/additionalValidation.xhtml 2008-08-12 11:15:18 UTC (rev 10048)
@@ -14,7 +14,7 @@
color: green;
}
</style>
- <h:form id="validationForm">
+ <h:form id="graphValidatorForm2">
<a4j:region renderRegionOnly="true">
<rich:graphValidator value="#{dayStatistics}">
<table>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml 2008-08-12 11:10:37 UTC (rev 10047)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/graphValidator/examples/hibernateValidation.xhtml 2008-08-12 11:15:18 UTC (rev 10048)
@@ -5,7 +5,7 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <h:form id="validationForm">
+ <h:form id="graphValidatorForm">
<a4j:region renderRegionOnly="true">
<rich:panel id="panel">
<f:facet name="header">
16 years, 5 months
JBoss Rich Faces SVN: r10047 - trunk/samples/richfaces-demo/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2008-08-12 07:10:37 -0400 (Tue, 12 Aug 2008)
New Revision: 10047
Modified:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
Log:
Revert strategy from ALL to DEFAULT caused problems on demo-site
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2008-08-12 08:49:07 UTC (rev 10046)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2008-08-12 11:10:37 UTC (rev 10047)
@@ -46,34 +46,34 @@
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NEKO, TIDY</param-value>
- </context-param>
- <context-param>
- <param-name>org.richfaces.CONTROL_SKINNING</param-name>
- <param-value>enable</param-value>
- </context-param>
-
- <context-param>
- <param-name>org.richfaces.LoadStyleStrategy</param-name>
- <param-value>ALL</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.CONTROL_SKINNING</param-name>
+ <param-value>enable</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>org.richfaces.LoadStyleStrategy</param-name>
+ <param-value>DEFAULT</param-value>
</context-param>
- <context-param>
- <param-name>org.richfaces.LoadScriptStrategy</param-name>
- <param-value>ALL</param-value>
- </context-param>
-
- <filter>
- <display-name>Ajax4jsf Filter</display-name>
- <filter-name>ajax4jsf</filter-name>
- <filter-class>org.ajax4jsf.Filter</filter-class>
- <init-param>
- <param-name>createTempFiles</param-name>
- <param-value>false</param-value>
- </init-param>
- <init-param>
- <param-name>maxRequestSize</param-name>
- <param-value>100000</param-value>
- </init-param>
- </filter>
+ <context-param>
+ <param-name>org.richfaces.LoadScriptStrategy</param-name>
+ <param-value>DEFAULT</param-value>
+ </context-param>
+
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.Filter</filter-class>
+ <init-param>
+ <param-name>createTempFiles</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <param-name>maxRequestSize</param-name>
+ <param-value>100000</param-value>
+ </init-param>
+ </filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
16 years, 5 months
JBoss Rich Faces SVN: r10046 - trunk/docs/userguide.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-12 04:49:07 -0400 (Tue, 12 Aug 2008)
New Revision: 10046
Modified:
trunk/docs/userguide/pom.xml
Log:
Added beanValidator to pom.xml
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2008-08-12 08:48:49 UTC (rev 10045)
+++ trunk/docs/userguide/pom.xml 2008-08-12 08:49:07 UTC (rev 10046)
@@ -54,6 +54,9 @@
</goals>
<configuration>
<artifactItems>
+
+
+
<artifactItem>
<groupId>
org.richfaces.ui
@@ -69,6 +72,23 @@
org.richfaces.ui
</groupId>
<artifactId>
+ beanValidator
+ </artifactId>
+ <version>
+ ${project.version}
+ </version>
+ </artifactItem>
+
+
+
+
+
+
+ <artifactItem>
+ <groupId>
+ org.richfaces.ui
+ </groupId>
+ <artifactId>
calendar
</artifactId>
<version>
16 years, 5 months
JBoss Rich Faces SVN: r10045 - trunk/docs/userguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-08-12 04:48:49 -0400 (Tue, 12 Aug 2008)
New Revision: 10045
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
Log:
Added beanValidator to master.xml
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2008-08-12 08:46:25 UTC (rev 10044)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2008-08-12 08:48:49 UTC (rev 10045)
@@ -56,6 +56,8 @@
<!ENTITY fileUpload_table SYSTEM "../../../target/generated/fileUpload.xml">
<!ENTITY hotKey_table SYSTEM "../../../target/generated/hotKey.xml">
<!ENTITY coreComponents_table SYSTEM "../../../target/generated/a4j.xml">
+ <!ENTITY beanValidator_table SYSTEM "../../../target/generated/beanValidator.xml">
+
]>
<book>
<bookinfo>
@@ -98,6 +100,7 @@
-->
<?forseChanks?>
&coreComponents_table;
+&beanValidator_table;
&calendar_table;
&comboBox_table;
&componentControl_table;
@@ -113,6 +116,7 @@
&effect_table;
&fileUpload_table;
&gmap_table;
+&graphValidator_table;
&virtualEarth_table;
&hotKey_table;
&inplaceInput_table;
16 years, 5 months