JBoss Rich Faces SVN: r3376 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-10-15 12:20:48 -0400 (Mon, 15 Oct 2007)
New Revision: 3376
Modified:
trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - verifying classes
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-10-15 16:19:46 UTC (rev 3375)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-10-15 16:20:48 UTC (rev 3376)
@@ -287,6 +287,10 @@
<entry>Defines styles for a header cell</entry>
</row>
<row>
+ <entry>rich-table-header-continue</entry>
+ <entry>Defines styles for all header lines after the first</entry>
+ </row>
+ <row>
<entry>rich-table-subheader</entry>
<entry>Defines styles for a column header</entry>
</row>
@@ -303,14 +307,10 @@
<entry>Defines styles for a table row</entry>
</row>
<row>
- <entry>rich-table-subfooter</entry>
- <entry>Defines styles for a column footer</entry>
+ <entry>rich-table-firstrow</entry>
+ <entry>Defines styles for a table start row</entry>
</row>
<row>
- <entry>rich-table-subfootercell</entry>
- <entry>Defines styles for a column footer cell</entry>
- </row>
- <row>
<entry>rich-table-footer</entry>
<entry>Defines styles for a footer row</entry>
</row>
@@ -318,6 +318,18 @@
<entry>rich-table-footercell</entry>
<entry>Defines styles for a footer cell</entry>
</row>
+ <row>
+ <entry>rich-table-footer-continue</entry>
+ <entry>Defines styles for all footer lines after the first</entry>
+ </row>
+ <row>
+ <entry>rich-table-subfooter</entry>
+ <entry>Defines styles for a column footer</entry>
+ </row>
+ <row>
+ <entry>rich-table-subfootercell</entry>
+ <entry>Defines styles for a column footer cell</entry>
+ </row>
</tbody>
</tgroup>
</table>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-10-15 16:19:46 UTC (rev 3375)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-10-15 16:20:48 UTC (rev 3376)
@@ -470,42 +470,8 @@
</figure>
<para>The screenshot shows the classes names for defining different elements.</para>
-
+
<table>
- <title>Class names</title>
-
- <tgroup cols="2">
- <tbody>
- <row>
- <entry>rich-mpnl-pnl-h</entry>
-
- <entry>This class defines the header style. It's applied to the header elements
- of all panels.</entry>
- </row>
-
- <row>
- <entry>rich-mpnl-pnl-text</entry>
-
- <entry>This class defines the header content style. It's applied to the header
- elements of all panels.</entry>
- </row>
-
- <row>
- <entry>rich-mpnl-pnl-body</entry>
-
- <entry>This class defines the style for the content inside a panel. It's
- applied to the elements inside panels.</entry>
- </row>
-
- <row>
- <entry>generalFamilyFont</entry>
-
- <entry>font-family</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
<title>Classes names that define a component appearance</title>
<tgroup cols="2">
@@ -569,7 +535,7 @@
<row>
<entry>rich-mpnl-body</entry>
- <entry>Defines styles for a modalpanel body</entry>
+ <entry>Defines styles for a content inside a modalpanel</entry>
</row>
<row>
Modified: trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml 2007-10-15 16:19:46 UTC (rev 3375)
+++ trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml 2007-10-15 16:20:48 UTC (rev 3376)
@@ -123,4 +123,25 @@
><property>"style"</property>,</emphasis> <emphasis
><property>"styleClass"</property></emphasis>)and the properties have been changed.</para>
</section>
+ <section>
+ <title>Definition of Custom Style Classes</title>
+ <table>
+ <title>Classes names that define a component appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-tglctrl</entry>
+ <entry>Defines styles for a toggleControl</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
</section>
\ No newline at end of file
17 years, 2 months
JBoss Rich Faces SVN: r3375 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2007-10-15 12:19:46 -0400 (Mon, 15 Oct 2007)
New Revision: 3375
Modified:
trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-920 - added new section
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-10-15 14:37:03 UTC (rev 3374)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-10-15 16:19:46 UTC (rev 3375)
@@ -114,5 +114,93 @@
><property>style classes</property></emphasis> used by the subTable to your page style sheets</listitem>
</itemizedlist>
<para>To redefine a style of a particular page, use component class attributes which list is the same as the <property>subTable</property> one and is known to you.</para>
-</section>
+ </section>
+ <section>
+ <title>Definition of Custom Style Classes</title>
+
+ <table>
+ <title>Classes names that define a subtable appearance</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-subtable</entry>
+ <entry>Defines styles for all subtable</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-caption</entry>
+ <entry>Defines styles for a "caption" facet element</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-header</entry>
+ <entry>Defines styles for a subtable header row</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-headercell</entry>
+ <entry>Defines styles for a subtable header cell</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-header-continue</entry>
+ <entry>Defines styles for all subtable header lines after the first</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-subheader</entry>
+ <entry>Defines styles for a column header of subtable</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-subheadercell</entry>
+ <entry>Defines styles for a column header cell of subtable</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-cell</entry>
+ <entry>Defines styles for a subtable cell</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-row</entry>
+ <entry>Defines styles for a subtable row</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-firstrow</entry>
+ <entry>Defines styles for a subtable start row</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-subfooter</entry>
+ <entry>Defines styles for a column footer of subtable</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-subfootercell</entry>
+ <entry>Defines styles for a column footer cell of subtable</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-footer</entry>
+ <entry>Defines styles for a subtable footer row</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-footercell</entry>
+ <entry>Defines styles for a subtable footer cell</entry>
+ </row>
+ <row>
+ <entry>rich-subtable-footer-continue</entry>
+ <entry>Defines styles for all subtable footer lines after the first</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>In order to redefine styles for all <emphasis role="bold">
+ <property><rich:subTable></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define necessary properties in them.</para>
+
+ <para>To change styles of particular <emphasis role="bold">
+ <property><rich:subTable></property>
+ </emphasis> components, define your own style classes in the corresponding <emphasis
+ role="bold">
+ <property><rich:subTable></property>
+ </emphasis>attributes.</para>
+ </section>
</section>
\ No newline at end of file
17 years, 2 months
JBoss Rich Faces SVN: r3374 - branches/3.1.x/test-applications/qa.
by richfaces-svn-commits@lists.jboss.org
Author: viktor_volkov
Date: 2007-10-15 10:37:03 -0400 (Mon, 15 Oct 2007)
New Revision: 3374
Modified:
branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
Log:
Modified: branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r3373 - branches/3.1.x/test-applications/qa.
by richfaces-svn-commits@lists.jboss.org
Author: viktor_volkov
Date: 2007-10-15 10:24:28 -0400 (Mon, 15 Oct 2007)
New Revision: 3373
Modified:
branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
Log:
Modified: branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r3372 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-10-15 09:37:35 -0400 (Mon, 15 Oct 2007)
New Revision: 3372
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
Log:
http://jira.jboss.com/jira/browse/RF-1086 - added infor about ondataselect and ondataselected attributes
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-10-15 12:53:14 UTC (rev 3371)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2007-10-15 13:37:35 UTC (rev 3372)
@@ -130,13 +130,45 @@
<note>
<title>Note:</title><emphasis>
- <property>"preloadDateRangeBegin"</property>
- </emphasis> and
- <emphasis>
- <property>"preloadDateRangeEnd"</property>
+ <property>"preloadDateRangeBegin"</property>
+ </emphasis> and <emphasis>
+ <property>"preloadDateRangeEnd"</property>
</emphasis> attributes was designed only for the
<property>"client"</property> mode to load some data initially.</note>
+ <para><emphasis>
+ <property>"ondataselect"</property>
+ </emphasis> attribute is used to define an event that is triggered
+ before date selection.</para>
+ <para><emphasis>
+ <property>"ondateselected"</property>
+ </emphasis> attribute is used to define an event that is triggered
+ after date selection. </para>
+ <para>For example, to fire some event after date selection you should use <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis>. And it should be bound to <emphasis>
+ <property>"ondateselected"</property>
+ </emphasis> event as
+ it's shown in the example below:</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <rich:calendar id="date" value="#{bean.dateTest}">
+ <a:support event="ondateselected" reRender="mainTable"/>
+ </rich:calendar>
+...]]></programlisting>
+
+ <para><emphasis>
+ <property>"ondataselect"</property>
+ </emphasis> could be used for possibility of date selection canceling. See an example below:</para>
+
+ <programlisting role="XML"><![CDATA[...
+ <rich:calendar id="date" value="#{bean.dateTest}" ondateselect="if (!confirm('Are you sure to change date?')){return false;}"/>
+...]]></programlisting>
+
+ <para>How to use these attributes see also on the <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092275#..."
+ >RichFaces Users Forum</ulink>.</para>
+
<para>There are three button-related attributes:</para>
<itemizedlist>
<listitem>
@@ -950,7 +982,7 @@
<tbody>
<row>
<entry>rich-calendar-popup</entry>
-
+
<entry>Defines styles for a popup element</entry>
</row>
<row>
17 years, 2 months
JBoss Rich Faces SVN: r3371 - in trunk/framework/impl/src: test/java/org/richfaces/component/util and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-10-15 08:53:14 -0400 (Mon, 15 Oct 2007)
New Revision: 3371
Added:
trunk/framework/impl/src/test/java/org/richfaces/component/util/HtmlUnitTest.java
Modified:
trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java
Log:
RF-1096
JUnit Tests added
Modified: trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java 2007-10-15 12:31:58 UTC (rev 3370)
+++ trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java 2007-10-15 12:53:14 UTC (rev 3371)
@@ -65,7 +65,7 @@
if (matcher.group(1).indexOf("::")==-1)
{
// make new id selector here using matcher.group(1)
- matcher.appendReplacement(sb, "#new value");
+ matcher.appendReplacement(sb, "#new-value");
}
}
matcher.appendTail(sb);
Added: trunk/framework/impl/src/test/java/org/richfaces/component/util/HtmlUnitTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/richfaces/component/util/HtmlUnitTest.java (rev 0)
+++ trunk/framework/impl/src/test/java/org/richfaces/component/util/HtmlUnitTest.java 2007-10-15 12:53:14 UTC (rev 3371)
@@ -0,0 +1,30 @@
+package org.richfaces.component.util;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIInput;
+
+import junit.framework.TestCase;
+
+//Initial draft
+
+public class HtmlUnitTest extends TestCase {
+
+ public void testExpandIdSelector()throws Exception {
+
+ UIComponent comp = new UIInput();
+ String str = HtmlUtil.expandIdSelector(".class_form+#:Test .class2 #_1aaaa:",comp);
+ //System.out.println(str);
+ assertEquals(str,".class_form+#new-value .class2 #new-value");
+ try {
+ str = HtmlUtil.expandIdSelector(null, comp);
+ } catch (NullPointerException e) {
+ assertTrue(true);
+ }
+
+
+
+
+
+ }
+
+}
Property changes on: trunk/framework/impl/src/test/java/org/richfaces/component/util/HtmlUnitTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
17 years, 2 months
JBoss Rich Faces SVN: r3370 - branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-15 08:31:58 -0400 (Mon, 15 Oct 2007)
New Revision: 3370
Modified:
branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
Log:
fix RF-1112
Modified: branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
===================================================================
--- branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15 12:29:46 UTC (rev 3369)
+++ branches/3.1.x/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15 12:31:58 UTC (rev 3370)
@@ -179,13 +179,13 @@
itemNames.add(childName);
}
-
+ buffer.append("var params = new Object();");
+
if(child instanceof UIPanelMenuItem){
List paramsList = encodeParams(context, (UIPanelMenuItem)child);
if(!paramsList.isEmpty()){
- buffer.append("var params = new Object();");
for (Iterator iterator = paramsList.iterator(); iterator.hasNext();) {
- buffer.append(iterator.next());
+ buffer.append((String)iterator.next());
}
}
}
17 years, 2 months
JBoss Rich Faces SVN: r3369 - trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2007-10-15 08:29:46 -0400 (Mon, 15 Oct 2007)
New Revision: 3369
Modified:
trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
Log:
fix RF-1112
Modified: trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java
===================================================================
--- trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15 12:18:49 UTC (rev 3368)
+++ trunk/ui/panelmenu/src/main/java/org/richfaces/renderkit/html/PanelMenuRenderer.java 2007-10-15 12:29:46 UTC (rev 3369)
@@ -179,13 +179,13 @@
itemNames.add(childName);
}
-
+ buffer.append("var params = new Object();");
+
if(child instanceof UIPanelMenuItem){
List paramsList = encodeParams(context, (UIPanelMenuItem)child);
if(!paramsList.isEmpty()){
- buffer.append("var params = new Object();");
for (Iterator iterator = paramsList.iterator(); iterator.hasNext();) {
- buffer.append(iterator.next());
+ buffer.append((String)iterator.next());
}
}
}
17 years, 2 months
JBoss Rich Faces SVN: r3368 - branches/3.1.x/test-applications/qa.
by richfaces-svn-commits@lists.jboss.org
Author: viktor_volkov
Date: 2007-10-15 08:18:49 -0400 (Mon, 15 Oct 2007)
New Revision: 3368
Modified:
branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
Log:
Modified: branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
===================================================================
(Binary files differ)
17 years, 2 months
JBoss Rich Faces SVN: r3367 - branches/3.1.x/test-applications/qa.
by richfaces-svn-commits@lists.jboss.org
Author: viktor_volkov
Date: 2007-10-15 08:14:45 -0400 (Mon, 15 Oct 2007)
New Revision: 3367
Modified:
branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
Log:
Modified: branches/3.1.x/test-applications/qa/QA test report Build RF3.1.2 CR1.xls
===================================================================
(Binary files differ)
17 years, 2 months