JBoss Rich Faces SVN: r2715 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-09-03 10:28:26 -0400 (Mon, 03 Sep 2007)
New Revision: 2715
Modified:
trunk/docs/userguide/en/src/main/docbook/included/calendar.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/include.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
trunk/docs/userguide/en/src/main/docbook/included/insert.xml
trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml
trunk/docs/userguide/en/src/main/docbook/included/message.xml
trunk/docs/userguide/en/src/main/docbook/included/page.xml
trunk/docs/userguide/en/src/main/docbook/included/panel.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
trunk/docs/userguide/en/src/main/docbook/included/support.xml
trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml
trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/calendar.desc.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/calendar.desc.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -9,7 +9,7 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><rich:calendar></property>
- </emphasis> component is used for creating monthly calendar elements on the page.</para>
+ </emphasis> component is used for creating monthly calendar elements on a page.</para>
<mediaobject>
<imageobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.desc.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.desc.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -23,7 +23,7 @@
<listitem>Filter any UIData based component in dependency on its child's values</listitem>
<listitem>Fully skinnable control and input elements</listitem>
<listitem>Optional value text field with an attribute-managed position</listitem>
- <listitem>Optional disablement of the component on the page</listitem>
+ <listitem>Optional disablement of the component on a page</listitem>
<listitem>Optional ToolTip to display the current value while a handle is dragged</listitem>
<listitem>Dragged state is stable after the mouse moves</listitem>
<listitem>Optional manual input possible if a text input field is present</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragSupport.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -187,7 +187,7 @@
<listitem>ondragexit</listitem>
</itemizedlist>
- <para>Developers can use their own custom JavaScript functions to handle these events.</para>
+ <para>You can use your own custom JavaScript functions to handle these events.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/gmap.desc.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -22,7 +22,7 @@
<itemizedlist>
<listitem>Presents all the Google <property>map</property> functionality</listitem>
<listitem>Highly customizable via attributes</listitem>
- <listitem>No developers JavaScript writing needed to use on the pages</listitem>
+ <listitem>No developers JavaScript writing needed to use on a pages</listitem>
</itemizedlist>
</section>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/include.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/include.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -43,7 +43,7 @@
</h:panelGroup>
]]></programlisting>
<para>For navigation inside a page defined in viewId any components responsible for Ajax requests to the server generation are used.</para>
-<para>For example, the following component on the page "/pages/include/first.xhtml"</para>
+<para>For example, the following component on a page "/pages/include/first.xhtml"</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.desc.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -25,7 +25,7 @@
<itemizedlist>
<listitem>Fully skinnable control and input elements</listitem>
<listitem>Optional value text field with an attribute-managed position</listitem>
- <listitem>Optional disablement of the component on the page</listitem>
+ <listitem>Optional disablement of the component on a page</listitem>
<listitem>Optional ToolTip to display the current value while a handle is dragged</listitem>
<listitem>Dragged state is stable after the mouse moves</listitem>
<listitem>Optional manual input possible if a text input field is present</listitem>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -245,7 +245,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <para>CSS code piece used on the page:</para>
+ <para>CSS code piece used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -244,7 +244,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <para>CSS code piece used on the page:</para>
+ <para>CSS code piece used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/insert.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/insert.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -55,7 +55,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant on the page use the following syntax:</para>
+ <para>To create the simplest variant on a page use the following syntax:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/loadBundle.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -68,7 +68,7 @@
</emphasis> are unavailable.
Instead of
<emphasis role="bold"><property><f:loadBundle></property>
- </emphasis> that might be located anywhere on the page, the
+ </emphasis> that might be located anywhere on a page, the
<emphasis role="bold"><property><a4j:loadBundle></property>
</emphasis> should be declared inside the
Modified: trunk/docs/userguide/en/src/main/docbook/included/message.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/message.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/message.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -129,7 +129,7 @@
<para>To redefine appearance of all <emphasis role="bold">
<property><rich:message></property>
</emphasis> components, you may define the properties of the predefined style classes in the
- common CSS style sheet used on the page (there are no skin parameters and predefined values
+ common CSS style sheet used on a page (there are no skin parameters and predefined values
by default to make it compatible with the standard message component). </para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/page.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/page.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -79,7 +79,7 @@
<property>RENDER_RESPONSE</property>
</emphasis>" phase, thus Ajax can't get control and make a response also. To avoid this problem it was necessary to use <emphasis role="bold">
<property><a4j:page></property>
- </emphasis> on the page round the Ajax updatable area. In the last versions of both frameworks the problem is successfully fixed and no <emphasis role="bold"><property><a4j:page></property></emphasis> usage is required.</para>
+ </emphasis> on a page round the Ajax updatable area. In the last versions of both frameworks the problem is successfully fixed and no <emphasis role="bold"><property><a4j:page></property></emphasis> usage is required.</para>
<para>The component is rendered as a full HTML page template (it was shown in the example). The "<emphasis >
<property>head</property>
</emphasis>" section is defined with the help of the corresponding facet with the name="head" and also there is an attribute with the same name for contentType definition.</para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -303,7 +303,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <para>CSS code piece used on the page:</para>
+ <para>CSS code piece used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -166,7 +166,7 @@
</tbody>
</tgroup>
</table>
- <para>CSS code piece used on the page:</para>
+ <para>CSS code piece used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -217,7 +217,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <para>CSS code piece used on the page:</para>
+ <para>CSS code piece used on a page:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.desc.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.desc.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -9,7 +9,7 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><rich:panelMenu></property>
- </emphasis> component is used to define an inline vertical menu on the page.</para>
+ </emphasis> component is used to define an inline vertical menu on a page.</para>
<mediaobject>
<imageobject>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenu.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -55,7 +55,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant on the page use the following syntax:</para>
+ <para>To create the simplest variant on a page use the following syntax:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuGroup.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -55,7 +55,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant on the page use the following syntax:</para>
+ <para>To create the simplest variant on a page use the following syntax:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelMenuItem.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -55,7 +55,7 @@
<section>
<title>Creating the Component with a Page Tag</title>
- <para>To create the simplest variant on the page use the following syntax:</para>
+ <para>To create the simplest variant on a page use the following syntax:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -133,7 +133,7 @@
</rich:suggestionbox>
...
]]></programlisting>
- <para>It looks on the page in the following way:</para>
+ <para>It looks on a page in the following way:</para>
<figure>
<title>SuggestionBox with tooltip window</title>
<mediaobject>
@@ -222,7 +222,7 @@
]]></programlisting>
- <para>It looks on the page in the following way:</para>
+ <para>It looks on a page in the following way:</para>
<figure>
<title>SuggestionBox with empty list</title>
Modified: trunk/docs/userguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -66,7 +66,7 @@
<a4j:support event="onkeyup" reRender="repeater"/>
</h:inputText>
]]></programlisting>
-<para>Is decoded on the page as:</para>
+<para>Is decoded on a page as:</para>
<para>
<emphasis role="bold">Example:</emphasis>
Modified: trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -60,7 +60,7 @@
...
</rich:togglePanel>
...
- <!--//Set of the toggleControls somewhere on the page.-->
+ <!--//Set of the toggleControls somewhere on a page.-->
...
]]></programlisting>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-09-03 14:12:29 UTC (rev 2714)
+++ trunk/docs/userguide/en/src/main/docbook/included/tooltip.xml 2007-09-03 14:28:26 UTC (rev 2715)
@@ -72,13 +72,13 @@
<title>Details of Usage</title>
<para>
<property>Tooltip</property> main area is a simple rectangle area with any information inside. The content may be defined via
-"value" attribute as text or through any nested content. In case if both defined - value displayed as text and nested content
+"value" attribute as text or via any nested content. When both are defined, the value is displayed as text and nested content
after the text. <property>Tooltip</property> stretches if the content more than the <property>tooltip</property> sizes.
</para>
<para>
-There is possibility to define a facet with name "defaultContent". This facet provides default content to be
-displayed while main content loaded to the page in Ajax mode. Thus after <property>tooltip</property> called in Ajax mode - it
-appeared with the content defined in the facet and after loading complete content changes to loaded one.
+There is possibility to define a facet with the name "defaultContent". This facet provides the default content to
+display while the main content is loaded to a page in an Ajax mode. Thus when <property>tooltip</property> called in an Ajax mode, it
+appears with the content defined in the facet and when loading is completed, the content is changed to a loaded one.
</para>
<para>
Here is an example:
@@ -121,45 +121,44 @@
</mediaobject>
</figure>
<para>
-By default, <property>tooltip</property> appears smart positioned. But as you can see from the previous example - developer
-can define appearance direction through the corresponding attribute "direction". And also it's possible to define vertical and horizontal
-offsets relatively to mouse position.
+By default, <property>tooltip</property> appears smart positioned. But as you can see from the previous example, you
+can define an appearance direction via the corresponding attribute "direction". And also it's possible to define vertical and horizontal
+offsets relatively to a mouse position.
</para>
<para>
-<property>Tooltip</property> appears attached to the corner dependent on <emphasis><property>"direction"</property></emphasis> attribute. By default it is positioned bottom-right.
-<property>Tooltip</property> activation occurs after defined event (default=mouseover) on the parent component taking into consideration
-"delay" attribute (default=0) or after calling JS API function doShow(). <property>Tooltip</property> deactivation occurs after mouseout event
-on the parent component (except mouse hovered the <property>tooltip</property> itself) or after calling JS API function doHide().
+<property>Tooltip</property> appears attached to the corner dependent on the <emphasis><property>"direction"</property></emphasis> attribute. By default it is positioned bottom-right.
+<property>Tooltip</property> activation occurs after a defined event (default=mouseover) on the parent component takes into consideration
+the "delay" attribute (default=0) or after calling JS API function doShow(). <property>Tooltip</property> deactivation occurs after mouseout event on the parent component (excepting the situation when the mouse is hovered onto the <property>tooltip</property> itself) or after calling JS API function doHide().
</para>
<note>
<title>Note:</title>
-It is recommended to define parent component "id" for correct <property>tooltip</property> work.
+It is recommended to define parent component "id" for correction of <property>tooltip</property> work.
</note>
<para>
-The <emphasis><property>"mode"</property></emphasis> attribute is provided to developer to control the way of data loading to <property>tooltip</property> and has following values:
+The <emphasis><property>"mode"</property></emphasis> attribute is provided you to control the way of data loading to <property>tooltip</property>. It has following values:
<itemizedlist>
<listitem>Client</listitem>
<listitem>Ajax</listitem>
</itemizedlist>
</para>
<para>
-In client mode <property>tooltip</property> content is rendered once on server and could be reRendered only through external submit.
-In Ajax mode <property>tooltip</property> content will be requested from server every activation.
+In a client mode, <property>tooltip</property> content is rendered once on the server and could be reRendered only via external submit.
+In an Ajax mode, <property>tooltip</property> content is requested from server every activation.
</para>
<para>
-Special JS API is provided to control of component behaviour:
+Special JS API is provided to control the component behaviour:
<itemizedlist>
- <listitem>doShow() - Show corresponding tooltip</listitem>
- <listitem>doHide() - Hide corresponding tooltip</listitem>
- <listitem>doEnable() - Enable corresponding tooltip</listitem>
- <listitem>doDisable() - Disable corresponding tooltip</listitem>
+ <listitem>doShow() - Shows the corresponding tooltip</listitem>
+ <listitem>doHide() - Hides the corresponding tooltip</listitem>
+ <listitem>doEnable() - Enables the corresponding tooltip</listitem>
+ <listitem>doDisable() - Disables the corresponding tooltip</listitem>
</itemizedlist>
</para>
<para>
-Disabled <property>tooltip</property> will be rendered to the page as usual but JS that responds for its activation will be
-disabled until doEnable() will called.
+Disabled <property>tooltip</property> is rendered to a page as usual but JS that responds for its activation is
+disabled until doEnable() is called.
</para>
<para>
Moreover, to add some JavaScript effects, client events defined on it are used:
@@ -177,11 +176,11 @@
<para>
Special:
<itemizedlist>
- <listitem>onshow - Called after the tooltip called (some element overed) but before its requesting
+ <listitem>onshow - Called after the tooltip is called (some element hovered) but before its request
</listitem>
- <listitem>oncomplete - Called just after the tooltip shown
+ <listitem>oncomplete - Called just after the tooltip is shown
</listitem>
- <listitem>onhide - Called after the tooltip hidden
+ <listitem>onhide - Called after the tooltip is hidden
</listitem>
</itemizedlist>
</para>
@@ -189,13 +188,13 @@
<section>
<title>Look-and-Feel Customization</title>
- <para>For skinnability implementation the components use a <emphasis><property>style class redefinition method</property></emphasis>.
+ <para>For skinnability implementation the components, use a <emphasis><property>style class redefinition method</property></emphasis>.
</para>
<para>Default style classes are mapped on <emphasis><property>skin parameters</property>.</emphasis></para>
<para>To redefine appearance of all <property>tooltip</property> at once, there are two ways:</para>
<itemizedlist>
- <listitem>to redefine corresponding skin parameters</listitem>
+ <listitem>to redefine the corresponding skin parameters</listitem>
<listitem>to add to your style sheets style classes used by a <property>tooltip</property></listitem>
</itemizedlist>
@@ -240,10 +239,10 @@
<section>
<title>Definition custom style classes</title>
<para>
- <property>Tooltip</property> provides one class "rich-tool-tip" which applies to wrapper element <emphasis><property>"span"</property></emphasis> or "div"
+ <property>Tooltip</property> provides one class "rich-tool-tip" which applies to a wrapper element <emphasis><property>"span"</property></emphasis> or "div"
dependently to <property>tooltip</property> layout. In order to redefine style for all <property>tooltips</property>
- on the page with using CSS it's enough to create classes with this name and define in it necessary properties.
- To change style peculiarities of the particular <property>tooltips</property>, define your own style classes in the corresponding
+ on a page with using CSS it's enough to create classes with this name and define in it necessary properties.
+ To change style peculiarities of a particular <property>tooltips</property>, define your own style classes in the corresponding
<property>tooltips</property> attributes.
</para>
</section>
16 years, 7 months
JBoss Rich Faces SVN: r2714 - in trunk/ui/calendar/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-09-03 10:12:29 -0400 (Mon, 03 Sep 2007)
New Revision: 2714
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
RF-796
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-03 14:06:59 UTC (rev 2713)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-03 14:12:29 UTC (rev 2714)
@@ -586,21 +586,25 @@
this.setPopupEvents(base);*/
//rect calculation
- var offsetBase1 = Position.cumulativeOffset(baseInput);
- var offsetBase2 = Position.cumulativeOffset(baseButton);
- var els = element.style;
- var offsetBase = [offsetBase1[0]<offsetBase2[0] ? offsetBase1[0] : offsetBase2[0],
- offsetBase1[1]<offsetBase2[1] ? offsetBase1[1] : offsetBase2[1]];
+ var offsetBase = Position.cumulativeOffset(baseButton);
+ if (this.params.showInput)
+ {
+ var offsetBase1 = Position.cumulativeOffset(baseInput);
+
+ offsetBase = [offsetBase[0]<offsetBase1[0] ? offsetBase[0] : offsetBase1[0],
+ offsetBase[1]<offsetBase1[1] ? offsetBase[1] : offsetBase1[1]];
+ var offsetDimInput = Richfaces.Calendar.getOffsetDimensions(baseInput);
+ }
+
var offsetDimBase = Richfaces.Calendar.getOffsetDimensions(base);
var offsetDimButton = Richfaces.Calendar.getOffsetDimensions(baseButton);
- var offsetDimInput = Richfaces.Calendar.getOffsetDimensions(baseInput);
var o = {left: offsetBase[0],
top: offsetBase[1],
width: offsetDimBase.width,
- height: (offsetDimButton.height>offsetDimInput.height ? offsetDimButton.height : offsetDimInput.height)};
-
+ height: (offsetDimInput && offsetDimInput.height>offsetDimButton.height ? offsetDimInput.height : offsetDimButton.height)};
+
Richfaces.Calendar.setElementPosition(element, o, this.params.jointPoint, this.params.direction);
if (Richfaces.browser.isIE6)
@@ -626,7 +630,7 @@
},
eventOnCollapse: function (e) {
- if (Event.element(e).id == this.POPUP_BUTTON_ID) return true;
+ if (Event.element(e).id == this.POPUP_BUTTON_ID || (!this.params.enableManualInput && Event.element(e).id == this.INPUT_DATE_ID) ) return true;
Position.prepare();
if (Position.withinIncludingScrolloffsets($(this.id), Event.pointerX(e), Event.pointerY(e))) return true;
Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-09-03 14:06:59 UTC (rev 2713)
+++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-09-03 14:12:29 UTC (rev 2714)
@@ -34,6 +34,8 @@
toolTipMode:'#{component.toolTipMode}',
boundaryDatesMode:'#{component.boundaryDatesMode}',
popup: #{component.popup},
+ enableManualInput: #{component.attributes['enableManualInput']},
+ showInput: #{component.attributes['showInput']},
disabled: #{component.disabled},
<f:call name="writeSymbols" />,
firstWeekDay: #{this:getFirstWeekDay(context, component)},
@@ -104,20 +106,20 @@
boolean showInput = getUtils().isBooleanAttribute(component, "showInput");
boolean manualInput = getUtils().isBooleanAttribute(component, "enableManualInput");
- String onclick =null;
+ String onfieldclick =null;
String type="text";
if(manualInput){
variables.setVariable("manualInput",new Boolean(!manualInput));
}
else{
variables.setVariable("manualInput",new Boolean(!manualInput));
- onclick = "$('"+clientId+"').component.doExpand();";
+ onfieldclick = "$('"+clientId+"').component.doSwitch();";
}
if (!showInput){
type="hidden";
}
- variables.setVariable("onclick",onclick);
+ variables.setVariable("onfieldclick",onfieldclick);
variables.setVariable("type",type);
]]>
@@ -136,7 +138,7 @@
onselect="#{component.attributes['oninputselect']}"
onfocus="#{component.attributes['oninputfocus']}"
onblur="#{component.attributes['oninputblur']}"
- onclick="#{component.attributes['oninputclick']}"
+ onclick="#{onfieldclick} #{component.attributes['oninputclick']}"
onkeypress="#{component.attributes['oninputkeypress']}"
onkeydown="#{component.attributes['oninputkeydown']}"
onkeyup="#{component.attributes['oninputkeyup']}"
16 years, 7 months
JBoss Rich Faces SVN: r2713 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-09-03 10:06:59 -0400 (Mon, 03 Sep 2007)
New Revision: 2713
Modified:
trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml
trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml
Log:
http://jira.jboss.com/jira/browse/RF-658
Modified: trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml 2007-09-03 14:05:54 UTC (rev 2712)
+++ trunk/docs/userguide/en/src/main/docbook/included/recursiveTreeNodes.xml 2007-09-03 14:06:59 UTC (rev 2713)
@@ -111,9 +111,9 @@
</rich:treeNodes>
<rich:recursiveTreeNodes id="archiveEntry" var="archiveEntry"
- root="#{dir.files}" nodes="#{archiveEntry.archiveEntries}"
- activeRoot="#{archiveEntry.class.simpleName == 'ArchiveFile'}"
- activeNodes="#{archiveEntry.class.simpleName == 'ArchiveEntry'}">
+ roots="#{dir.files}" nodes="#{archiveEntry.archiveEntries}"
+ includedRoot="#{archiveEntry.class.simpleName == 'ArchiveFile'}"
+ includedNode="#{archiveEntry.class.simpleName == 'ArchiveEntry'}">
<rich:treeNode id="archiveEntryNode">
<h:commandLink action="#{archiveEntry.click}" value="Archive entry: #{archiveEntry.name}" />
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml 2007-09-03 14:05:54 UTC (rev 2712)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml 2007-09-03 14:06:59 UTC (rev 2713)
@@ -26,7 +26,6 @@
<itemizedlist>
<listitem>Allows to define combined data models</listitem>
<listitem>Possibility to define nodes for processing via attributes</listitem>
- <listitem>Allows to process nodes recursively</listitem>
</itemizedlist>
</section>
</section>
16 years, 7 months
JBoss Rich Faces SVN: r2712 - trunk/ui/treeModel/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-09-03 10:05:54 -0400 (Mon, 03 Sep 2007)
New Revision: 2712
Modified:
trunk/ui/treeModel/src/main/config/component/recursiveTreeNodes.xml
trunk/ui/treeModel/src/main/config/component/treeNodes.xml
Log:
http://jira.jboss.com/jira/browse/RF-658
Modified: trunk/ui/treeModel/src/main/config/component/recursiveTreeNodes.xml
===================================================================
--- trunk/ui/treeModel/src/main/config/component/recursiveTreeNodes.xml 2007-09-03 14:01:40 UTC (rev 2711)
+++ trunk/ui/treeModel/src/main/config/component/recursiveTreeNodes.xml 2007-09-03 14:05:54 UTC (rev 2712)
@@ -40,33 +40,45 @@
<name>var</name>
<classname>java.lang.String</classname>
<description>
+ A request-scope attribute via which the data object for the current collection element will be used when iterating
</description>
</property>
<property elonly="true">
<name>nodes</name>
<classname>java.lang.Object</classname>
<description>
+ Defines collection to use at the other (non-top) levels of iteration
</description>
</property>
<property elonly="true">
<name>roots</name>
<classname>java.lang.Object</classname>
<description>
+ Defines collection to use at the top of iteration
</description>
</property>
<property>
<name>included</name>
<classname>boolean</classname>
+ <description>
+ This boolean expression is used to define which elements of both collections are processed
+ </description>
<defaultvalue>true</defaultvalue>
</property>
<property>
<name>includedRoot</name>
<classname>boolean</classname>
+ <description>
+ This boolean expression is used to define which elements are processed appling to "roots" collection
+ </description>
<defaultvalue>true</defaultvalue>
</property>
<property>
<name>includedNode</name>
<classname>boolean</classname>
+ <description>
+ This boolean expression is used to define which elements are processed
+ </description>
<defaultvalue>true</defaultvalue>
</property>
</component>
Modified: trunk/ui/treeModel/src/main/config/component/treeNodes.xml
===================================================================
--- trunk/ui/treeModel/src/main/config/component/treeNodes.xml 2007-09-03 14:01:40 UTC (rev 2711)
+++ trunk/ui/treeModel/src/main/config/component/treeNodes.xml 2007-09-03 14:05:54 UTC (rev 2712)
@@ -40,17 +40,22 @@
<name>var</name>
<classname>java.lang.String</classname>
<description>
+ A request-scope attribute via which the data object for the current collection element will be used when iterating
</description>
</property>
<property elonly="true">
<name>nodes</name>
<classname>java.lang.Object</classname>
<description>
+ Defines collection to use at the other (non-top) levels of iteration
</description>
</property>
<property>
<name>includedNode</name>
<classname>boolean</classname>
+ <description>
+ This boolean expression is used to define which elements are processed
+ </description>
<defaultvalue>true</defaultvalue>
</property>
</component>
16 years, 7 months
JBoss Rich Faces SVN: r2711 - trunk/test-applications/facelets/src/main/webapp/DataScroller.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 10:01:40 -0400 (Mon, 03 Sep 2007)
New Revision: 2711
Modified:
trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml
Log:
update
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-09-03 14:01:35 UTC (rev 2710)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-09-03 14:01:40 UTC (rev 2711)
@@ -14,10 +14,12 @@
<h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
var="dT" cellpadding="5px" rows="5" border="1">
<f:facet name="header">
- <rich:datascroller fastControls="#{dataScroller.fastControls}" align="#{dataScroller.align}"
+ <rich:datascroller fastControls="#{dataScroller.fastControls}"
+ align="#{dataScroller.align}" rendered="#{dataScroller.render}"
limitToList="#{dataScroller.limitToList}"
renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
- maxPages="#{dataScroller.maxPages}" scrollerListener="#{dataScroller.ScrollerListener}" />
+ maxPages="#{dataScroller.maxPages}"
+ scrollerListener="#{dataScroller.ScrollerListener}" />
</f:facet>
<h:column>
<h:outputText value="#{dT.data0}" />
@@ -33,15 +35,11 @@
<h:panelGrid columns="2">
<h:outputText value="maxPages" />
- <h:inputText value="#{dataScroller.maxPages}" >
+ <h:inputText value="#{dataScroller.maxPages}">
<a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
</h:inputText>
-
- <h:outputText value="Rendered (dataTable)" />
- <h:selectBooleanCheckbox value="#{dataScroller.renderTable}"
- onclick="submit();" />
- <h:outputText value="Rendered (datascroller):" />
+ <h:outputText value="Rendered:" />
<h:selectBooleanCheckbox value="#{dataScroller.render}"
onclick="submit();" />
@@ -52,7 +50,7 @@
<h:outputText value="limitToList:" />
<h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
onclick="submit();" />
-
+
<h:outputText value="fastControls" />
<h:selectOneRadio value="#{dataScroller.fastControls}">
<f:selectItem itemLabel="auto" itemValue="auto" />
@@ -60,7 +58,7 @@
<f:selectItem itemLabel="hide" itemValue="hide" />
<a4j:support event="onclick" reRender="dataTableId"></a4j:support>
</h:selectOneRadio>
-
+
<h:outputText value="align" />
<h:selectOneRadio value="#{dataScroller.align}">
<f:selectItem itemLabel="left" itemValue="left" />
16 years, 7 months
JBoss Rich Faces SVN: r2710 - in trunk/test-applications/jsp/src/main: webapp/DataScroller and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 10:01:35 -0400 (Mon, 03 Sep 2007)
New Revision: 2710
Modified:
trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java
trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
Log:
update
Modified: trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java 2007-09-03 13:47:04 UTC (rev 2709)
+++ trunk/test-applications/jsp/src/main/java/dfs/DemoSliderBean.java 2007-09-03 14:01:35 UTC (rev 2710)
@@ -28,10 +28,33 @@
* @author $Autor$
*
*/
+
+
+
public class DemoSliderBean {
-
+ private boolean manualInput;
+ private boolean onSlide;
+ private boolean storeResults;
+ private boolean trailer;
+ private String width;
+ private int increment;
+ private int handleValue;
+ private int startRange;
+ private int endRange;
+
DemoInventoryList demoInventoryList;
+ public DemoSliderBean() {
+ manualInput = true;
+ onSlide = true;
+ storeResults = true;
+ width="400px";
+ startRange = 10000;
+ endRange = 60000;
+ increment = 10000;
+ trailer = true;
+ handleValue = 10000;
+ }
public void setDemoInventoryList(DemoInventoryList demoInventoryList) {
this.demoInventoryList = demoInventoryList;
Modified: trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-09-03 13:47:04 UTC (rev 2709)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-09-03 14:01:35 UTC (rev 2710)
@@ -13,10 +13,12 @@
<h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
var="dT" cellpadding="5px" rows="5" border="1">
<f:facet name="header">
- <rich:datascroller fastControls="#{dataScroller.fastControls}" align="#{dataScroller.align}"
+ <rich:datascroller fastControls="#{dataScroller.fastControls}"
+ align="#{dataScroller.align}" rendered="#{dataScroller.render}"
limitToList="#{dataScroller.limitToList}"
renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
- maxPages="#{dataScroller.maxPages}" scrollerListener="#{dataScroller.ScrollerListener}" />
+ maxPages="#{dataScroller.maxPages}"
+ scrollerListener="#{dataScroller.ScrollerListener}" />
</f:facet>
<h:column>
<h:outputText value="#{dT.data0}" />
@@ -32,15 +34,11 @@
<h:panelGrid columns="2">
<h:outputText value="maxPages" />
- <h:inputText value="#{dataScroller.maxPages}" >
+ <h:inputText value="#{dataScroller.maxPages}">
<a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
</h:inputText>
-
- <h:outputText value="Rendered (dataTable)" />
- <h:selectBooleanCheckbox value="#{dataScroller.renderTable}"
- onclick="submit();" />
- <h:outputText value="Rendered (datascroller):" />
+ <h:outputText value="Rendered:" />
<h:selectBooleanCheckbox value="#{dataScroller.render}"
onclick="submit();" />
@@ -51,7 +49,7 @@
<h:outputText value="limitToList:" />
<h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
onclick="submit();" />
-
+
<h:outputText value="fastControls" />
<h:selectOneRadio value="#{dataScroller.fastControls}">
<f:selectItem itemLabel="auto" itemValue="auto" />
@@ -59,7 +57,7 @@
<f:selectItem itemLabel="hide" itemValue="hide" />
<a4j:support event="onclick" reRender="dataTableId"></a4j:support>
</h:selectOneRadio>
-
+
<h:outputText value="align" />
<h:selectOneRadio value="#{dataScroller.align}">
<f:selectItem itemLabel="left" itemValue="left" />
Modified: trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-09-03 13:47:04 UTC (rev 2709)
+++ trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-09-03 14:01:35 UTC (rev 2710)
@@ -95,7 +95,7 @@
</h:panelGroup>
</h:panelGrid>
- <rich:effect for="panel_1_ID" event="" name="hidePanel1" type="Fade"
+ <rich:effect for="panel_1_ID" name="hidePanel1" type="Fade"
params="duration:#{effect.time}" />
<rich:effect for="panel_1_ID" event="" name="showPanel1" type="Appear" />
16 years, 7 months
JBoss Rich Faces SVN: r2709 - in trunk/ui/simpleTogglePanel/src/main: java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: a.izobov
Date: 2007-09-03 09:47:04 -0400 (Mon, 03 Sep 2007)
New Revision: 2709
Added:
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagBase.java
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagHandlerBase.java
Modified:
trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelListenerTagHandler.java
Log:
http://jira.jboss.com/jira/browse/RF-534
Modified: trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-09-03 13:15:35 UTC (rev 2708)
+++ trunk/ui/simpleTogglePanel/src/main/config/component/simpleTogglePanel.xml 2007-09-03 13:47:04 UTC (rev 2709)
@@ -23,13 +23,13 @@
<name>simpleTogglePanel</name>
<classname>org.richfaces.taglib.SimpleTogglePanelTag</classname>
<superclass>
- org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ org.richfaces.taglib.SimpleTogglePanelTagBase
</superclass>
</tag>
<taghandler generate="true">
<classname>org.richfaces.taglib.SimpleTogglePanelTagHandler</classname>
<superclass>
- org.richfaces.taglib.SimpleTogglePanelListenerTagHandler
+ org.richfaces.taglib.SimpleTogglePanelTagHandlerBase
</superclass>
</taghandler>
Modified: trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java 2007-09-03 13:15:35 UTC (rev 2708)
+++ trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java 2007-09-03 13:47:04 UTC (rev 2709)
@@ -21,13 +21,12 @@
package org.richfaces.component;
+import javax.faces.component.ActionSource;
+
import org.ajax4jsf.component.AjaxActionComponent;
import org.ajax4jsf.component.AjaxComponent;
import org.ajax4jsf.event.AjaxSource;
-import javax.faces.component.ActionSource;
-import javax.faces.el.ValueBinding;
-
/**
* JSF component class
*/
@@ -42,27 +41,31 @@
public static final boolean COLLAPSED = false;
public static final boolean EXPANDED = true;
- //xxxx by nick - why properties here? just describe them in config and CDK generates
- //valid fields & save/restore code
- //for "public" (.tld etc.) properties you should create abstract getters/setters only
- //xxxx by nick - according to JavaDocs http://webdownload.exadel.com/downloads/ajax4jsf/documentation/javaAPI/or...
- //AjaxActionComponent already has immediate property
-
-
public abstract void setSwitchType(String switchType);
public abstract String getSwitchType();
- public abstract void setOpened(boolean opened);
+ public void setOpened(boolean opened) {
+ setValue(new Boolean(opened).toString());
+ }
- public abstract boolean isOpened();
+ public boolean isOpened() {
+ Object value = getValue();
+ if (value instanceof Boolean) {
+ return ((Boolean)value).booleanValue();
+ } else if (value instanceof String) {
+ String s = (String) value;
+ return new Boolean(s).booleanValue();
+ }
+ return true;
+ }
public boolean getRendersChildren() {
return true;
}
- public void setValueBinding(String arg0, ValueBinding arg1) {
+/* public void setValueBinding(String arg0, ValueBinding arg1) {
if ("opened".equals(arg0))
super.setValueBinding("value", arg1);
super.setValueBinding(arg0, arg1);
@@ -73,7 +76,7 @@
return super.getValueBinding("value");
return super.getValueBinding(arg0);
}
-
+*/
//public void broadcast(FacesEvent facesEvent) throws AbortProcessingException {
// super.broadcast(facesEvent);
// FacesContext facesContext = FacesContext.getCurrentInstance();
Modified: trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelListenerTagHandler.java
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelListenerTagHandler.java 2007-09-03 13:15:35 UTC (rev 2708)
+++ trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelListenerTagHandler.java 2007-09-03 13:47:04 UTC (rev 2709)
@@ -24,6 +24,7 @@
import javax.faces.component.UIComponent;
import javax.faces.el.MethodBinding;
+import org.ajax4jsf.webapp.taglib.AjaxComponentHandler;
import org.richfaces.event.SimpleToggleEvent;
import com.sun.facelets.FaceletContext;
@@ -33,9 +34,8 @@
import com.sun.facelets.tag.MetadataTarget;
import com.sun.facelets.tag.TagAttribute;
import com.sun.facelets.tag.jsf.ComponentConfig;
-import com.sun.facelets.tag.jsf.ComponentHandler;
-public class SimpleTogglePanelListenerTagHandler extends ComponentHandler {
+public class SimpleTogglePanelListenerTagHandler extends AjaxComponentHandler {
private final static String COLLAPSED_EXPANDED_LISTENER = "collapsedExpandedListener";
public SimpleTogglePanelListenerTagHandler(ComponentConfig config) {
Added: trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagBase.java
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagBase.java (rev 0)
+++ trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagBase.java 2007-09-03 13:47:04 UTC (rev 2709)
@@ -0,0 +1,64 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.taglib;
+
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.webapp.taglib.HtmlComponentTagBase;
+
+public abstract class SimpleTogglePanelTagBase extends HtmlComponentTagBase {
+
+ private boolean _openedSet = false;
+ private String _value = null;
+
+ private void logValueDeprecation(String value) {
+ FacesContext facesContext = getFacesContext();
+ facesContext.getExternalContext().log("opened attribute has been already set for component with id: " + this.getId() +
+ "[" + this._value + "]. value attribute is deprecated and thus has been dropped!");
+ }
+
+ public void setOpened(String opened) {
+ if (_value != null) {
+ logValueDeprecation(_value);
+ }
+
+ _openedSet = false;
+ super.setValue(opened);
+ _openedSet = true;
+ }
+
+ public void setValue(String value) {
+ if (!_openedSet) {
+ _value = value;
+ super.setValue(value);
+ } else {
+ logValueDeprecation(value);
+ }
+ }
+
+ public void release() {
+ super.release();
+ _openedSet = false;
+ _value = null;
+ }
+
+}
Added: trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagHandlerBase.java
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagHandlerBase.java (rev 0)
+++ trunk/ui/simpleTogglePanel/src/main/java/org/richfaces/taglib/SimpleTogglePanelTagHandlerBase.java 2007-09-03 13:47:04 UTC (rev 2709)
@@ -0,0 +1,34 @@
+package org.richfaces.taglib;
+
+import javax.faces.context.FacesContext;
+
+import org.ajax4jsf.webapp.taglib.AjaxComponentHandler;
+
+import com.sun.facelets.tag.MetaRuleset;
+import com.sun.facelets.tag.TagAttribute;
+import com.sun.facelets.tag.TagAttributes;
+import com.sun.facelets.tag.jsf.ComponentConfig;
+
+public abstract class SimpleTogglePanelTagHandlerBase extends
+ SimpleTogglePanelListenerTagHandler {
+
+ public SimpleTogglePanelTagHandlerBase(ComponentConfig config) {
+ super(config);
+ }
+
+ protected MetaRuleset createMetaRuleset(Class type) {
+ TagAttributes attributes = this.tag.getAttributes();
+ TagAttribute attribute = attributes.get("value");
+ if (attribute != null && attributes.get("opened") != null) {
+ TagAttribute idAttribute = attributes.get("id");
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ facesContext.getExternalContext().log("opened attribute has been already set for component with id: " +
+ idAttribute != null ? idAttribute.getValue() : null +
+ "[" + attribute.getValue() + "]. value attribute is deprecated and thus has been dropped!");
+ }
+ return super.createMetaRuleset(type).alias("opened", "value");
+ }
+
+
+
+}
16 years, 7 months
JBoss Rich Faces SVN: r2708 - in trunk: samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-09-03 09:15:35 -0400 (Mon, 03 Sep 2007)
New Revision: 2708
Added:
trunk/framework/impl/src/main/java/org/richfaces/component/util/ColumnUtil.java
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
moved to a different package
Copied: trunk/framework/impl/src/main/java/org/richfaces/component/util/ColumnUtil.java (from rev 2699, trunk/ui/dataTable/src/main/java/org/richfaces/util/ColumnUtil.java)
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/component/util/ColumnUtil.java (rev 0)
+++ trunk/framework/impl/src/main/java/org/richfaces/component/util/ColumnUtil.java 2007-09-03 13:15:35 UTC (rev 2708)
@@ -0,0 +1,65 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces 3.0 - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.component.util;
+
+import javax.faces.component.UIComponent;
+import javax.faces.el.ValueBinding;
+
+import org.richfaces.component.Column;
+
+/**
+ * @author Maksim Kaszynski
+ *
+ */
+public class ColumnUtil {
+
+ /**
+ * Extract sort expression from the column
+ *
+ * @param column
+ * @return logical representation of sort field assigned to column component given
+ * In case of EL-expression, an expression string is returned instead of value - so that EL-expression can be evaluated later;
+ * If there's literal value of dedicated attribute is specified, return it;
+ * If attribute is not set, fall aback to component id
+ */
+
+ public static String getColumnSorting(Column column) {
+
+ UIComponent component = (UIComponent) column;
+
+ ValueBinding binding = component.getValueBinding("sortExpression");
+
+ if (binding != null) {
+ return binding.getExpressionString();
+ }
+
+ String sorting = column.getSortExpression();
+
+ if (sorting != null) {
+ return sorting;
+ }
+
+
+ return component.getId();
+ }
+
+}
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2007-09-03 13:10:57 UTC (rev 2707)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2007-09-03 13:15:35 UTC (rev 2708)
@@ -7,39 +7,27 @@
<h:form>
+ <rich:messages/>
<rich:spacer height="30" />
- <rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="400px"
- width="700px" id="carList" rows="40" columnClasses="col"
- value="#{dataTableScrollerBean.allCars}" var="category" sortMode="single">
+
+ <rich:scrollableDataTable id="id_Table" height="500px" width="500px"
+ rows="5" value="#{dataTableScrollerBean.allCars}" var="row">
- <rich:column id="make">
- <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:column id="mileage">
- <f:facet name="header"><h:outputText styleClass="headerText" value="Mileage" /></f:facet>
- <h:outputText value="#{category.mileage}" />
- </rich:column>
- <rich:column width="200px" id="vin">
- <f:facet name="header"><h:outputText styleClass="headerText" value="VIN" /></f:facet>
- <h:outputText value="#{category.vin}" />
- </rich:column>
- <rich:column id="stock">
- <f:facet name="header"><h:outputText styleClass="headerText" value="Stock" /></f:facet>
- <h:outputText value="#{category.stock}" />
- </rich:column>
+ <rich:column id="id_Id">
+ <f:facet name="header">
+ <h:outputText value="ID" />
+ </f:facet>
+ <h:outputText value="#{row.make}" />
+ </rich:column>
+ <rich:column id="id_name">
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{row.model}" />
+ </rich:column>
+ </rich:scrollableDataTable>
+ </h:form>
- </rich:scrollableDataTable>
- </h:form>
-
</ui:composition>
\ No newline at end of file
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java 2007-09-03 13:10:57 UTC (rev 2707)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java 2007-09-03 13:15:35 UTC (rev 2708)
@@ -12,9 +12,9 @@
import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableDataTable;
+import org.richfaces.component.util.ColumnUtil;
import org.richfaces.model.SortField;
import org.richfaces.model.SortOrder;
-import org.richfaces.util.ColumnUtil;
/**
* Implementation of sortListener for multi-column sorting
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java 2007-09-03 13:10:57 UTC (rev 2707)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java 2007-09-03 13:15:35 UTC (rev 2708)
@@ -7,9 +7,9 @@
import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableDataTable;
+import org.richfaces.component.util.ColumnUtil;
import org.richfaces.model.SortField;
import org.richfaces.model.SortOrder;
-import org.richfaces.util.ColumnUtil;
/**
* @author Maksim Kaszynski
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-09-03 13:10:57 UTC (rev 2707)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-09-03 13:15:35 UTC (rev 2708)
@@ -22,13 +22,13 @@
import org.apache.commons.logging.LogFactory;
import org.richfaces.component.Column;
import org.richfaces.component.UIScrollableDataTable;
+import org.richfaces.component.util.ColumnUtil;
import org.richfaces.event.scroll.ScrollEvent;
import org.richfaces.event.sort.SortEvent;
import org.richfaces.model.SortField;
import org.richfaces.model.SortOrder;
import org.richfaces.renderkit.CompositeRenderer;
import org.richfaces.renderkit.RendererContributor;
-import org.richfaces.util.ColumnUtil;
import org.richfaces.utils.TemplateLoader;
16 years, 7 months
JBoss Rich Faces SVN: r2707 - trunk/ui/panelmenu/src/test/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-09-03 09:10:57 -0400 (Mon, 03 Sep 2007)
New Revision: 2707
Modified:
trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java
Log:
Fixed JUnit test for panel menu.
Modified: trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java
===================================================================
--- trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java 2007-09-03 12:49:08 UTC (rev 2706)
+++ trunk/ui/panelmenu/src/test/java/org/richfaces/component/PanelMenuComponentTest.java 2007-09-03 13:10:57 UTC (rev 2707)
@@ -127,38 +127,47 @@
// Items for testing standard icons.
UIPanelMenuItem item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("triangleItem");
item.setIcon("triangle");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("spacerItem");
item.setIcon("spacer");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("triangleDownItem");
item.setIcon("triangleDown");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("triangleUpItem");
item.setIcon("triangleUp");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("chevronItem");
item.setIcon("chevron");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("chevronUpItem");
item.setIcon("chevronUp");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("chevronDownItem");
item.setIcon("chevronDown");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("discItem");
item.setIcon("disc");
group2.getChildren().add(item);
item = (UIPanelMenuItem)application.createComponent("org.richfaces.panelMenuItem");
+ item.setId("gridItem");
item.setIcon("grid");
group2.getChildren().add(item);
@@ -193,7 +202,7 @@
assertEquals("div", firstGroupDiv.getNodeName());
String styleClass = firstGroupDiv.getAttributeValue("class");
- assertTrue(styleClass.contains("dr-pmenu-group-div"));
+ assertTrue(styleClass.contains("dr-pmenu-top-group-div"));
HtmlElement firstGroupHide = page.getHtmlElementById("tablehide" + group1.getClientId(facesContext));
assertNotNull(firstGroupHide);
16 years, 7 months
JBoss Rich Faces SVN: r2706 - trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-03 08:49:08 -0400 (Mon, 03 Sep 2007)
New Revision: 2706
Modified:
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
Log:
http://jira.jboss.com/jira/browse/RF-806
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-09-03 12:32:35 UTC (rev 2705)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-09-03 12:49:08 UTC (rev 2706)
@@ -116,11 +116,16 @@
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineNodeImage"/>
</u:style>
</u:selector>
-<u:selector name="p.dr-tree-last-node-marker+* .rich-tree-node-handleicon, .dr-tree-h-ic-line-last">
+<u:selector name=".dr-tree-h-ic-line-last">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineLastImage"/>
</u:style>
</u:selector>
+<u:selector name="p.dr-tree-last-node-marker+* .rich-tree-node-handleicon">
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.images.TreeLineLastImage"/>
+ </u:style>
+</u:selector>
<u:selector name="p.dr-tree-last-node-marker+*+div.dr-tree-h-ic-line">
<u:style name="background-image" value="none" />
</u:selector>
16 years, 7 months