JBoss Rich Faces SVN: r15469 - branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-09-04 13:16:19 -0400 (Fri, 04 Sep 2009)
New Revision: 15469
Modified:
branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
Log:
ComboBox: pop up can not be closed if it was opened during combobox rerender.
https://jira.jboss.org/jira/browse/RF-7258
comboBox: onselect event doesn't work
https://jira.jboss.org/jira/browse/RF-7701
Modified: branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js
===================================================================
--- branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2009-09-04 16:02:14 UTC (rev 15468)
+++ branches/community/3.3.X/ui/combobox/src/main/resources/org/richfaces/renderkit/html/scripts/combobox.js 2009-09-04 17:16:19 UTC (rev 15469)
@@ -86,12 +86,17 @@
this.field = null;
this.classes = null;
+ this.comboList.hide()
delete this.comboList;
this.combobox.component = null;
this.combobox = null;
},
initHandlers : function() {
+ if (this.onselect) {
+ Event.observe(this.combobox, "rich:onselect", this.onselect.bindAsEventListener(this));
+ }
+
Event.observe(this.button, "click", this.buttonClickHandler.bindAsEventListener(this));
Event.observe(this.button, "mouseup", this.buttonMouseUpHandler.bindAsEventListener(this));
Event.observe(this.button, "mousedown", this.buttonMousedownHandler.bindAsEventListener(this));
@@ -401,9 +406,9 @@
// this.field.prevValue = value;
// this.field.value = value;
// this.comboValue.value = value;
- this.comboValue.value = value;
- this.comboList.doSelectItem(this.comboList.activeItem);
- this.combobox.fire("rich:onselect", {});
+ this.comboValue.value = value;
+ this.comboList.doSelectItem(this.comboList.activeItem);
+ this.combobox.fire("rich:onselect", {});
}
// else if (this.directInputSuggestions) {
// var startInd = this.field.value.length;
13 years, 9 months
JBoss Rich Faces SVN: r15468 - branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-09-04 12:02:14 -0400 (Fri, 04 Sep 2009)
New Revision: 15468
Modified:
branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/master.xml
Log:
https://jira.jboss.org/jira/browse/RF-5768
updated
Modified: branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/master.xml
===================================================================
--- branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/master.xml 2009-09-04 15:56:21 UTC (rev 15467)
+++ branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/master.xml 2009-09-04 16:02:14 UTC (rev 15468)
@@ -46,7 +46,7 @@
</imageobject>
</inlinemediaobject>
</corpauthor>
- <subtitle>This documentation is work in progress, thus some mistakes or incompleteness is possible</subtitle>
+
<author>
<firstname>Alex</firstname>
<surname>Tsebro</surname>
13 years, 9 months
JBoss Rich Faces SVN: r15467 - branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-09-04 11:56:21 -0400 (Fri, 04 Sep 2009)
New Revision: 15467
Modified:
branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/validators.xml
Log:
https://jira.jboss.org/jira/browse/RF-5768
updated
Modified: branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/validators.xml
===================================================================
--- branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/validators.xml 2009-09-04 15:08:24 UTC (rev 15466)
+++ branches/community/3.3.X/docs/photo_album_app_guide/en/src/main/docbook/includes/validators.xml 2009-09-04 15:56:21 UTC (rev 15467)
@@ -55,7 +55,7 @@
<para>
<emphasis role="bold"><property><rich:graphValidator></property></emphasis> validates the entity User object, in which restrictions are set with the help of Hibernate annotations.
- When the <emphasis role="bold" >Register</emphasis> button is clicked on the <property>name, password, sex</property> etc. fields are validated sequentially. In case of an error (for example, if a <property>loginName</property> contains only on character and the annotation restricts it to at least 3 characters to be typed in) a error message in red color is displayed next to the input field and the request is aborted. If all values are valid the <code>authenticator.register(user)</code> method will be invoked and the user will be saved to the database.
+ When the <emphasis role="bold" >Register</emphasis> button is clicked on the <property>name, password, sex</property> etc. fields are validated sequentially. In case of an error (for example, if a <property>loginName</property> contains only one character and the annotation restricts it to at least 3 characters to be typed in) a error message in red color is displayed next to the input field and the request is aborted. If all values are valid the <code>authenticator.register(user)</code> method will be invoked and the user will be saved to the database.
</para>
<para>
13 years, 9 months
JBoss Rich Faces SVN: r15466 - branches/community/3.3.X/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-09-04 11:08:24 -0400 (Fri, 04 Sep 2009)
New Revision: 15466
Modified:
branches/community/3.3.X/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
Log:
comboBox: script error is appeared in ie7 and ie8 if buttonIcon (buttonIconInactive, buttonIconDisabled) attribute is defined
https://jira.jboss.org/jira/browse/RF-7699
Modified: branches/community/3.3.X/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js
===================================================================
--- branches/community/3.3.X/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2009-09-04 14:38:28 UTC (rev 15465)
+++ branches/community/3.3.X/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/utils.js 2009-09-04 15:08:24 UTC (rev 15466)
@@ -8,7 +8,11 @@
if (typeof userStyles[i] == "object") {
this.mergeStyles(userStyles[i],commonStyles[i]);
} else {
- commonStyles[i] += " " + userStyles[i];
+ if (commonStyles[i]) {
+ commonStyles[i] += " " + userStyles[i];
+ } else {
+ commonStyles[i] = userStyles[i];
+ }
}
}
return commonStyles;
13 years, 9 months
JBoss Rich Faces SVN: r15465 - in branches/community/3.3.X/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-04 10:38:28 -0400 (Fri, 04 Sep 2009)
New Revision: 15465
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml
branches/community/3.3.X/docs/userguide/en/src/main/resources/images/messages_init.png
Log:
RF-7756: Rich Miscellaneous component group description review --> rich:messages
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml 2009-09-04 14:21:44 UTC (rev 15464)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml 2009-09-04 14:38:28 UTC (rev 15465)
@@ -117,6 +117,7 @@
</tbody>
</tgroup>
</table>
+
<table>
<title>Facets</title>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml 2009-09-04 14:21:44 UTC (rev 15464)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml 2009-09-04 14:38:28 UTC (rev 15465)
@@ -119,6 +119,7 @@
</tgroup>
</table>
+ <table>
<title>Facets</title>
<tgroup cols="2">
<thead>
@@ -150,7 +151,7 @@
</row>
</tbody>
</tgroup>
- </table>
+ </table>
<table id="tab_msC">
<title>Classes names that define a component appearance</title>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/resources/images/messages_init.png
===================================================================
(Binary files differ)
13 years, 9 months
JBoss Rich Faces SVN: r15464 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: ochikvina
Date: 2009-09-04 10:21:44 -0400 (Fri, 04 Sep 2009)
New Revision: 15464
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_colorPicker.xml
Log:
https://jira.jboss.org/jira/browse/RF-7803 - the style classes table is restructured;
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_colorPicker.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_colorPicker.xml 2009-09-04 14:18:15 UTC (rev 15463)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_colorPicker.xml 2009-09-04 14:21:44 UTC (rev 15464)
@@ -219,90 +219,253 @@
</tbody>
</tgroup>
</table>
- <table id="colorPicker_cn_inline">
- <title> Classes names for the representation of the input field and icon containing selected
- color </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Selector name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>.rich-colorpicker-span input</entry>
- <entry>Defines styles for the input field that contains selected color</entry>
- </row>
- <row>
- <entry>.rich-colorpicker-icon</entry>
- <entry>Defines styles for the icon</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table id="colorPicker_cn_widget">
- <title>Classes names for the widget</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>.rich-colorpicker-ext</entry>
- <entry>Defines styles for the wrapper <div> element of a widget</entry>
- </row>
- <row>
- <entry>.rich-colorpicker-color</entry>
- <entry>Defines styles for the color palette</entry>
- </row>
- <row>
- <entry>.rich-colorpicker-current-color</entry>
- <entry>Defines styles for the currently selected color</entry>
- </row>
- <row>
- <entry>.rich-colorpicker-new-color</entry>
- <entry>Defines styles for the already selected color</entry>
- </row>
- <row>
- <entry>.rich-colorpicker-colors-input</entry>
- <entry>Defines styles for the hex, RGB, and HSB input fileds</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <table id="colorPicker_cn_buttons">
- <title>Classes names for the buttons representation</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Class name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>.rich-color-picker-submit</entry>
- <entry>Defines styles for the "Apply" button</entry>
- </row>
- <row>
- <entry>.rich-color-picker-cancel</entry>
- <entry>Defines styles for the "Cancel" button</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 Parameter</entry>
+ <entry>CSS properties mapped</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry morerows="2">.rich-colorpicker-ext</entry>
+ <entry morerows="2">Defines styles for the component widget</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>generalBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+
+ <row>
+ <entry morerows="2">.rich-color-picker-span input</entry>
+ <entry morerows="2">Defines styles for the input field that contains selected color</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+
+ <row>
+ <entry morerows="1">.rich-color-picker-ext input</entry>
+ <entry morerows="1">Defines styles for the input field within the component widget</entry>
+ <entry>controlTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>controlBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="2">.rich-color-picker-ext label</entry>
+ <entry morerows="2">Defines styles for the label within the component widget</entry>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+
+ <row>
+ <entry>.rich-color-picker-icon</entry>
+ <entry>Defines styles for the component icon</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry>.rich-color-picker-color</entry>
+ <entry>Defines styles for the color palette</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry>.rich-color-picker-new-color</entry>
+ <entry>Defines styles for the already selected color</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry>.rich-color-picker-current-color</entry>
+ <entry>Defines styles for the currently selected color</entry>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="4">.rich-color-picker-cancel</entry>
+ <entry morerows="4">Defines styles for the "Cancel" button</entry>
+ <entry>buttonFontSize</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>buttonFamilyFont, generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor, panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="4">.rich-color-picker-submit</entry>
+ <entry morerows="4">Defines styles for the "Apply" button</entry>
+ <entry>buttonFontSize, panelBorderColor</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>buttonFamilyFont, generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>headerTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor, panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>headerBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+
+ <row>
+ <entry morerows="4">.rich-color-picker-colors-input</entry>
+ <entry morerows="4">Defines styles for the hex, RGB, and HSB input fileds</entry>
+ <entry>generalSizeFont</entry>
+ <entry>font-size</entry>
+ </row>
+ <row>
+ <entry>generalFamilyFont</entry>
+ <entry>font-family</entry>
+ </row>
+ <row>
+ <entry>generalTextColor</entry>
+ <entry>color</entry>
+ </row>
+ <row>
+ <entry>panelBorderColor</entry>
+ <entry>border-color</entry>
+ </row>
+ <row>
+ <entry>controlBackgroundColor</entry>
+ <entry>background-color</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ <table>
+ <title>Style classes (selectors) without skin parameters</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Selector name</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>.rich-color-picker-span</entry>
+ <entry>Defines styles for the wrapper <span> element of the component</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-wrapper</entry>
+ <entry>Defines styles for the wrapper <div> element of a widget</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-color div div</entry>
+ <entry>Defines styles for the color picker icon within the color palette</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-rainbow</entry>
+ <entry>Defines styles for the widget rainbow</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-rainbow div</entry>
+ <entry>Defines styles for the slider of the widget rainbow</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-hex-wrapper</entry>
+ <entry>Defines styles for the wrapper of the region for selecting a color in the hex model</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-rgb-wrapper</entry>
+ <entry>Defines styles for the wrapper of the region for selecting a color in the RGB model</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-rgb-r</entry>
+ <entry>Defines styles for the region for setting red color intensity in the RGB model</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-rgb-g</entry>
+ <entry>Defines styles for the region for setting green color intensity in the RGB model</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-rgb-b</entry>
+ <entry>Defines styles for the region for setting blue color intensity in the RGB model</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-hsb-wrapper</entry>
+ <entry>Defines styles for the wrapper of the region for selecting a color in the HSB color scheme</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-hsb-h</entry>
+ <entry>Defines styles for the region for setting the H value in the HSB color scheme</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-hsb-s</entry>
+ <entry>Defines styles for the region for setting the S value in the HSB color scheme</entry>
+ </row>
+ <row>
+ <entry>.rich-color-picker-hsb-b</entry>
+ <entry>Defines styles for the region for setting the B value in the HSB color scheme</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>
<para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/colorPicker.jsf?c=col...">On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold">
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/colorPicker.jsf?c=col...">On the component LiveDemo page</ulink> you can see the example of the <emphasis role="bold">
<property><rich:colorPicker></property>
</emphasis> component usage and sources for the given example. </para>
</section>
13 years, 9 months
JBoss Rich Faces SVN: r15463 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2009-09-04 10:18:15 -0400 (Fri, 04 Sep 2009)
New Revision: 15463
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml
Log:
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml 2009-09-04 13:36:44 UTC (rev 15462)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_message.xml 2009-09-04 14:18:15 UTC (rev 15463)
@@ -47,14 +47,17 @@
Besides some extra features:
<itemizedlist>
<listitem>
- <para>auto rerendering after Ajax request without help of <emphasis role="bold"><property><h:outputPanel></property></emphasis>;</para>
+ <para>auto rerendering after Ajax request without help of <emphasis role="bold"><property><a4j:outputPanel></property></emphasis>;</para>
</listitem>
<listitem>
<para>providing <code>passed</code> message after validation has been passed (optional);</para>
</listitem>
<listitem>
- <para>possibility to add marker to a message.</para>
+ <para>possibility to add marker to a message;</para>
</listitem>
+ <listitem>
+ <para>set of predefined CSS classes for customizing messages appearance.</para>
+ </listitem>
</itemizedlist>
</para>
<para>
@@ -127,23 +130,23 @@
<tbody>
<row>
<entry>errorMarker</entry>
- <entry>Defines pictogram for message with <property>error</property> severity class</entry>
+ <entry>Defines pictogram for message with <emphasis>error</emphasis> severity class</entry>
</row>
<row>
<entry>fatalMarker</entry>
- <entry>Defines pictogram for message with <property>fatal</property> severity class</entry>
+ <entry>Defines pictogram for message with <emphasis>fatal</emphasis> severity class</entry>
</row>
<row>
<entry>infoMarker</entry>
- <entry>Defines pictogram for message with <property>info</property> severity class</entry>
+ <entry>Defines pictogram for message with <emphasis>info</emphasis> severity class</entry>
</row>
<row>
<entry>passedMarker</entry>
- <entry>Defines pictogram if there is no <property>fatal</property>, <property>error</property>, <property>warn</property> or <property>info</property> message</entry>
+ <entry>Defines pictogram if there is no <emphasis>fatal</emphasis>, <emphasis>error</emphasis>, <emphasis>warn</emphasis> or <emphasis>info</emphasis> message</entry>
</row>
<row>
<entry>warnMarker</entry>
- <entry>Defines pictogram for message with <property>warn</property> severity class</entry>
+ <entry>Defines pictogram for message with <emphasis>warn</emphasis> severity class</entry>
</row>
</tbody>
</tgroup>
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml 2009-09-04 13:36:44 UTC (rev 15462)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_messages.xml 2009-09-04 14:18:15 UTC (rev 15463)
@@ -1,116 +1,70 @@
<section role="NotInToc" id="rich_messages">
<title>
- <
- rich:messages
- >
- <emphasis role="since">
- <superscript> available since <emphasis role="version">3.1.0</emphasis>
- </superscript>
- </emphasis>
+ <rich:messages> <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:messages></property></emphasis> component is similar to <emphasis role="bold"><property><rich:message></property></emphasis> component but used for rendering all messages for the components.
+ </para>
+ <figure>
+ <title><emphasis role="bold"><property><rich:messages></property></emphasis> component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/messages_init.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>
+ <para>Consists of three parts to be defined optionally: marker (pictogram), label (text message) and header</para>
+ </listitem>
+ <listitem>
+ <para>Provides set of facets for marker customization</para>
+ </listitem>
+ <listitem>
+ <para>Supports tooltip to display extra portion of message</para>
+ </listitem>
+ <listitem>
+ <para>Tracks both traditional and Ajax requests</para>
+ </listitem>
+ <listitem>
+ <para>Customizable look and feel </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
<section>
- <title>Description</title>
- <para>The <emphasis role="bold">
- <property><rich:messages></property>
- </emphasis> component is similar to <emphasis role="bold">
- <property><rich:message></property>
- </emphasis> component but used for rendering all messages for the components.</para>
- <figure>
- <title>
- <emphasis role="bold">
- <property><rich:messages></property>
- </emphasis> component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/messages_init.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section>
- <title>Key Features</title>
- <itemizedlist>
- <listitem>
- <para>Highly customizable look and feel</para>
- </listitem>
- <listitem>
- <para>Track both traditional and Ajax based requests</para>
- </listitem>
- <listitem>
- <para>Optional ToolTip to display a detailed part of the messages</para>
- </listitem>
- <listitem>
- <para>Additionally customizable via attributes and facets</para>
- </listitem>
- <listitem>
- <para>Additionally provides of three parts to be optionally defined: marker, label and header</para>
- </listitem>
- </itemizedlist>
- </section>
- <section>
<title>Details of Usage</title>
- <para>The <emphasis role="bold">
- <property><rich:messages></property>
- </emphasis> component is considered as JSF HTML <emphasis role="bold">
- <property><h:messages></property>
- </emphasis>,
- extended with following features:
- <itemizedlist>
- <listitem>
- <para>Ajax support (the component does not require to be wrapped in <emphasis role="bold">
- <property><a4j:outputPanel></property>
- </emphasis> in order to be rendered during Ajax requests);</para>
- </listitem>
- <listitem>
- <para>possibilty to add graphical markers (pictograms) to reinforce a message for both "passed" or "failed" states;</para>
- </listitem>
- <listitem>
- <para>set of predefined CSS classes for customizing messages appearance.</para>
- </listitem>
- </itemizedlist>
- </para>
- <para>There are two optional parts that could be defined for every message: marker and text label. The set of facets, which can be used for a marker definition, is shown below:</para>
-
- <table>
- <title>Facets</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Facet</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>errorMarker</entry>
- <entry>Defines marker for "Error" message severity class</entry>
- </row>
- <row>
- <entry>fatalMarker</entry>
- <entry>Defines marker for "Fatal" message severity class</entry>
- </row>
- <row>
- <entry>infoMarker</entry>
- <entry>Defines marker for "Info" message severity class</entry>
- </row>
- <row>
- <entry>warnMarker</entry>
- <entry>Defines marker for "Warn" message severity class</entry>
- </row>
- <!--row>
- <entry>passedMarker</entry>
- <entry>Defines marker if there is no message</entry>
- </row-->
- </tbody>
- </tgroup>
- </table>
+
+ <para>
+ The component has the same behavior as standard <emphasis role="bold"><property><h:message></property></emphasis> component.
+ Besides some extra features:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>auto rerendering after Ajax request without help of <emphasis role="bold"><property><a4j:outputPanel></property></emphasis>;</para>
+ </listitem>
+ <listitem>
+ <para>providing <code>passed</code> message after validation has been passed (optional);</para>
+ </listitem>
+ <listitem>
+ <para>possibility to add marker to a message;</para>
+ </listitem>
+ <listitem>
+ <para>set of predefined CSS classes for customizing messages appearance.</para>
+ </listitem>
+ </itemizedlist>
+
+
<para>The following example shows different variants of customization of the component.</para>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
- <programlisting role="XML"><rich:messages layout="table" tooltip="true" showDetail="false" showSummary="true">
+ <programlisting role="XML"><rich:messages layout="table" tooltip="true" showDetail="false" showSummary="true">
<f:facet name="errorMarker">
<h:graphicImage url="/image/error.png"/>
</f:facet>
@@ -143,60 +97,61 @@
<tbody>
<row>
<entry>component-type</entry>
- <entry>org.richfaces.component.RichMessages</entry>
+ <entry>org.richfaces.component.RichMessages</entry>
</row>
<row>
<entry>component-class</entry>
- <entry>org.richfaces.component.html.HtmlRichMessages</entry>
+ <entry>org.richfaces.component.html.HtmlRichMessages</entry>
</row>
<row>
<entry>component-family</entry>
- <entry>org.richfaces.component.RichMessages</entry>
+ <entry>org.richfaces.component.RichMessages</entry>
</row>
<row>
<entry>renderer-type</entry>
- <entry>org.richfaces.renderkit.html.HtmlRichMessagesRendere</entry>
+ <entry>org.richfaces.RichMessagesRenderer</entry>
</row>
<row>
<entry>tag-class</entry>
- <entry>org.richfaces.taglib.RichMessagesTag</entry>
+ <entry>org.richfaces.taglib.RichMessagesTag</entry>
</row>
</tbody>
</tgroup>
</table>
- <table>
- <title>Facets</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Facet</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>errorMarker</entry>
- <entry>Defines marker for "Error" message severity class</entry>
- </row>
- <row>
- <entry>fatalMarker</entry>
- <entry>Defines marker for "Fatal" message severity class</entry>
- </row>
- <row>
- <entry>infoMarker</entry>
- <entry>Defines marker for "Info" message severity class</entry>
- </row>
- <row>
- <entry>warnMarker</entry>
- <entry>Defines marker for "Warn" message severity class</entry>
- </row>
- <!--row>
- <entry>passedMarker</entry>
- <entry>Defines marker if there is no message</entry>
- </row-->
- </tbody>
- </tgroup>
- </table>
+
+ <title>Facets</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Facet</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>errorMarker</entry>
+ <entry>Defines pictogram for message with <emphasis>error</emphasis> severity class</entry>
+ </row>
+ <row>
+ <entry>fatalMarker</entry>
+ <entry>Defines pictogram for message with <emphasis>fatal</emphasis> severity class</entry>
+ </row>
+ <row>
+ <entry>infoMarker</entry>
+ <entry>Defines pictogram for message with <emphasis>info</emphasis> severity class</entry>
+ </row>
+ <row>
+ <entry>passedMarker</entry>
+ <entry>Defines pictogram if there is no <emphasis>fatal</emphasis>, <emphasis>error</emphasis>, <emphasis>warn</emphasis> or <emphasis>info</emphasis> message</entry>
+ </row>
+ <row>
+ <entry>warnMarker</entry>
+ <entry>Defines pictogram for message with <emphasis>warn</emphasis> severity class</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
<table id="tab_msC">
<title>Classes names that define a component appearance</title>
@@ -240,9 +195,9 @@
</section>
<section>
<title>Relevant Resources Links</title>
- <para>
- <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/messages.jsf?c=messag...">On the component LiveDemo page</ulink> you can see the example of <emphasis role="bold">
- <property><rich:messages></property>
- </emphasis> usage and sources for the given example. </para>
+ <para>
+ Visit the <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/messages.jsf?c=messag...">Messages page</ulink> at RichFaces LiveDemo for examples of component usage and their sources.
+ </para>
+
</section>
</section>
\ No newline at end of file
13 years, 9 months
JBoss Rich Faces SVN: r15462 - in root/examples/trunk/richfaces-demo/src/main: java/org/richfaces/demo/carsstore and 6 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2009-09-04 09:36:44 -0400 (Fri, 04 Sep 2009)
New Revision: 15462
Added:
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/CarsBean.java
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/InventoryItem.java
root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/common/SelectsBean.java
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable/
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable/dataTableEdit.xhtml
Modified:
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml
root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml
Log:
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/CarsBean.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/CarsBean.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/CarsBean.java 2009-09-04 13:36:44 UTC (rev 15462)
@@ -0,0 +1,187 @@
+/**
+ *
+ */
+package org.richfaces.demo.carsstore;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Random;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import javax.faces.model.SelectItem;
+@ManagedBean(name="carsBean")
+@SessionScoped
+public class CarsBean {
+
+ private static final String [] CHEVROLETES = {"Corvette", "Malibu", "Tahoe"};
+ private static final String [] FORDS = {"Taurus", "Explorer"};
+ private static final String [] NISSANS = {"Maxima", "Frontier"};
+ private static final String [] TOYOTA = {"4-Runner", "Camry", "Avalon"};
+ private static final String [] GMCS = {"Sierra", "Yukon"};
+ private static final String [] INFINITIES = {"G35", "EX35"};
+
+ private static int DECIMALS = 1;
+ private static int ROUNDING_MODE = BigDecimal.ROUND_HALF_UP;
+
+ private List<InventoryItem> allCars = null;
+
+ private List<SelectItem> chevies = new ArrayList<SelectItem>();
+ private List<SelectItem> fords = new ArrayList<SelectItem>();
+ private List<SelectItem> nissans = new ArrayList<SelectItem>();
+ private List<SelectItem> toyotas = new ArrayList<SelectItem>();
+ private List<SelectItem> gmcs = new ArrayList<SelectItem>();
+ private List<SelectItem> infinities = new ArrayList<SelectItem>();
+
+ public CarsBean() {
+ chevies.add(new SelectItem("Corvette"));
+ chevies.add(new SelectItem("Malibu"));
+ chevies.add(new SelectItem("Tahoe"));
+
+ fords.add(new SelectItem("Taurus"));
+ fords.add(new SelectItem("Explorer"));
+
+ nissans.add(new SelectItem("Maxima"));
+ nissans.add(new SelectItem("Frontier"));
+
+ toyotas.add(new SelectItem("4-Runner"));
+ toyotas.add(new SelectItem("Camry"));
+ toyotas.add(new SelectItem("Avalon"));
+
+ gmcs.add(new SelectItem("Sierra"));
+ gmcs.add(new SelectItem("Yukon"));
+
+ infinities.add(new SelectItem("G35"));
+ infinities.add(new SelectItem("EX35"));
+ }
+
+ public List<InventoryItem> getAllCars() {
+ synchronized (this) {
+ if (allCars == null) {
+ allCars = new ArrayList<InventoryItem>();
+ for (int k = 0; k <= 5; k++) {
+ try {
+ switch (k) {
+ case 0:
+ allCars.addAll(createCar("Chevrolet", "Corvette",5));
+ allCars.addAll(createCar("Chevrolet", "Malibu", 8));
+ allCars.addAll(createCar("Chevrolet", "Tahoe", 6));
+ break;
+ case 1:
+ allCars.addAll(createCar("Ford", "Taurus", 12));
+ allCars.addAll(createCar("Ford", "Explorer", 11));
+ break;
+ case 2:
+ allCars.addAll(createCar("Nissan", "Maxima", 9));
+ allCars.addAll(createCar("Nissan", "Frontier", 6));
+ break;
+ case 3:
+ allCars.addAll(createCar("Toyota", "4-Runner", 7));
+ allCars.addAll(createCar("Toyota", "Camry", 15));
+ allCars.addAll(createCar("Toyota", "Avalon", 13));
+ break;
+ case 4:
+ allCars.addAll(createCar("GMC", "Sierra", 8));
+ allCars.addAll(createCar("GMC", "Yukon", 10));
+ break;
+ case 5:
+ allCars.addAll(createCar("Infiniti", "G35", 6));
+ allCars.addAll(createCar("Infiniti", "EX35", 5));
+ break;
+ default:
+ break;
+ }
+ } catch (Exception e) {
+ System.out.println("!!!!!!loadAllCars Error: "
+ + e.getMessage());
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+ return allCars;
+ }
+
+ public List<InventoryItem> getTenRandomCars() {
+ List<InventoryItem> result = new ArrayList<InventoryItem>();
+ int size = getAllCars().size() - 1;
+ for (int i = 0; i < 10; i++) {
+ result.add(getAllCars().get(rand(1, size)));
+ }
+ return result;
+ }
+
+ public int genRand() {
+ return rand(1, 10000);
+ }
+
+ public List<InventoryItem> createCar(String make, String model,
+ int count) {
+
+ ArrayList<InventoryItem> iiList = null;
+
+ try {
+ int arrayCount = count;
+
+ InventoryItem[] demoInventoryItemArrays = new InventoryItem[arrayCount];
+
+ for (int j = 0; j < demoInventoryItemArrays.length; j++) {
+ InventoryItem ii = new InventoryItem();
+
+ ii.setMake(make);
+ ii.setModel(model);
+ ii.setStock(randomstring(6, 7));
+ ii.setVin(randomstring(14, 15));
+ ii.setMileage(new BigDecimal(rand(5000, 80000)).setScale(
+ DECIMALS, ROUNDING_MODE));
+ ii.setMileageMarket(new BigDecimal(rand(25000, 45000))
+ .setScale(DECIMALS, ROUNDING_MODE));
+ ii.setPrice(new Integer(rand(15000, 55000)));
+ ii.setPriceMarket(new BigDecimal(rand(15000, 55000)).setScale(
+ DECIMALS, ROUNDING_MODE));
+ ii.setDaysLive(rand(1, 90));
+ ii.setChangeSearches(new BigDecimal(rand(0, 5)).setScale(
+ DECIMALS, ROUNDING_MODE));
+ ii.setChangePrice(new BigDecimal(rand(0, 5)).setScale(DECIMALS,
+ ROUNDING_MODE));
+ ii.setExposure(new BigDecimal(rand(0, 5)).setScale(DECIMALS,
+ ROUNDING_MODE));
+ ii.setActivity(new BigDecimal(rand(0, 5)).setScale(DECIMALS,
+ ROUNDING_MODE));
+ ii.setPrinted(new BigDecimal(rand(0, 5)).setScale(DECIMALS,
+ ROUNDING_MODE));
+ ii.setInquiries(new BigDecimal(rand(0, 5)).setScale(DECIMALS,
+ ROUNDING_MODE));
+ demoInventoryItemArrays[j] = ii;
+
+ }
+
+ iiList = new ArrayList<InventoryItem>(Arrays
+ .asList(demoInventoryItemArrays));
+
+ } catch (Exception e) {
+ System.out.println("!!!!!!createCategory Error: " + e.getMessage());
+ e.printStackTrace();
+ }
+ return iiList;
+ }
+
+ public static int rand(int lo, int hi) {
+ Random rn2 = new Random();
+ int n = hi - lo + 1;
+ int i = rn2.nextInt() % n;
+ if (i < 0)
+ i = -i;
+ return lo + i;
+ }
+
+ public static String randomstring(int lo, int hi) {
+ int n = rand(lo, hi);
+ byte b[] = new byte[n];
+ for (int i = 0; i < n; i++)
+ b[i] = (byte) rand('A', 'Z');
+ return new String(b);
+ }
+}
Property changes on: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/CarsBean.java
___________________________________________________________________
Name: svn:executable
+ *
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/InventoryItem.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/InventoryItem.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/InventoryItem.java 2009-09-04 13:36:44 UTC (rev 15462)
@@ -0,0 +1,147 @@
+package org.richfaces.demo.carsstore;
+
+import java.math.BigDecimal;
+import java.io.Serializable;
+
+public class InventoryItem{
+
+ String make;
+ String model;
+ String stock;
+ String vin;
+
+ BigDecimal mileage;
+ BigDecimal mileageMarket;
+ Integer price;
+ BigDecimal priceMarket;
+
+ int daysLive;
+ BigDecimal changeSearches;
+ BigDecimal changePrice;
+
+ BigDecimal exposure;
+ BigDecimal activity;
+ BigDecimal printed;
+ BigDecimal inquiries;
+
+
+ public String getMake() {
+ return make;
+ }
+
+ public void setMake(String make) {
+ this.make = make;
+ }
+
+ public String getModel() {
+ return model;
+ }
+
+ public void setModel(String model) {
+ this.model = model;
+ }
+
+ public String getStock() {
+ return stock;
+ }
+
+ public void setStock(String stock) {
+ this.stock = stock;
+ }
+
+ public String getVin() {
+ return vin;
+ }
+
+ public void setVin(String vin) {
+ this.vin = vin;
+ }
+
+ public BigDecimal getMileage() {
+ return mileage;
+ }
+
+ public void setMileage(BigDecimal mileage) {
+ this.mileage = mileage;
+ }
+
+ public BigDecimal getMileageMarket() {
+ return mileageMarket;
+ }
+
+ public void setMileageMarket(BigDecimal mileageMarket) {
+ this.mileageMarket = mileageMarket;
+ }
+
+ public Integer getPrice() {
+ return price;
+ }
+
+ public void setPrice(Integer price) {
+ this.price = price;
+ }
+
+ public BigDecimal getPriceMarket() {
+ return priceMarket;
+ }
+
+ public void setPriceMarket(BigDecimal priceMarket) {
+ this.priceMarket = priceMarket;
+ }
+
+ public int getDaysLive() {
+ return daysLive;
+ }
+
+ public void setDaysLive(int daysLive) {
+ this.daysLive = daysLive;
+ }
+
+ public BigDecimal getChangeSearches() {
+ return changeSearches;
+ }
+
+ public void setChangeSearches(BigDecimal changeSearches) {
+ this.changeSearches = changeSearches;
+ }
+
+ public BigDecimal getChangePrice() {
+ return changePrice;
+ }
+
+ public void setChangePrice(BigDecimal changePrice) {
+ this.changePrice = changePrice;
+ }
+
+ public BigDecimal getExposure() {
+ return exposure;
+ }
+
+ public void setExposure(BigDecimal exposure) {
+ this.exposure = exposure;
+ }
+
+ public BigDecimal getActivity() {
+ return activity;
+ }
+
+ public void setActivity(BigDecimal activity) {
+ this.activity = activity;
+ }
+
+ public BigDecimal getPrinted() {
+ return printed;
+ }
+
+ public void setPrinted(BigDecimal printed) {
+ this.printed = printed;
+ }
+
+ public BigDecimal getInquiries() {
+ return inquiries;
+ }
+
+ public void setInquiries(BigDecimal inquiries) {
+ this.inquiries = inquiries;
+ }
+}
Property changes on: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/carsstore/InventoryItem.java
___________________________________________________________________
Name: svn:executable
+ *
Added: root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/common/SelectsBean.java
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/common/SelectsBean.java (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/java/org/richfaces/demo/common/SelectsBean.java 2009-09-04 13:36:44 UTC (rev 15462)
@@ -0,0 +1,79 @@
+package org.richfaces.demo.common;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.RequestScoped;
+import javax.faces.event.ValueChangeEvent;
+import javax.faces.model.SelectItem;
+
+/**
+ * @author Ilya Shaikovsky
+ *
+ */
+@ManagedBean(name="selectsBean")
+@RequestScoped
+public class SelectsBean {
+ private String currentType="";
+ private String currentItem="";
+ public List<SelectItem> firstList = new ArrayList<SelectItem>();
+ public List<SelectItem> secondList = new ArrayList<SelectItem>();
+ private static final String [] FRUITS = {"", "Banana", "Cranberry", "Blueberry", "Orange"};
+ private static final String [] VEGETABLES = {"","Potatoes", "Broccoli", "Garlic", "Carrot"};
+
+ public SelectsBean() {
+ SelectItem item = new SelectItem("", "");
+ firstList.add(item);
+ item = new SelectItem("fruits", "Fruits");
+ firstList.add(item);
+ item = new SelectItem("vegetables", "Vegetables");
+ firstList.add(item);
+ for (int i = 0; i < FRUITS.length; i++) {
+ item = new SelectItem(FRUITS[i]);
+ }
+ }
+
+ public List<SelectItem> getFirstList() {
+ return firstList;
+ }
+ public List<SelectItem> getSecondList() {
+ return secondList;
+ }
+ public static String[] getFRUITS() {
+ return FRUITS;
+ }
+ public static String[] getVEGETABLES() {
+ return VEGETABLES;
+ }
+ public void valueChanged(ValueChangeEvent event){
+ secondList.clear();
+ String[] currentItems;
+ if (((String)event.getNewValue()).equals("fruits")) {
+ currentItems = FRUITS;
+ }else{
+ currentItems = VEGETABLES;
+ }
+ for (int i = 0; i < currentItems.length; i++) {
+ SelectItem item = new SelectItem(currentItems[i]);
+ secondList.add(item);
+ }
+
+ }
+
+ public String getCurrentType() {
+ return currentType;
+ }
+
+ public void setCurrentType(String currentType) {
+ this.currentType = currentType;
+ }
+
+ public String getCurrentItem() {
+ return currentItem;
+ }
+
+ public void setCurrentItem(String currentItem) {
+ this.currentItem = currentItem;
+ }
+}
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax/selectsUpdates.xhtml 2009-09-04 13:36:44 UTC (rev 15462)
@@ -0,0 +1,24 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:composition>
+ <h:form>
+ <h:selectOneMenu value="#{selectsBean.currentType}"
+ valueChangeListener="#{selectsBean.valueChanged}">
+ <f:selectItems value="#{selectsBean.firstList}" />
+ <a4j:ajax event="valueChange" render="second" execute="@this"
+ onbegin="if (confirm('Really want to change?')) {alert('1');return false;}"/>
+ </h:selectOneMenu>
+ <a4j:outputPanel id="second" layout="block">
+ <h:selectOneMenu value="#{selectsBean.currentType}" rendered="#{not empty selectsBean.currentType}">
+ <f:selectItems value="#{selectsBean.secondList}" />
+ </h:selectOneMenu>
+ </a4j:outputPanel>
+ </h:form>
+</ui:composition>
+
+</html>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml 2009-09-04 10:14:12 UTC (rev 15461)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/ajax.xhtml 2009-09-04 13:36:44 UTC (rev 15462)
@@ -14,6 +14,14 @@
<legend>Simple sample</legend>
<ui:include src="/richfaces/ajax/ajax.xhtml" />
</fieldset>
+
+ <p>Typical use-case of dependent select components. When you choosing
+ the type in the first select - corresponding items appears in second one.
+ </p>
+ <fieldset>
+ <legend>Simple sample</legend>
+ <ui:include src="/richfaces/ajax/selectsUpdates.xhtml" />
+ </fieldset>
</ui:define>
</ui:composition>
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable/dataTableEdit.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable/dataTableEdit.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable/dataTableEdit.xhtml 2009-09-04 13:36:44 UTC (rev 15462)
@@ -0,0 +1,40 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition>
+ <h:form>
+ <h:dataTable value="#{carsBean.allCars}" var="car" id="table">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Make" />
+ </f:facet>
+ <h:outputText value="#{car.make}"/>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Model" />
+ </f:facet>
+ <h:outputText value="#{car.model}"/>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Price" />
+ </f:facet>
+ <h:outputText value="#{car.price}"/>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ Actions
+ </f:facet>
+ <a4j:commandLink value="Edit" action="#{carsBean.edit}" render="table"/>
+ <h:outputText value=" " />
+ <a4j:commandLink value="Remove" action="#{carsBean.remove}" render="table"/>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+ </ui:composition>
+</html>
\ No newline at end of file
Added: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml (rev 0)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml 2009-09-04 13:36:44 UTC (rev 15462)
@@ -0,0 +1,18 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="body">
+ <p>
+ </p>
+ <fieldset>
+ <legend>Table Edit Sample</legend>
+ <ui:include src="/richfaces/dataTable/dataTableEdit.xhtml" />
+ </fieldset>
+ </ui:define>
+</ui:composition>
+
+</html>
\ No newline at end of file
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml 2009-09-04 10:14:12 UTC (rev 15461)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/richfaces/outputPanel/usage.xhtml 2009-09-04 13:36:44 UTC (rev 15462)
@@ -49,7 +49,7 @@
<a4j:outputPanel layout="block">
<h:form>
- <a4j:outputPanel ajaxRendered="true" layout="block">
+ <a4j:outputPanel layout="block">
<h:message for="text2" style="color:red" />
</a4j:outputPanel>
Modified: root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml
===================================================================
--- root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml 2009-09-04 10:14:12 UTC (rev 15461)
+++ root/examples/trunk/richfaces-demo/src/main/webapp/templates/includes/navigation.xhtml 2009-09-04 13:36:44 UTC (rev 15462)
@@ -27,6 +27,9 @@
value="#{facesContext.externalContext.requestContextPath}/richfaces/commandLink.jsf">a4j:commandLink</h:outputLink>
<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/richfaces/log.jsf">a4j:log</h:outputLink>
+ <hr/>
+ <h:outputLink
+ value="#{facesContext.externalContext.requestContextPath}/richfaces/dataTable.jsf">h:dataTable vs Ajax</h:outputLink>
</h:panelGrid>
</rich:panel>
</ui:composition>
13 years, 9 months
JBoss Rich Faces SVN: r15461 - branches/community/3.3.X/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2009-09-04 06:14:12 -0400 (Fri, 04 Sep 2009)
New Revision: 15461
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_push.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_fileUpload.xml
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_progressBar.xml
Log:
https://jira.jboss.org/jira/browse/RF-2063 outside infromation resources - links to several wiki articles are added to dev guide section
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_push.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_push.xml 2009-09-04 09:57:43 UTC (rev 15460)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/a4j_push.xml 2009-09-04 10:14:12 UTC (rev 15461)
@@ -171,5 +171,8 @@
<emphasis role="bold">
<property><a4j:push></property>
</emphasis> component usage. </para>
+ <para>
+ Refer to <ulink url="http://www.jboss.org/community/wiki/SimpleIRCWidgetwitha4jpush"> Simple IRC Widget with <a4j:push></ulink> article to find out real-world usage of the <emphasis role="bold"><property><a4j:push></property></emphasis> component.</para>
+
</section>
</section>
\ No newline at end of file
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_fileUpload.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_fileUpload.xml 2009-09-04 09:57:43 UTC (rev 15460)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_fileUpload.xml 2009-09-04 10:14:12 UTC (rev 15461)
@@ -1036,5 +1036,8 @@
<ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf?c=file...">On RichFaces LiveDemo page </ulink> you can see an example of <emphasis role="bold">
<property><rich:fileUpload></property>
</emphasis> usage and sources for the given example. </para>
+ <para>
+ <ulink url=""><rich:fileUpload> with MyFaces</ulink> article describes how to avoid problems with <emphasis role="bold"><property><rich:fileUpload></property></emphasis> compenent caused by wrong application configuration.
+ </para>
</section>
</section>
\ No newline at end of file
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_progressBar.xml
===================================================================
--- branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_progressBar.xml 2009-09-04 09:57:43 UTC (rev 15460)
+++ branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/rich_progressBar.xml 2009-09-04 10:14:12 UTC (rev 15461)
@@ -560,6 +560,8 @@
you can see the example of <emphasis role="bold">
<property><rich:progressBar></property>
</emphasis> usage and sources for the given example. </para>
+ <para>Read <ulink url="http://www.jboss.org/community/wiki/SimplePingApplicationwithrichprogressBar">"Simple Ping Application with <rich:progressBar>"</ulink> article to find out how to show the progress of server ping process.</para>
+
</section>
</section>
\ No newline at end of file
13 years, 9 months
JBoss Rich Faces SVN: r15460 - in branches/community/3.3.X: ui/togglePanel/src/main/config/component and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2009-09-04 05:57:43 -0400 (Fri, 04 Sep 2009)
New Revision: 15460
Modified:
branches/community/3.3.X/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent
branches/community/3.3.X/ui/togglePanel/src/main/config/component/togglePanel.xml
Log:
https://jira.jboss.org/jira/browse/RF-5946 underlined non-standard default values of attributes in tables of attributes
Modified: branches/community/3.3.X/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent
===================================================================
--- branches/community/3.3.X/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent 2009-09-03 20:19:17 UTC (rev 15459)
+++ branches/community/3.3.X/cdk/generator/src/main/resources/META-INF/schema/entities/ajax_component_attributes.ent 2009-09-04 09:57:43 UTC (rev 15460)
@@ -15,7 +15,7 @@
<property >
<name>ajaxSingle</name>
<classname>boolean</classname>
- <description>Limits JSF tree processing (decoding, conversion, validation and model updating) only to a component that sends the request. Boolean</description>
+ <description>Limits JSF tree processing (decoding, conversion, validation and model updating) only to a component that sends the request. Boolean. Default value is "false".</description>
</property>
<property >
Modified: branches/community/3.3.X/ui/togglePanel/src/main/config/component/togglePanel.xml
===================================================================
--- branches/community/3.3.X/ui/togglePanel/src/main/config/component/togglePanel.xml 2009-09-03 20:19:17 UTC (rev 15459)
+++ branches/community/3.3.X/ui/togglePanel/src/main/config/component/togglePanel.xml 2009-09-04 09:57:43 UTC (rev 15460)
@@ -351,7 +351,7 @@
<name>ajaxSingle</name>
<classname>boolean</classname>
<description>
- Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only.
+ Boolean attribute which provides possibility to limit JSF tree processing(decoding, conversion/validation, value applying) to the component which send the request only. Default value is "false".
</description>
</property>
13 years, 9 months