JBoss Rich Faces SVN: r15602 - branches/community/3.3.X/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-09-17 06:00:27 -0400 (Thu, 17 Sep 2009)
New Revision: 15602
Modified:
branches/community/3.3.X/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
Log:
https://jira.jboss.org/jira/browse/RF-7810
Modified: branches/community/3.3.X/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js
===================================================================
--- branches/community/3.3.X/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2009-09-17 10:00:01 UTC (rev 15601)
+++ branches/community/3.3.X/ui/listShuttle/src/main/resources/org/richfaces/renderkit/html/scripts/ListShuttle.js 2009-09-17 10:00:27 UTC (rev 15602)
@@ -202,14 +202,10 @@
}
if (Richfaces.browser.isFF2 && (targetComponent.shuttleTbody.rows.length == 0)) {
this.tableUpdate(targetComponent);
- this.addItem(targetComponent, item);
-
- this.removeItem(sourceComponent, item);
- sourceComponent.shuttleTable.deleteRow(item._node.rowIndex);
- } else {
- this.addItem(targetComponent, item);
- this.removeItem(sourceComponent, item);
}
+
+ this.addItem(targetComponent, item);
+ this.removeItem(sourceComponent, item);
},
removeItem : function(component, item) {
14 years, 7 months
JBoss Rich Faces SVN: r15601 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-09-17 06:00:01 -0400 (Thu, 17 Sep 2009)
New Revision: 15601
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceInput.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceSelect.xml
Log:
https://jira.jboss.org/jira/browse/RF-7803 - the component description is reviewed and updated. The tables with style classes (selectors) are restructured.
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceInput.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceInput.xml 2009-09-16 23:00:50 UTC (rev 15600)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceInput.xml 2009-09-17 10:00:01 UTC (rev 15601)
@@ -29,7 +29,7 @@
<title>Key Features</title>
<itemizedlist>
<listitem>
- <para>View/changed/edit states highly customizable representations</para>
+ <para>View/changed/edit states in highly customizable representations</para>
</listitem>
<listitem>
<para>Changing state event customization</para>
@@ -59,7 +59,7 @@
<emphasis role="bold">
<property><rich:inplaceInput></property>
</emphasis>
- component was designed to facilitate displaying and inputting(editing) some data.
+ component was designed to facilitate displaying and inputting (editing) some data.
</para>
<para>
@@ -81,7 +81,7 @@
<itemizedlist>
<listitem>
<para>
- <property>View</property> state displays default label with the value taken from
+ <property>View</property> state displays the default label with the value taken from the
<emphasis>
<property>"value"</property>
</emphasis> or <emphasis>
@@ -114,10 +114,10 @@
In the example above the <emphasis>
<property>"value"</property>
</emphasis> attribute is not initialized
- therefore "<code>click to edit</code>" text, that
+ therefore the "<code>click to edit</code>" text, that
<emphasis>
<property>"defaultLabel"</property>
- </emphasis>, contains is displayed.
+ </emphasis> contains, is displayed.
</para>
<para>
This is the result:
@@ -264,7 +264,7 @@
</emphasis>
attribute, which makes "Save" and "Cancel" buttons appear next to the input field.
If the controls are used, data is not saved automatically when the form loses focus: user has to confirm that he/she wants to save/discard the data explicitly.
- In both cases(with controls or without them) the input data can be discarded by pressing "Esc" key.
+ In both cases (with controls or without them) the input data can be discarded by pressing "Esc" key.
</para>
<para>
@@ -289,7 +289,7 @@
<itemizedlist>
<listitem>
<para>
- The <emphasis>
+ the <emphasis>
<property>"controlsHorizontalPosition"</property>
</emphasis> attribute
with "left", "right" and "center" definitions
@@ -297,7 +297,7 @@
</listitem>
<listitem>
<para>
- The <emphasis>
+ the <emphasis>
<property>"controlsVerticalPosition "</property>
</emphasis> attribute
with "bottom", "center" and "top" definitions
@@ -417,7 +417,7 @@
<para>
The <emphasis role="bold">
<property><rich:inplaceInput></property>
- </emphasis> component supports standard
+ </emphasis> component supports the standard
<emphasis>
<property>"tabindex"</property>
</emphasis> attribute.
@@ -556,133 +556,145 @@
</row>
</tbody>
</tgroup>
- </table>
- <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-inplace</entry>
- <entry>Defines styles for a wrapper <span> (or <div>) element of a component</entry>
- </row>
- <row>
- <entry>rich-inplace-input</entry>
- <entry>Defines styles for the component input field</entry>
- </row>
- </tbody>
- </tgroup>
</table>
- <table id="tab_cn_iI">
- <title>Class name for the view state</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-inplace-view</entry>
- <entry>Defines styles for the view state</entry>
- </row>
- <row>
- <entry>rich-inplace-input-view-hover</entry>
- <entry>Defines styles for hovered text in the view state </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Class name for the input field in edit state</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-inplace-field</entry>
- <entry>Defines styles for the input field look and feel in edit state</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Class name for the "Changed" state</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-inplace-changed</entry>
- <entry>Defines styles for the "Changed" state</entry>
- </row>
- <row>
- <entry> rich-inplace-input-changed-hover </entry>
- <entry>Defines styles for the hovered text in the "Changed" state</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names for "save" and "cancel" controls in Edit state</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
-
- <row>
- <entry>rich-inplace-control</entry>
- <entry>Defines styles for the controls</entry>
- </row>
- <row>
- <entry>rich-inplace-control-press</entry>
- <entry>Defines styles for the controls when either of the buttons is pressed</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-size</entry>
- <entry>Defines size of the shadow</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-tl</entry>
- <entry>Defines styles for the shadow in the top left corner </entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-tr</entry>
- <entry>Defines styles for the shadow in the top right corner</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-bl</entry>
- <entry>Defines styles for the shadow in the bottom left corner</entry>
- </row>
- <row>
- <entry>rich-inplace-shadow-br</entry>
- <entry>Defines styles for the shadow in the bottom right corner</entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
- You can find all necessary information about style classes redefinition in
+
+ <table>
+ <title>Style classes (selectors) with the corresponding skin parameters</title>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Class (selector) name</entry>
+ <entry>Description</entry>
+ <entry>Skin Parameters</entry>
+ <entry>CSS properties mapped</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry morerows="1">.rich-inplace-control</entry>
+ <entry morerows="1">Defines styles for the controls</entry>
+ <entry>tabBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-inplace-control-press</entry>
+ <entry morerows="1">Defines styles for the controls when either of the buttons is pressed</entry>
+ <entry>tabBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-inplace-view</entry>
+ <entry morerows="1">Defines styles for the view state</entry>
+ <entry>editorBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>border-bottom-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-inplace-changed</entry>
+ <entry morerows="1">Defines styles for the "Changed" state</entry>
+ <entry>editorBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>border-bottom-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">input.rich-inplace-field</entry>
+ <entry morerows="1">Defines styles for the input field in edit state</entry>
+ <entry>editorBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Style classes (selectors) without skin parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-inplace</entry>
+ <entry>Defines styles for a wrapper <span> (or <div>) element of a component</entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-input</entry>
+ <entry>Defines styles for the component input field</entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-input-view-hover</entry>
+ <entry>Defines styles for hovered text in the view state </entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-field</entry>
+ <entry>Defines styles for the input field look and feel in edit state</entry>
+ </row>
+
+ <row>
+ <entry> rich-inplace-input-changed-hover </entry>
+ <entry>Defines styles for the hovered text in the "Changed" state</entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-shadow-size</entry>
+ <entry>Defines size of the shadow</entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-shadow-tl</entry>
+ <entry>Defines styles for the shadow in the top left corner </entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-shadow-tr</entry>
+ <entry>Defines styles for the shadow in the top right corner</entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-shadow-bl</entry>
+ <entry>Defines styles for the shadow in the bottom left corner</entry>
+ </row>
+
+ <row>
+ <entry>rich-inplace-shadow-br</entry>
+ <entry>Defines styles for the shadow in the bottom right corner</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>You can find all necessary information about style classes redefinition in
<link linkend="customstyles">Definition of Custom Style Classes</link>
- section.
+ section.</para>
</section>
<section>
<title>Relevant Resources Links</title>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceSelect.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceSelect.xml 2009-09-16 23:00:50 UTC (rev 15600)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_inplaceSelect.xml 2009-09-17 10:00:01 UTC (rev 15601)
@@ -12,7 +12,7 @@
<title>Description</title>
<para>The <emphasis role="bold">
<property><rich:inplaceSelect></property>
- </emphasis> is used for creation select based inputs: it shows the value as text in one state and enables editing the value, providing a list of options in another state</para>
+ </emphasis> is used for the creation of select based inputs: it shows the value as a text in one state and enables editing the value, providing a list of options in another state</para>
<figure>
<title>Three states of <emphasis role="bold">
@@ -29,7 +29,7 @@
<title>Key Features</title>
<itemizedlist>
<listitem>
- <para>View/changed/edit states highly customizable representations</para>
+ <para>View/changed/edit states in highly customizable representations</para>
</listitem>
<listitem>
<para>Optional "inline" or "block" element rendering on a page</para>
@@ -79,10 +79,10 @@
If the initial value of the <emphasis>
<property>"value"</property>
</emphasis>
- attribute is "null" or <property>empty string</property>
+ attribute is "null" or <property>empty string</property>,
the <emphasis>
<property>"defaultLabel"</property>
- </emphasis> attribute is used to define default label.
+ </emphasis> attribute is used to define a default label.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -103,11 +103,11 @@
<para>
In the example above the <emphasis>
<property>"value"</property>
- </emphasis> attribute is not initialized
- therefore "<code>click to edit</code>" text, that
+ </emphasis> attribute is not initialized,
+ therefore the "<code>click to edit</code>" text, that
<emphasis>
<property>"defaultLabel"</property>
- </emphasis>, contains is displayed.
+ </emphasis> contains, is displayed.
</para>
<para>
This is the result:
@@ -179,7 +179,7 @@
<para>
The <emphasis>
<property>"editEvent"</property>
- </emphasis> attribute provides an option to assign an JavaScript action
+ </emphasis> attribute provides an option to assign a JavaScript action
that initiates the change of the state from <property>view</property> to <property>edit</property>.
The default value is "onclick".
</para>
@@ -324,7 +324,7 @@
<itemizedlist>
<listitem>
<para>
- The <emphasis>
+ the <emphasis>
<property>"controlsHorizontalPosition"</property>
</emphasis> attribute
with "left", "right" and "center" definitions
@@ -332,7 +332,7 @@
</listitem>
<listitem>
<para>
- The <emphasis>
+ the <emphasis>
<property>"controlsVerticalPosition "</property>
</emphasis> attribute
with "bottom" and "top" definitions
@@ -363,7 +363,7 @@
</emphasis>
facet in order to replace the default controls with facets content. See the example below.
</para>
- <para>Please, see the example.</para>
+
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -451,7 +451,7 @@
<para>
The <emphasis role="bold">
<property><rich:inplaceSelect></property>
- </emphasis> component supports standard
+ </emphasis> component supports the standard
<emphasis>
<property>"tabindex"</property>
</emphasis> attribute.
@@ -582,138 +582,138 @@
</tbody>
</tgroup>
</table>
- <table id="cn3">
- <title>Class name for the view state</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-inplace-select-view</entry>
- <entry>Defines styles for the select view</entry>
- </row>
-
-
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Class name for the input field in edit state</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-inplace-select-field</entry>
- <entry>Defines styles for the select field</entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Class name for the control</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-inplace-select-control</entry>
- <entry>Defines styles for the select control</entry>
- </row>
- <row>
- <entry>rich-inplace-select-control-press</entry>
- <entry>Defines styles for the pressed select control</entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Class name for the list</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>rich-inplace-select-list-decoration</entry>
- <entry>Defines styles for a wrapper <table> element of an inplaceSelect</entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names for the selected item</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
-
- <row>
- <entry>rich-inplace-select-selected-item</entry>
- <entry>Defines styles for the selected item</entry>
- </row>
-
-
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>Classes names for the shadow</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
-
- <row>
- <entry>rich-inplace-select-shadow-tl</entry>
- <entry>Defines styles for the top-left shadow</entry>
- </row>
- <row>
- <entry>rich-inplace-select-shadow-tr</entry>
- <entry>Defines styles for the top-right shadow</entry>
- </row>
- <row>
- <entry>rich-inplace-select-shadow-bl</entry>
- <entry>Defines styles for the bottom-left shadow</entry>
- </row>
- <row>
- <entry>rich-inplace-select-shadow-br</entry>
- <entry>Defines styles for the bottom-right shadow</entry>
- </row>
-
-
- </tbody>
- </tgroup>
- </table>
- You can find all necessary information about style classes redefinition in
+
+ <table>
+ <title>Style classes (selectors) with the corresponding skin parameters</title>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Class (selector) name</entry>
+ <entry>Description</entry>
+ <entry>Skin Parameters</entry>
+ <entry>CSS properties mapped</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry morerows="1">.rich-inplace-select-view</entry>
+ <entry morerows="1">Defines styles for the component in the view state</entry>
+ <entry>editorBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>generaTextColor</entry>
+ <entry>border-bottom-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">input.rich-inplace-select-field, .rich-inplace-select-field</entry>
+ <entry morerows="1">Define styles for the component input field</entry>
+ <entry>editorBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-inplace-select-control</entry>
+ <entry morerows="1">Defines styles for the component control</entry>
+ <entry>tabBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-inplace-select-control-press</entry>
+ <entry morerows="1">Defines styles for the pressed control</entry>
+ <entry>tabBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-inplace-select-list-decoration</entry>
+ <entry morerows="1">Defines styles for a wrapper <table> element of the component</entry>
+ <entry>editBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-inplace-select-selected-item</entry>
+ <entry morerows="1">Defines styles for the selected item</entry>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color, border-color</entry>
+ </row>
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+
+ <row>
+ <entry>input.rich-inplace-select-arrow</entry>
+ <entry>Defines styles for the drop-down arrow</entry>
+ <entry>editBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Style classes (selectors) without skin parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-inplace-select-changed</entry>
+ <entry>Defines styles for the component in the changed state</entry>
+ </row>
+
+ <row>
+ <entry>.rich-inplace-select-shadow-tl</entry>
+ <entry>Defines styles for the top-left shadow</entry>
+ </row>
+
+ <row>
+ <entry>.rich-inplace-select-shadow-tr</entry>
+ <entry>Defines styles for the top-right shadow</entry>
+ </row>
+
+ <row>
+ <entry>.rich-inplace-select-shadow-bl</entry>
+ <entry>Defines styles for the bottom-left shadow</entry>
+ </row>
+
+ <row>
+ <entry>.rich-inplace-select-shadow-br</entry>
+ <entry>Defines styles for the bottom-right shadow</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>You can find all necessary information about style classes redefinition in
<link linkend="customstyles">Definition of Custom Style Classes</link>
- section.
+ section.</para>
</section>
<section>
<title>Relevant Resources Links</title>
14 years, 7 months
JBoss Rich Faces SVN: r15600 - in branches/community/3.3.X/ui/editor/src: test/java/org/richfaces/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-09-16 19:00:50 -0400 (Wed, 16 Sep 2009)
New Revision: 15600
Modified:
branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx
branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java
Log:
https://jira.jboss.org/jira/browse/RF-7040
Modified: branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx
===================================================================
--- branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx 2009-09-16 22:07:54 UTC (rev 15599)
+++ branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx 2009-09-16 23:00:50 UTC (rev 15600)
@@ -27,8 +27,7 @@
if ("input".equals(component.getAttributes().get("inputElementType"))) {
]]>
</jsp:scriptlet>
- <input type="text" id="#{clientId}TextArea" name="#{clientId}TextArea"
- style="visibility: hidden"
+ <input type="hidden" id="#{clientId}TextArea" name="#{clientId}TextArea"
value="#{this:getFormattedComponentStringValue(context, component)}" />
<jsp:scriptlet>
<![CDATA[
Modified: branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java
===================================================================
--- branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java 2009-09-16 22:07:54 UTC (rev 15599)
+++ branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java 2009-09-16 23:00:50 UTC (rev 15600)
@@ -169,9 +169,7 @@
+ UIEditor.EDITOR_TEXT_AREA_ID_SUFFIX);
assertNotNull(input);
assertEquals(input.getTagName(), "input");
- String style = input.getAttribute("style");
- assertNotNull(style);
- assertTrue(style.contains("visibility: hidden"));
+ assertEquals("hidden", input.getAttribute("type"));
String value = input.getAttribute("value");
assertEquals("Some value", value);
}
14 years, 7 months
JBoss Rich Faces SVN: r15599 - in branches/community/3.3.X/ui/editor/src: main/templates and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2009-09-16 18:07:54 -0400 (Wed, 16 Sep 2009)
New Revision: 15599
Modified:
branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml
branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx
branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java
Log:
https://jira.jboss.org/jira/browse/RF-7040
Modified: branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml
===================================================================
--- branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml 2009-09-16 17:04:15 UTC (rev 15598)
+++ branches/community/3.3.X/ui/editor/src/main/config/component/editor.xml 2009-09-16 22:07:54 UTC (rev 15599)
@@ -197,5 +197,10 @@
<classname>java.lang.String</classname>
<description>A localized user presentable name for this component.</description>
</property>
+ <property>
+ <name>inputElementType</name>
+ <classname>java.lang.String</classname>
+ <defaultvalue>"textarea"</defaultvalue>
+ </property>
</component>
</components>
Modified: branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx
===================================================================
--- branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx 2009-09-16 17:04:15 UTC (rev 15598)
+++ branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx 2009-09-16 22:07:54 UTC (rev 15599)
@@ -21,11 +21,30 @@
if(shouldRenderTinyMCE(component)) {
]]>
</jsp:scriptlet>
+
+ <jsp:scriptlet>
+ <![CDATA[
+ if ("input".equals(component.getAttributes().get("inputElementType"))) {
+ ]]>
+ </jsp:scriptlet>
+ <input type="text" id="#{clientId}TextArea" name="#{clientId}TextArea"
+ style="visibility: hidden"
+ value="#{this:getFormattedComponentStringValue(context, component)}" />
+ <jsp:scriptlet>
+ <![CDATA[
+ } else {
+ ]]>
+ </jsp:scriptlet>
+ <textarea id="#{clientId}TextArea" name="#{clientId}TextArea"
+ style="visibility: hidden">
+ #{this:getFormattedComponentStringValue(context, component)}
+ </textarea>
+ <jsp:scriptlet>
+ <![CDATA[
+ }
+ ]]>
+ </jsp:scriptlet>
- <textarea id="#{clientId}TextArea" name="#{clientId}TextArea"
- style="visibility: hidden">
- #{this:getFormattedComponentStringValue(context, component)}
- </textarea>
<script type="text/javascript">
<f:call name="writeEditorCustomPluginsParameters" />
Modified: branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java
===================================================================
--- branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java 2009-09-16 17:04:15 UTC (rev 15598)
+++ branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java 2009-09-16 22:07:54 UTC (rev 15599)
@@ -155,6 +155,27 @@
assertEquals("Some value", value);
}
+ public void testEditorRenderingInput() throws Exception {
+ editor.getAttributes().put("inputElementType", "input");
+
+ HtmlPage page = renderView();
+ assertNotNull(page);
+ HtmlElement htmlDiv = page.getHtmlElementById(editor
+ .getClientId(facesContext));
+ assertNotNull(htmlDiv);
+ assertEquals(htmlDiv.getTagName(), "div");
+ HtmlElement input = page.getHtmlElementById(editor
+ .getClientId(facesContext)
+ + UIEditor.EDITOR_TEXT_AREA_ID_SUFFIX);
+ assertNotNull(input);
+ assertEquals(input.getTagName(), "input");
+ String style = input.getAttribute("style");
+ assertNotNull(style);
+ assertTrue(style.contains("visibility: hidden"));
+ String value = input.getAttribute("value");
+ assertEquals("Some value", value);
+ }
+
/* (non-Javadoc)
* @see org.ajax4jsf.tests.AbstractAjax4JsfTestCase#tearDown()
*/
14 years, 7 months
JBoss Rich Faces SVN: r15598 - in branches/community/3.3.X/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-09-16 13:04:15 -0400 (Wed, 16 Sep 2009)
New Revision: 15598
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/VirtualEarthTest.java
Log:
RFPL-143
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-16 14:40:05 UTC (rev 15597)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/main/webapp/layout/autotest/autoTestHiddens.xhtml 2009-09-16 17:04:15 UTC (rev 15598)
@@ -4,14 +4,16 @@
xmlns:rich="http://richfaces.org/rich"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
- <h:inputHidden id="_auto_input" value="#{autoTestBean.input}" required="true"></h:inputHidden>
- <h:outputText id="_auto_request_params" value="#{requestBean.paramString}" />
- <h:inputHidden id="_auto_process_input" value="#{autoTestBean.processInput}" valueChangeListener="#{autoTestBean.processInputChangeListener}"></h:inputHidden>
- <a4j:outputPanel ajaxRendered="true">
- <h:outputText id="_auto_status" value="#{autoTestBean.status}"></h:outputText>
- </a4j:outputPanel>
- <h:outputText id="_auto_time" value="#{autoTestBean.text}"></h:outputText>
- <h:outputText id="_auto_value" value="#{autoTestBean.value}"></h:outputText>
+ <div style="height: 30px; width: 1000px; overflow: hidden;">
+ <h:inputHidden id="_auto_input" value="#{autoTestBean.input}" required="true"></h:inputHidden>
+ <h:outputText id="_auto_request_params" value="#{requestBean.paramString}" />
+ <h:inputHidden id="_auto_process_input" value="#{autoTestBean.processInput}" valueChangeListener="#{autoTestBean.processInputChangeListener}"></h:inputHidden>
+ <a4j:outputPanel ajaxRendered="true">
+ <h:outputText id="_auto_status" value="#{autoTestBean.status}"></h:outputText>
+ </a4j:outputPanel>
+ <h:outputText id="_auto_time" value="#{autoTestBean.text}"></h:outputText>
+ <h:outputText id="_auto_value" value="#{autoTestBean.value}"></h:outputText>
+ </div>
<h:commandButton id="_auto_simple_submit" value="Simple submit" immediate="#{autoTestBean.immediate}" style="display: none;" />
<a4j:commandButton id="_auto_ajax_submit" value="Ajax submit" reRender="componentId" immediate="#{autoTestBean.immediate}" style="display: none;" />
</html>
\ No newline at end of file
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java 2009-09-16 14:40:05 UTC (rev 15597)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ComboBoxTest.java 2009-09-16 17:04:15 UTC (rev 15598)
@@ -231,7 +231,8 @@
* by testing "directInputSuggestions", "filterNewValues",
* "selectFirstOnUpdate" attributes.
*/
- @Test
+ //https://jira.jboss.org/jira/browse/RF-7910
+ @Test(groups=FAILURES_GROUP)
public void testSelectionFilteringAndPresentation(Template template) {
init(template);
type(comboboxField, "c");
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/VirtualEarthTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/VirtualEarthTest.java 2009-09-16 14:40:05 UTC (rev 15597)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/VirtualEarthTest.java 2009-09-16 17:04:15 UTC (rev 15598)
@@ -26,7 +26,7 @@
* component with rendered = false is not present on the page,
* style and classes, standard HTML attributes are output to client
*/
- @Test
+ @Test(groups=FAILURES_GROUP)
public void testStandardAttributes(Template template) {
AutoTester autoTester = getAutoTester(this);
autoTester.renderPage(template, null);
14 years, 7 months
JBoss Rich Faces SVN: r15597 - in branches/community/3.3.X: ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/css and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-16 10:40:05 -0400 (Wed, 16 Sep 2009)
New Revision: 15597
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelMenu.xml
branches/community/3.3.X/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/css/panelMenu.xcss
Log:
RF-7804: Rich Output component group description review --> rich:panelMenu
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelMenu.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelMenu.xml 2009-09-16 13:52:08 UTC (rev 15596)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_panelMenu.xml 2009-09-16 14:40:05 UTC (rev 15597)
@@ -1,29 +1,35 @@
<section role="NotInToc" id="rich_panelMenu">
- <title>
- <rich:panelMenu> <emphasis role="since"><superscript> available since <emphasis role="version">3.1.0</emphasis></superscript></emphasis>
+ <title> <rich:panelMenu> <emphasis role="since">
+ <superscript> available since <emphasis role="version">3.1.0</emphasis></superscript>
+ </emphasis>
</title>
<section>
<title>Description</title>
- <para>
- The <emphasis role="bold"><property><rich:panelMenu></property></emphasis> component defines vertical menu on a page.
- Used together with <link linkend="rich_panelMenuItem"><rich:panelMenuItem></link> and <link linkend="rich_panelMenuGroup"><rich:panelMenuGroup></link>,
- which form <emphasis role="bold"><property><rich:panelMenu></property></emphasis> content.
- </para>
+ <para> The <emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> component defines vertical menu on a page. Used together with <link linkend="rich_panelMenuItem"><rich:panelMenuItem></link> and <link linkend="rich_panelMenuGroup"
+ ><rich:panelMenuGroup></link>, which form <emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> content. </para>
<figure>
- <title><emphasis role="bold"><property><rich:panelMenu></property></emphasis> component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenu_init.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
+ <title><emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenu_init.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
<section>
<title>Key Features</title>
<itemizedlist>
<listitem>
- <para>Supports any number of sublevels implemented with <emphasis role="bold"><property><rich:panelMenuGroup></property></emphasis></para>
+ <para>Supports any number of sublevels implemented with <emphasis role="bold">
+ <property><rich:panelMenuGroup></property>
+ </emphasis></para>
</listitem>
<listitem>
<para>Has three submission modes: ajax, server and none</para>
@@ -39,35 +45,37 @@
</listitem>
</itemizedlist>
</section>
-
+
<section>
- <title>Details of Usage</title>
-
- <para>Use <emphasis><property>"event"</property></emphasis> attribute to define an event for appearance of collapsing/expanding sublevels.
- Default value is <code>onclick</code>:
- </para>
+ <title>Details of Usage</title>
+
+ <para>Use <emphasis>
+ <property>"event"</property>
+ </emphasis> attribute to define an event for appearance of collapsing/expanding sublevels. Default value is <code>onclick</code>: </para>
<programlisting role="XML"><![CDATA[<rich:panelMenu event="onmouseover">
...
</rich:panelMenu>]]></programlisting>
- <para>
- Switching mode could be chosen with the <emphasis><property>"mode"</property></emphasis> attribute for all panelMenu items except ones where this attribute was redefined.
- By default all items send traditional request.
- The <emphasis><property>"expandMode"</property></emphasis> attribute defines the submission modes for all collapsing/expanding panelMenu groups except ones where this attribute was redefined.
- The <emphasis><property>"mode"</property></emphasis> and <emphasis><property>"expandMode"</property></emphasis> attributes could be used with three possible parameters.
- The <emphasis><property>"mode"</property></emphasis> attribute defines parameters for all included <emphasis role="bold"><property><rich:panelMenuItem></property></emphasis> elements.
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <code>Server</code> (default)
- </para>
- </listitem>
- </itemizedlist>
-
- <para>The common submission of the form is performed and a page is completely refreshed.</para>
-
- <programlisting role="XML"><![CDATA[...
+ <para> Switching mode could be chosen with the <emphasis>
+ <property>"mode"</property>
+ </emphasis> attribute for all panelMenu items except ones where this attribute was redefined. By default all items send traditional request. The <emphasis>
+ <property>"expandMode"</property>
+ </emphasis> attribute defines the submission modes for all collapsing/expanding panelMenu groups except ones where this attribute was redefined. The <emphasis>
+ <property>"mode"</property>
+ </emphasis> and <emphasis>
+ <property>"expandMode"</property>
+ </emphasis> attributes could be used with three possible parameters. The <emphasis>
+ <property>"mode"</property>
+ </emphasis> attribute defines parameters for all included <emphasis role="bold">
+ <property><rich:panelMenuItem></property>
+ </emphasis> elements. </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>Server</code> (default) — the common submission of the form is performed and page is completely refreshed:</para>
+ </listitem>
+ </itemizedlist>
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu mode="server">
<rich:panelMenuGroup label="test Group" action="#{bean.action}">
<rich:panelMenuItem label="test" action="#{capitalsBean.action}">
@@ -76,19 +84,16 @@
</rich:panelMenuGroup>
</rich:panelMenu>
...]]></programlisting>
- <itemizedlist>
- <listitem>
- <para>
- <code>Ajax</code>
- </para>
- </listitem>
- </itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>Ajax</code> — an Ajax form submission is performed, and additionally specified elements in the <emphasis><property>"reRender"</property></emphasis> attribute are reRendered:
+ </para>
+ </listitem>
+ </itemizedlist>
- <para>An Ajax form submission is performed, and additionally specified elements in the <emphasis>
- <property>"reRender"</property>
- </emphasis> attribute are reRendered.</para>
-
- <programlisting role="XML"><![CDATA[...
+
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu mode="ajax">
<rich:panelMenuGroup label="test Group" action="#{bean.action}">
<rich:panelMenuItem label="test" reRender="test" action="#{capitalsBean.action}">
@@ -97,24 +102,15 @@
</rich:panelMenuGroup>
</rich:panelMenu>
...]]></programlisting>
- <itemizedlist>
- <listitem>
- <para>
- <code>None</code>
- </para>
- </listitem>
- </itemizedlist>
-
- <para>
- <emphasis>
- <property>"Action"</property>
- </emphasis> and <emphasis>
- <property>"ActionListener"</property>
- </emphasis> item's attributes are ignored. Items don't fire any submits itself. Behavior is
- fully defined by the components nested into items.</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>None</code> — <emphasis><property>"Action"</property></emphasis> and <emphasis><property>"ActionListener"</property></emphasis> item's attributes are ignored. Items don't fire any submits itself. Behavior is fully defined by the components nested into items:
+ </para>
+ </listitem>
+ </itemizedlist>
-
- <programlisting role="XML"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu event="onclick" submitMode="none">
<rich:panelMenuItem label="Link to external page">
<h:outputLink ... >
@@ -122,176 +118,295 @@
</rich:panelMenu>
...]]></programlisting>
- <note>
- <title>Note:</title>
- <para> As the <emphasis role="bold">
- <property><rich:panelMenu></property>
- </emphasis> component doesn't provide its own form, use it between
- <emphasis role="bold">
- <property><h:form></property>
- </emphasis> and <emphasis role="bold">
- <property></h:form></property>
- </emphasis> tags.</para>
- </note>
+ <note>
+ <title>Note:</title>
+ <para> As the <emphasis role="bold">
+ <property><rich:panelMenu></property>
+ </emphasis> component doesn't provide its own form, use it between <emphasis role="bold">
+ <property><h:form></property>
+ </emphasis> and <emphasis role="bold">
+ <property></h:form></property>
+ </emphasis> tags.</para>
+ </note>
- <para>The <emphasis>
- <property>"expandSingle"</property>
- </emphasis> attribute is defined for expanding more than one submenu on the same level. The
- default value is <emphasis>
- <property>"false"</property>
- </emphasis>. If it's true the previously opened group on the top level closes before
- opening another one. See the picture below.</para>
+ <para>The <emphasis>
+ <property>"expandSingle"</property>
+ </emphasis> attribute is defined for expanding more than one submenu on the same level. The default value is <emphasis>
+ <property>"false"</property>
+ </emphasis>. If it's true the previously opened group on the top level closes before opening another one. See the picture below.</para>
- <figure>
- <title>Using the <emphasis>
- <property>"expandSingle"</property>
- </emphasis> attribute</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/panelMenu2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
+ <figure>
+ <title>Using the <emphasis>
+ <property>"expandSingle"</property>
+ </emphasis> attribute</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/panelMenu2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
- <para>The <emphasis>
- <property>"selectedChild"</property>
- </emphasis> attribute is used for defining the name of the selected group or item. An example
- for group is placed below:</para>
+ <para>The <emphasis>
+ <property>"selectedChild"</property>
+ </emphasis> attribute is used for defining the name of the selected group or item. An example for group is placed below:</para>
- <para>Here is an example:</para>
+ <para>Here is an example:</para>
-
- <programlisting role="XML"><![CDATA[...
+
+ <programlisting role="XML"><![CDATA[...
<rich:panelMenu selectedChild="thisChild">
<rich:panelMenuGroup label="Group1" name="thisChild">
<!--Nested panelMenu components-->
</rich:panelMenuGroup>
</rich:panelMenu>
...]]></programlisting>
- <para>
- The <emphasis>
- <property>"label"</property>
- </emphasis> attribute is a generic attribute.
- The <emphasis>
- <property>"label"</property>
- </emphasis> attribute provides an association between a component, and the message that the component (indirectly) produced.
- This attribute defines the parameters of localized error and informational messages that
- occur as a result of conversion, validation, or other application actions during the request
- processing lifecycle. With the help of this attribute you can replace the
- last parameter substitution token shown in the messages. For example, {1} for <code>"DoubleRangeValidator.MAXIMUM"</code>, {2}
- for <code>"ShortConverter.SHORT"</code>.
- </para>
- </section>
- <section>
- <title>Reference Data</title>
- <para>
- <ulink url="&tlddoc;rich/panelMenu.html">Table of
- <rich:panelMenu>
- attributes</ulink>.
- </para>
- <table>
- <title>Component Identification Parameters</title>
+ <para> The <emphasis>
+ <property>"label"</property>
+ </emphasis> attribute is a generic attribute. The <emphasis>
+ <property>"label"</property>
+ </emphasis> attribute provides an association between a component, and the message that the component (indirectly) produced. This attribute defines the parameters of localized error and informational messages that occur as
+ a result of conversion, validation, or other application actions during the request processing lifecycle. With the help of this attribute you can replace the last parameter substitution token shown in the messages. For
+ example, {1} for <code>"DoubleRangeValidator.MAXIMUM"</code>, {2} for <code>"ShortConverter.SHORT"</code>. </para>
+ </section>
+ <section>
+ <title>Reference Data</title>
+ <para>
+ <ulink url="&tlddoc;rich/panelMenu.html">Table of <rich:panelMenu> attributes</ulink>. </para>
+ <table>
+ <title>Component Identification Parameters</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
+ <entry>Value</entry>
+ </row>
+ </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
- <entry>org.richfaces.PanelMenu</entry>
- </row>
+ <entry>org.richfaces.PanelMenu</entry>
+ </row>
- <row>
- <entry>component-class</entry>
+ <row>
+ <entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlPanelMenu</entry>
- </row>
+ <entry>org.richfaces.component.html.HtmlPanelMenu</entry>
+ </row>
- <row>
- <entry>component-family</entry>
+ <row>
+ <entry>component-family</entry>
- <entry>org.richfaces.PanelMenu</entry>
- </row>
+ <entry>org.richfaces.PanelMenu</entry>
+ </row>
- <row>
- <entry>renderer-type</entry>
+ <row>
+ <entry>renderer-type</entry>
- <entry>org.richfaces.PanelMenuRenderer</entry>
- </row>
+ <entry>org.richfaces.PanelMenuRenderer</entry>
+ </row>
- <row>
- <entry>tag-class</entry>
+ <row>
+ <entry>tag-class</entry>
- <entry>org.richfaces.taglib.PanelMenuTag</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table>
- <title>JavaScript API</title>
+ <entry>org.richfaces.taglib.PanelMenuTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>JavaScript API</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Function</entry>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Function</entry>
- <entry>Description</entry>
- </row>
- </thead>
+ <entry>Description</entry>
+ </row>
+ </thead>
- <tbody>
- <row>
- <entry>expand()</entry>
+ <tbody>
+ <row>
+ <entry>expand()</entry>
- <entry>Expands group element</entry>
- </row>
+ <entry>Expands group element</entry>
+ </row>
- <row>
- <entry>collapse()</entry>
+ <row>
+ <entry>collapse()</entry>
- <entry>Collapses group element</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table id="tab_cn_pM">
- <title>Classes names that define a component appearance</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Class description</entry>
- </row>
- </thead>
- <tbody>
+ <entry>Collapses group element</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table id="tab_cn_pM">
+ <title>Style classes (selectors) and mapped skin parameters</title>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>Description</entry>
+ <entry>Skin parameter</entry>
+ <entry>CSS property</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-pmenu-disabled-element</entry>
+ <entry>Defines styles for panel menu disabled element</entry>
+ <entry>tabDisabledTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry morerows="4">.rich-pmenu-group</entry>
+ <entry morerows="4">Defines styles for panel menu group</entry>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>headerFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>headerSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>headerWeightFont</entry>
+ <entry>font-weight</entry>
+ </row>
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-top-color</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-hovered-element</entry>
+ <entry>Defines styles for panel menu hevered element</entry>
+ <entry>additionalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry morerows="4">.rich-pmenu-item</entry>
+ <entry morerows="4">Defines styles for panel menu item</entry>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>genealSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalWeightFont</entry>
+ <entry>font-weight</entry>
+ </row>
+ <row>
+ <entry>tableBorderColor</entry>
+ <entry>border-top-color</entry>
+ </row>
+ <row>
+ <entry morerows="4">.rich-pmenu-top-group</entry>
+ <entry morerows="4">Defines styles for a top group element of a component</entry>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>headerSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>headerWeightFont</entry>
+ <entry>font-weight</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-top-group-div</entry>
+ <entry>Defines styles for a top group div element of a component</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <table>
+ <title>Internal style classes (selectors)</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name (selector)</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-pmenu</entry>
+ <entry>Defines styles for panel menu</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-disabled-element</entry>
+ <entry>Defines styles for panel menu disabled element</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-group</entry>
+ <entry>Defines styles for panel menu group</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-group-self-label</entry>
+ <entry>Defines styles for panel menu group label</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-item</entry>
+ <entry>Defines styles for panel menu item</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-nowrap</entry>
+ <entry>Defines styles for panel menu wrapper</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-selected-element</entry>
+ <entry>Defines styles for panel menu selected element</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-top-group</entry>
+ <entry>Defines styles for panel menu top group element</entry>
+ </row>
+ <row>
+ <entry>.rich-pmenu-top-group-div</entry>
+ <entry>Defines styles for panel menu top group div element</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>
+ You can find all necessary information about style classes redefinition in <link linkend="customstyles">Definition of Custom Style Classes</link> section.
+ </para>
- <row>
- <entry>rich-pmenu</entry>
- <entry>Defines styles for a wrapper <div> element of a component</entry>
- </row>
- <row>
- <entry>rich-pmenu-top-group</entry>
- <entry>Defines styles for a top group element of a component</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- You can find all necessary information about style classes redefinition in
- <link linkend="customstyles">Definition of Custom Style Classes</link>
- section.
- </section>
- <section>
- <title>Relevant Resources Links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/panelMenu.jsf?c=panel...">On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold">
- <property><rich:panelMenu></property>
- </emphasis> usage and sources for the given example. </para>
- </section>
-</section>
\ No newline at end of file
+ </section>
+ <section>
+ <title>Relevant Resources Links</title>
+ <para>
+ Visit <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/panelMenu.jsf?c=panel...">panelMenu page</ulink> at RichFaces LiveDemo for examples of component usage and their sources.
+ </para>
+ <para>
+ If you have any questions or ideas regarding the <emphasis role="bold"><property><rich:panel></property></emphasis> tell about them at the <ulink url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064191">RichFaces Users Forum</ulink>.
+ </para>
+ </section>
+</section>
Modified: branches/community/3.3.X/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/css/panelMenu.xcss
===================================================================
--- branches/community/3.3.X/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/css/panelMenu.xcss 2009-09-16 13:52:08 UTC (rev 15596)
+++ branches/community/3.3.X/ui/panelmenu/src/main/resources/org/richfaces/renderkit/html/css/panelMenu.xcss 2009-09-16 14:40:05 UTC (rev 15597)
@@ -4,12 +4,56 @@
xmlns:u="http://jsf.exadel.com/template/util"
xmlns="http://www.w3.org/1999/xhtml">
+ <u:selector name=".rich-pmenu-disabled-element" >
+ <u:style name="color" skin="tabDisabledTextColor"/>
+ </u:selector>
+
+ <u:selector name=".rich-pmenu-group">
+ <u:style name="font-weight" skin="headerWeightFont"/>
+ <u:style name="font-family" skin="headerFamilyFont"/>
+ <u:style name="font-size" skin="headerSizeFont"/>
+ <u:style name="color" skin="generalTextColor"/>
+ <u:style name="border-top-color" skin="tableBorderColor"/>
+ </u:selector>
+
+ <u:selector name=".rich-pmenu-hovered-element" >
+ <u:style name="background-color" skin="additionalBackgroundColor"/>
+ </u:selector>
+
+ <u:selector name=".rich-pmenu-item">
+ <u:style name="font-family" skin="generalFamilyFont"/>
+ <u:style name="font-weight" skin="generalWeightFont"/>
+ <u:style name="font-size" skin="generalSizeFont"/>
+ <u:style name="color" skin="generalTextColor"/>
+ <u:style name="border-top-color" skin="tableBorderColor"/>
+ </u:selector>
+
+ <u:selector name=".rich-pmenu-top-group">
+ <u:style name="font-weight" skin="headerWeightFont"/>
+ <u:style name="font-family" skin="generalFamilyFont"/>
+ <u:style name="font-size" skin="headerSizeFont"/>
+ <u:style name="color" skin="headerTextColor"/>
+ <u:style name="background-color" skin="headerBackgroundColor"/>
+ <u:style name="background-image" >
+ <f:resource f:key="org.richfaces.renderkit.html.gradientimages.PanelMenuGroupGradient" />
+ </u:style>
+ </u:selector>
+
+ <u:selector name=".rich-pmenu-top-group-div" >
+ <u:style name="border-color" skin="panelBorderColor"/>
+ </u:selector>
+
+
<f:verbatim>
.rich-pmenu {
overflow: hidden;
padding-right: 4px;
}
+ .rich-pmenu-disabled-element {
+ cursor: default;
+ }
+
.rich-pmenu-group {
padding: 2px 1px 1px;
margin-top:1px;
@@ -17,14 +61,9 @@
border-top: 1px solid;
}
- .rich-pmenu-top-group {
- height: 20px;
- border-top: none;
- margin-top: 0;
- background-repeat: repeat-x;
- background-position: left top;
- padding: 2px 1px 2px 2px;
- cursor: pointer;
+ .rich-pmenu-group-self-label {
+ padding-left: 5px;
+ width: 100%;
}
.rich-pmenu-item {
@@ -32,9 +71,27 @@
cursor: pointer;
padding: 2px 1px 1px;
margin-top: 1px;
-
}
+ .rich-pmenu-nowrap {
+ white-space: nowrap;
+ }
+
+ .rich-pmenu-selected-element {
+ font-style : italic;
+ }
+
+
+ .rich-pmenu-top-group {
+ height: 20px;
+ border-top: none;
+ margin-top: 0;
+ background-repeat: repeat-x;
+ background-position: left top;
+ padding: 2px 1px 2px 2px;
+ cursor: pointer;
+ }
+
.rich-pmenu-top-group-div {
border: 1px solid;
margin-bottom: 3px;
@@ -42,64 +99,6 @@
overflow: hidden;
width: 100%;
}
-
- .rich-pmenu-group-self-label {
- padding-left: 5px;
- width: 100%;
- }
-
- .rich-pmenu-nowrap {
- white-space: nowrap;
- }
-
</f:verbatim>
- <u:selector name=".rich-pmenu-group">
- <u:style name="font-weight" skin="headerWeightFont"/>
- <u:style name="font-family" skin="headerFamilyFont"/>
- <u:style name="font-size" skin="headerSizeFont"/>
- <u:style name="color" skin="generalTextColor"/>
- <u:style name="border-top-color" skin="tableBorderColor"/>
- </u:selector>
-
- <u:selector name=".rich-pmenu-top-group">
- <u:style name="font-weight" skin="headerWeightFont"/>
- <u:style name="font-family" skin="generalFamilyFont"/>
- <u:style name="font-size" skin="headerSizeFont"/>
- <u:style name="color" skin="headerTextColor"/>
- <u:style name="background-color" skin="headerBackgroundColor"/>
- <u:style name="background-image" >
- <f:resource f:key="org.richfaces.renderkit.html.gradientimages.PanelMenuGroupGradient" />
- </u:style>
- </u:selector>
-
- <u:selector name=".rich-pmenu-item">
- <u:style name="font-family" skin="generalFamilyFont"/>
- <u:style name="font-weight" skin="generalWeightFont"/>
- <u:style name="font-size" skin="generalSizeFont"/>
- <u:style name="color" skin="generalTextColor"/>
- <u:style name="border-top-color" skin="tableBorderColor"/>
- </u:selector>
-
- <u:selector name=".rich-pmenu-top-group-div" >
- <u:style name="border-color" skin="panelBorderColor"/>
- </u:selector>
-
- <u:selector name=".rich-pmenu-disabled-element" >
- <u:style name="color" skin="tabDisabledTextColor"/>
- </u:selector>
-
- <u:selector name=".rich-pmenu-hovered-element" >
- <u:style name="background-color" skin="additionalBackgroundColor"/>
- </u:selector>
-
- <f:verbatim>
- .rich-pmenu-disabled-element {
- cursor: default;
- }
- .rich-pmenu-selected-element {
- font-style : italic;
- }
- </f:verbatim>
-
</f:template>
\ No newline at end of file
14 years, 7 months
JBoss Rich Faces SVN: r15596 - branches/community/3.3.X/docs/cdkguide/en/src/main/docbook/tags.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2009-09-16 09:52:08 -0400 (Wed, 16 Sep 2009)
New Revision: 15596
Modified:
branches/community/3.3.X/docs/cdkguide/en/src/main/docbook/tags/cif.xml
Log:
https://jira.jboss.org/jira/browse/RF-4643 Automatic spellchecking - spelling is checked in cdk guide
Modified: branches/community/3.3.X/docs/cdkguide/en/src/main/docbook/tags/cif.xml
===================================================================
--- branches/community/3.3.X/docs/cdkguide/en/src/main/docbook/tags/cif.xml 2009-09-16 12:56:25 UTC (rev 15595)
+++ branches/community/3.3.X/docs/cdkguide/en/src/main/docbook/tags/cif.xml 2009-09-16 13:52:08 UTC (rev 15596)
@@ -8,7 +8,7 @@
</sectioninfo>
<title><c:if /></title>
<para>
- The <emphasis role="bold"><property><c:if /></property></emphasis> tag is a simple conditional tag, which evalutes its body if the supplied condition is true.
+ The <emphasis role="bold"><property><c:if /></property></emphasis> tag is a simple conditional tag, which evaluates its body if the supplied condition is true.
</para>
<table>
<title>The <c:if /> attributes</title>
14 years, 7 months
JBoss Rich Faces SVN: r15595 - branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2009-09-16 08:56:25 -0400 (Wed, 16 Sep 2009)
New Revision: 15595
Modified:
branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java
Log:
- disabled whole a4j:status testing, needs to be teste manually (JBQA-2606)
Modified: branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java
===================================================================
--- branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java 2009-09-16 12:31:25 UTC (rev 15594)
+++ branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/status/StatusTestCase.java 2009-09-16 12:56:25 UTC (rev 15595)
@@ -59,7 +59,9 @@
* This version using text like a status message for user.
* </p>
*/
- @Test
+ // TODO investigate JavaScript injecting to fix this, see
+ // https://jira.jboss.org/jira/browse/JBQA-2606
+ // @Test
public void testTextStatus() {
doStatusTesting(1);
}
@@ -73,7 +75,9 @@
* This version using image like a status message for user.
* </p>
*/
- @Test
+ // TODO investigate JavaScript injecting to fix this, see
+ // https://jira.jboss.org/jira/browse/JBQA-2606
+ // @Test
public void testImageStatus() {
doStatusTesting(2);
}
14 years, 7 months
JBoss Rich Faces SVN: r15594 - branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2009-09-16 08:31:25 -0400 (Wed, 16 Sep 2009)
New Revision: 15594
Modified:
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java
branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java
Log:
RFPL-143
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java 2009-09-16 11:08:48 UTC (rev 15593)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DropDownMenuTest.java 2009-09-16 12:31:25 UTC (rev 15594)
@@ -57,7 +57,8 @@
}
- @Test
+ //https://jira.jboss.org/jira/browse/RF-7908
+ @Test(groups=FAILURES_GROUP)
public void testClassStylesAndHtmlAttributes(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
Modified: branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java
===================================================================
--- branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java 2009-09-16 11:08:48 UTC (rev 15593)
+++ branches/community/3.3.X/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/InplaceSelectTest.java 2009-09-16 12:31:25 UTC (rev 15594)
@@ -76,7 +76,7 @@
selenium.mouseDown(cancelButton);
writeStatus("Cancel selected value.");
- AssertValueEquals(inplaceSelectId + "inplaceValue", "Birch", "A value has not to be changed");
+ AssertValueEquals(inplaceSelectId + "value", "Birch", "A value has not to be changed");
writeStatus("Verify javascript event triggering");
14 years, 7 months
JBoss Rich Faces SVN: r15593 - branches/community/3.3.X/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-09-16 07:08:48 -0400 (Wed, 16 Sep 2009)
New Revision: 15593
Removed:
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSlider_cn.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSlider_oc.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSlider_pc.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSpinner_cn.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSpinner_oc.png
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSpinner_pc.png
Log:
https://jira.jboss.org/jira/browse/RF-7803 - DELETING UNNECESSARY IMAGES;
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSlider_cn.png
===================================================================
(Binary files differ)
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSlider_oc.png
===================================================================
(Binary files differ)
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSlider_pc.png
===================================================================
(Binary files differ)
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSpinner_cn.png
===================================================================
(Binary files differ)
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSpinner_oc.png
===================================================================
(Binary files differ)
Deleted: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/inputNumberSpinner_pc.png
===================================================================
(Binary files differ)
14 years, 7 months