JBoss Rich Faces SVN: r12283 - trunk/test-applications/seleniumTest/richfaces/src/test/testng/win.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-01-15 09:16:44 -0500 (Thu, 15 Jan 2009)
New Revision: 12283
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml
Log:
small fix
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml 2009-01-14 17:09:39 UTC (rev 12282)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/testng/win/local_testng.xml 2009-01-15 14:16:44 UTC (rev 12283)
@@ -1,6 +1,6 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="seleniumTest">
- <test name="IEFunctionalTests">
+ <test name="FFFunctionalTests">
<parameter name="browser" value="*firefox"/>
<parameter name="loadStyleStrategy" value="DEFAULT"/>
<parameter name="loadScriptStrategy" value="DEFAULT"/>
16 years, 11 months
Re: admin
by richfaces-svn-commits@lists.jboss.org
16 years, 11 months
from admin
by richfaces-svn-commits@lists.jboss.org
16 years, 11 months
Re: admin
by richfaces-svn-commits@lists.jboss.org
16 years, 11 months
JBoss Rich Faces SVN: r12282 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2009-01-14 12:09:39 -0500 (Wed, 14 Jan 2009)
New Revision: 12282
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
Log:
RF-5448 - the information has been updated and corrected.
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2009-01-14 17:08:39 UTC (rev 12281)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2009-01-14 17:09:39 UTC (rev 12282)
@@ -222,7 +222,8 @@
<para> In order to sort the columns you should use <emphasis>
<property>"sortBy"</property>
</emphasis> attribute that indicates what values to be
- sorted. In order to sort the column you should click on its
+ sorted.This attribute can be used only with the <emphasis role="bold"><property><rich:dataTable></property></emphasis> component.
+ In order to sort the column you should click on its
header. See the following example. </para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -263,6 +264,49 @@
</imageobject>
</mediaobject>
</figure>
+ <para>The <emphasis>
+ <property>"sortExpression"</property>
+ </emphasis> attribute defines a bean property which is used
+ for sorting of a column. This attribute can be used only with the <emphasis role="bold"><property><rich:scrollableDataTable></property></emphasis> component.
+ The following example is a example of the attribute usage.
+ </para>
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:scrollableDataTable id="carList" value="#{dataTableScrollerBean.allCars}"
+ sortMode="single" binding="#{dataTableScrollerBean.table}">
+ <rich:column id="make" sortExpression="#{cap.state}">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Make"/>
+ </f:facet>
+ <h:outputText value="#{category.make}"/>
+ </rich:column>
+ <rich:column id="model">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Model"/>
+ </f:facet>
+ <h:outputText value="#{category.model}"/>
+ </rich:column>
+ <rich:column id="price">
+ <f:facet name="header">
+ <h:outputText styleClass="headerText" value="Price"/>
+ </f:facet>
+ <h:outputText value="#{category.price}"/>
+ </rich:column>
+</rich:scrollableDataTable>
+...]]></programlisting>
+ <!-- <figure>
+ <title>The <emphasis>
+ <property>"sortExpression"</property>
+ </emphasis> attribute usage</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/column7.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>-->
<para> The <emphasis>
<property>"selfSorted"</property>
</emphasis> attribute that would add the possibility of
@@ -367,51 +411,8 @@
</emphasis> attribute which is used with <emphasis
role="bold">
<property><rich:scrollableDataTable></property>
- </emphasis> component. In the following example only the
- first column could be sorted. </para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><![CDATA[...
-<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1"
- id="carList" columnClasses="col" value="#{dataTableScrollerBean.allCars}" var="category"
- sortMode="single" binding="#{dataTableScrollerBean.table}"
- selection="#{dataTableScrollerBean.selection}">
- <rich:column id="make" sortable="true">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Make"/>
- </f:facet>
- <h:outputText value="#{category.make}"/>
- </rich:column>
- <rich:column id="model">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Model"/>
- </f:facet>
- <h:outputText value="#{category.model}"/>
- </rich:column>
- <rich:column id="price">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Price"/>
- </f:facet>
- <h:outputText value="#{category.price}"/>
- </rich:column>
-</rich:scrollableDataTable>
-...]]></programlisting>
- <figure>
- <title>The <emphasis>
- <property>"sortable"</property>
- </emphasis> attribute usage</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/column7.png"
- />
- </imageobject>
- </mediaobject>
- </figure>
- <para><emphasis>
- <property>"sortExpression"</property>
- </emphasis> attribute defines a bean property which is used
- for sorting of a column. This attribute can be used only with the <emphasis role="bold"><property><rich:scrollableDataTable></property></emphasis> component.</para>
+ </emphasis> component.</para>
+
</section>
<section id="filter">
16 years, 11 months
from admin
by richfaces-svn-commits@lists.jboss.org
16 years, 11 months
JBoss Rich Faces SVN: r12281 - in trunk/ui/tooltip/src/test/java/org/richfaces: renderkit/html and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-01-14 12:08:39 -0500 (Wed, 14 Jan 2009)
New Revision: 12281
Modified:
trunk/ui/tooltip/src/test/java/org/richfaces/component/TooltipComponentTest.java
trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5659
Modified: trunk/ui/tooltip/src/test/java/org/richfaces/component/TooltipComponentTest.java
===================================================================
--- trunk/ui/tooltip/src/test/java/org/richfaces/component/TooltipComponentTest.java 2009-01-14 17:02:51 UTC (rev 12280)
+++ trunk/ui/tooltip/src/test/java/org/richfaces/component/TooltipComponentTest.java 2009-01-14 17:08:39 UTC (rev 12281)
@@ -49,6 +49,7 @@
private UIToolTip tooltip1;
private UIToolTip tooltip2;
private static Set javaScripts = new HashSet();
+ private static final boolean IS_PAGE_AVAILABILITY_CHECK = true;
static {
@@ -132,6 +133,8 @@
assertTrue(found);
}
}
+
+ assertEquals(javaScripts.size(), getCountValidScripts(page, javaScripts, IS_PAGE_AVAILABILITY_CHECK).intValue());
}
public void testBroadcast() throws Exception{
FacesEvent fe = new AjaxEvent(tooltip1);
Modified: trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java
===================================================================
--- trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java 2009-01-14 17:02:51 UTC (rev 12280)
+++ trunk/ui/tooltip/src/test/java/org/richfaces/renderkit/html/ToolTipRendererTest.java 2009-01-14 17:08:39 UTC (rev 12281)
@@ -20,9 +20,7 @@
*/
package org.richfaces.renderkit.html;
-import java.util.HashSet;
import java.util.Map;
-import java.util.Set;
import javax.faces.component.html.HtmlOutputText;
@@ -34,16 +32,6 @@
public class ToolTipRendererTest extends AbstractAjax4JsfTestCase{
- private static Set javaScripts = new HashSet();
- static {
-
- javaScripts.add("org.ajax4jsf.javascript.AjaxScript");
- javaScripts.add("org/richfaces/renderkit/html/scripts/utils.js");
- javaScripts.add("org/richfaces/renderkit/html/scripts/tooltip.js");
- javaScripts.add("org.ajax4jsf.javascript.PrototypeScript");
- javaScripts.add("org/richfaces/renderkit/html/scripts/jquery/jquery.js");
- }
-
private UIToolTip toolTip;
private UIToolTip blockToolTip;
private ToolTipRenderer renderer;
16 years, 11 months
JBoss Rich Faces SVN: r12280 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2009-01-14 12:02:51 -0500 (Wed, 14 Jan 2009)
New Revision: 12280
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/tabPanel/tabFacetTest.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java
Log:
https://jira.jboss.org/jira/browse/RF-5559
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/tabPanel/tabFacetTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/tabPanel/tabFacetTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java 2009-01-14 17:02:00 UTC (rev 12279)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/TabPanelTest.java 2009-01-14 17:02:51 UTC (rev 12280)
@@ -38,8 +38,11 @@
private final static String INIT_AJAX_CORE_TEST = "#{panelBean.initAjaxCoreTest}";
private final static String INIT_IMMEDIATE_TEST = "#{panelBean.initImmediateTest}";
+
private final static String INIT_IMMEDIATE_TEST_URL = "pages/tabPanel/immediateTabPanelTest.xhtml";
+ private final static String TAB_FACET_TEST_URL = "pages/tabPanel/tabFacetTest.xhtml";
+
private static Map<String, String> params = new HashMap<String, String>();
static {
@@ -107,55 +110,65 @@
testListener(parentId);
testSubmissionModes(parentId);
+ }
+ @Test
+ public void testTabFacetsAreEncodedDecodedCorrectly(Template template) {
+ renderPage(TAB_FACET_TEST_URL, template, null);
+ writeStatus("Check tab facets are encoded/decoded correctly");
+
+ String parentId = getParentId();
+
+ AssertTextEquals(parentId + "tab1_lbl", "Facet: tab1", "Facet for the 1st tab is not rendered");
+ AssertTextEquals(parentId + "tab2_lbl", "Facet: tab2", "Facet for the 2nd tab is not rendered");
+ AssertTextEquals(parentId + "tab3_lbl", "Facet: tab3", "Facet for the 3rd tab is not rendered");
+ AssertTextEquals(parentId + "tab4_lbl", "Facet: tab4", "Facet for the 4th tab is not rendered");
}
-
+
@Test
public void testImmediatePanel(Template template) {
renderPage(INIT_IMMEDIATE_TEST_URL, template, INIT_IMMEDIATE_TEST);
String parentId = getParentId();
-
+
String tabId1 = parentId + FORM_ID + "tab1";
String tabId2 = parentId + FORM_ID + "tab2";
String tabId4 = parentId + FORM_ID + "tab4";
String messages = parentId + FORM_ID + "messages";
-
- //immediate = true and external validation failure
-
+
+ // immediate = true and external validation failure
+
AssertPresent(tabId1);
AssertNotPresent(messages);
-
+
AssertNotPresent(tabId2);
AssertNotPresent(tabId4);
-
- //switch to second tab
+
+ // switch to second tab
clickCommandAndWait(tabId2 + "_lbl");
-
- //second tab should to open
+
+ // second tab should to open
AssertNotPresent(messages);
AssertNotPresent(tabId1);
AssertPresent(tabId2);
AssertNotPresent(tabId4);
-
- //immediate = false and external validation failure
+
+ // immediate = false and external validation failure
reset(parentId);
-
+
AssertPresent(tabId1);
AssertNotPresent(messages);
-
+
AssertNotPresent(tabId2);
AssertNotPresent(tabId4);
-
- //switch to second tab
+
+ // switch to second tab
clickCommandAndWait(tabId2 + "_lbl");
-
- //second tab should not to open - validation message should appear
+
+ // second tab should not to open - validation message should appear
AssertPresent(messages);
AssertPresent(tabId1);
AssertNotPresent(tabId2);
AssertNotPresent(tabId4);
-
-
}
private void testListener(String parentId) {
16 years, 11 months
JBoss Rich Faces SVN: r12279 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2009-01-14 12:02:00 -0500 (Wed, 14 Jan 2009)
New Revision: 12279
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
Log:
RF-5057 - the information has been updated
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2009-01-14 16:13:07 UTC (rev 12278)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2009-01-14 17:02:00 UTC (rev 12279)
@@ -43,9 +43,13 @@
previous ADF Faces). However, there are some considerations to take
into account for configuring applications to work with
<property>MyFaces</property> and RichFaces. </para>
+ <note>
+ <title>Note:</title>
<para> There are some problems with different filters defined in the web.xml
file clashing. To avoid these problems, the RichFaces filter must be
- the first one among other filters in the web.xml configuration file. </para>
+ the first one among other filters in the web.xml configuration file.
+ </para>
+ </note>
<para> For more information look at: <ulink url="http://myfaces.apache.org">
http://myfaces.apache.org </ulink>
</para>
16 years, 11 months