JBoss Rich Faces SVN: r1585 - branches/3.0.2/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-07-10 12:14:12 -0400 (Tue, 10 Jul 2007)
New Revision: 1585
Modified:
branches/3.0.2/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
RF-69: Some improvements in script.
Modified: branches/3.0.2/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- branches/3.0.2/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-07-10 15:59:27 UTC (rev 1584)
+++ branches/3.0.2/richfaces/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-07-10 16:14:12 UTC (rev 1585)
@@ -380,6 +380,7 @@
}
var options = {};
+ this.userOptions = {};
if (!this.cdiv.mpSet) {
Object.extend(options, this.options);
@@ -387,10 +388,9 @@
if (opts) {
Object.extend(options, opts);
+ Object.extend(this.userOptions, opts);
}
- Object.extend(this.options, options);
-
if (options.width) {
if (this.minWidth > options.width) {
options.width = this.minWidth;
@@ -554,7 +554,7 @@
Element.hide(this.id);
- if (this.floatedToBody && this.parent && this.parent.firstChild) {
+ if (this.floatedToBody && this.parent) {
document.body.removeChild(this.id);
this.parent.appendChild(this.id);
this.floatedToBody = false;
@@ -675,8 +675,8 @@
Element.setStyle(this.iframe, cssHashWH);
}
- Object.extend(this.options, cssHash);
- Object.extend(this.options, cssHashWH);
+ Object.extend(this.userOptions, cssHash);
+ Object.extend(this.userOptions, cssHashWH);
var w = this.context.width();
var h = this.context.height();
@@ -704,7 +704,7 @@
},
setStateInput: function(e) {
- var target = e.target ? e.target : e.srcElement;
+ var target = Event.element(e);
if (e && target) {
var input = document.createElement("input");
input.type = "hidden";
@@ -713,14 +713,14 @@
input.value = this.shown ? "true" : "false";
target.appendChild(input);
- var keys = $H(this.options).keys();
+ var keys = $H(this.userOptions).keys();
if (keys) {
for (var i = 0; i < keys.length; i++) {
input = document.createElement("input");
input.type = "hidden";
input.id = this.markerId.id + "StateOption_" + keys[i];
input.name = this.markerId.id + "StateOption_" + keys[i];
- input.value = this.options[keys[i]];
+ input.value = this.userOptions[keys[i]];
target.appendChild(input);
}
17 years, 6 months
JBoss Rich Faces SVN: r1584 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-07-10 11:59:27 -0400 (Tue, 10 Jul 2007)
New Revision: 1584
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-423
http://jira.jboss.com/jira/browse/RF-427
http://jira.jboss.com/jira/browse/RF-424
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-07-10 15:42:33 UTC (rev 1583)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-07-10 15:59:27 UTC (rev 1584)
@@ -232,7 +232,11 @@
<listitem>ondragenter - drags an element appearing on a tree event</listitem>
</itemizedlist>
-
+ <para>
+ Also standart HTML event attributes like "onclick", "onmousedown", "onmouseover" and etc. could be used.
+ Event handlers of a tree component capture events occured on any tree part.
+ But event handlers of treeNode capture events occured on treeNode only except for children events.
+ </para>
</section>
<section>
<title>Look-and-Feel Customization</title>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-07-10 15:42:33 UTC (rev 1583)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-07-10 15:59:27 UTC (rev 1584)
@@ -217,7 +217,11 @@
<listitem>
DEFAULT
</listitem>
-
+
+ <listitem>
+ plain
+ </listitem>
+
<listitem>
emeraldTown
</listitem>
@@ -488,7 +492,12 @@
</tbody>
</tgroup>
</table>
-
+
+ <para>
+ Skin "plain" was added from 3.0.2 version.
+ It doesn't have any parameters. It's necessary for embedding RichFaces components into existing projecst which have its own styles.
+ </para>
+
<para>To get detailed information on particular parameter possibilities,
see the <link linkend="RichFacesComponentsLibrary">chapter</link> where each component has skin parameters described
corresponding to its elements.</para>
17 years, 6 months
JBoss Rich Faces SVN: r1582 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-07-10 11:40:15 -0400 (Tue, 10 Jul 2007)
New Revision: 1582
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml
Log:
http://jira.jboss.com/jira/browse/RF-421
Improved discription for jsFunction. Added ways of usage and link to example.
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml 2007-07-10 15:07:54 UTC (rev 1581)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/jsFunction.xml 2007-07-10 15:40:15 UTC (rev 1582)
@@ -1,36 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter>
-
- <table>
- <title>Component identification parameters </title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Name</entry>
- <entry>Value</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>component-type</entry>
- <entry>org.ajax4jsf.ajax.Function</entry>
- </row>
- <row>
- <entry>component-family</entry>
- <entry>org.ajax4jsf.components.AjaxFunction</entry>
- </row>
- <row>
- <entry>component-class</entry>
- <entry>org.ajax4jsf.ajax.html.HtmlAjaxFunction</entry>
- </row>
- <row>
- <entry>renderer-type</entry>
- <entry>org.ajax4jsf.components.AjaxFunctionRenderer</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
+
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.ajax4jsf.ajax.Function</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.ajax4jsf.components.AjaxFunction</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.ajax4jsf.ajax.html.HtmlAjaxFunction</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.ajax4jsf.components.AjaxFunctionRenderer</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
<section>
<title>Creating on a page</title>
<para>Simple component definition example:</para>
@@ -45,10 +45,9 @@
<a4j:jsFunction data="#{bean.someProperty}" name="callScript" oncomplete="myScript(data.subProperty1, data.subProperty2)"/>
...]]>
</programlisting>
- <para>
- The script "myScript" will be called after <property>bean.someProperty</property> data
- will be returned from server(e.g. It'll be object with two subproperties).
- </para>
+ <para> The script "myScript" will be called after
+ <property>bean.someProperty</property> data will be returned from server(e.g. It'll
+ be object with two subproperties). </para>
</section>
<section>
<title>Dynamical creation of a component from Java code</title>
@@ -60,11 +59,55 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>
- As the component uses Ajax request to get data from server - it has all
- common Ajax Action attributes. So, action and actionListener can be
- invoked, and reRendering some parts of the page fired after calling
- function.
- </para>
- </section>
-</chapter>
\ No newline at end of file
+ <para> As the component uses Ajax request to get data from server - it has all common Ajax
+ Action attributes. So, action and actionListener can be invoked, and reRendering some parts of
+ the page fired after calling function. </para>
+ <para> When using the <emphasis role="bold">
+ <property><a4j:jsFunction></property>
+ </emphasis> it's possible to initiate the AJAX request from the JavaScript and
+ perform partial update of a page and/or invoke the JavaScript function with data returned by
+ AJAX response. </para>
+ <programlisting role="XML"><![CDATA[...
+<body onload="callScript()">
+ ...
+ <h:form>
+ ...
+ <a4j:jsFunction name="callScript" data="#{bean.someProperty1 }
+ "reRender="someComponent" oncomplete="myScript(data.subProperty1, data.subProperty2)">
+ <a4j:actionparam name="param_name" assignTo="#{bean.someProperty2}">
+ </a4j:actionparam>
+ </a4j:jsFunction>
+ ...
+ </h:form>
+ ...
+</body>
+...]]></programlisting>
+ <para> The <emphasis role="bold">
+ <property><a4j:jsFunction></property>
+ </emphasis> allows to use <emphasis role="bold">
+ <property><a4j:actionparam></property>
+ </emphasis> or pure <emphasis role="bold">
+ <property><f:param></property>
+ </emphasis> for passing any number of parameters of the JavaScript function into AJAX request.
+ <emphasis role="bold">
+ <property><a4j:jsFunction></property>
+ </emphasis> is similar to <emphasis role="bold">
+ <property><a4j:commandButton></property>
+ </emphasis>, but it could be activated from the JavaScript code. It allows to invoke some
+ server side functionality and use the returned data in the JavaScript function invoked from
+ "oncomplete" attribute. So it's possible to use <emphasis
+ role="bold">
+ <property><a4j:jsFunction></property>
+ </emphasis> instead of <emphasis role="bold">
+ <property><a4j:commandButton></property>
+ </emphasis>. You can put it anywhere, just don't forget to use
+ <h:form> … </h:form> around it. </para>
+ </section>
+ <section>
+ <title>Relevant resources links</title>
+ <para> To see how <emphasis role="bold">
+ <property><a4j:jsFunction></property>
+ </emphasis> works on practice, look at a4j-jsFunction example from <ulink
+ url="http://labs.jboss.com/jbossajax4jsf/demo/index.html">here</ulink>.</para>
+ </section>
+</chapter>
17 years, 6 months
JBoss Rich Faces SVN: r1581 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-07-10 11:07:54 -0400 (Tue, 10 Jul 2007)
New Revision: 1581
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-430
some code samples were framed
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-07-10 15:01:13 UTC (rev 1580)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-07-10 15:07:54 UTC (rev 1581)
@@ -134,6 +134,10 @@
<para>Here is a simple panel component:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><rich:panel>
...
</rich:panel></programlisting>
@@ -147,6 +151,10 @@
role="bold"><property><div></property></emphasis> element looks
like:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><div class="dr-pnl rich-panel">
...
</div></programlisting>
@@ -177,6 +185,10 @@
<para>A developer may also change the style properties for a particular
panel. The following definition:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><rich:panel styleClass="customClass">
...
</rich:panel></programlisting>
@@ -184,6 +196,10 @@
<para>could add some style properties from customClass to one particular
panel, as a result we get three styles:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><div class="dr_pnl rich-panel customClass">
...
</div></programlisting>
@@ -497,6 +513,10 @@
<para>Add a skin definition context-param element to the
application's web.xml file:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>name</param-value>
17 years, 6 months
JBoss Rich Faces SVN: r1580 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-07-10 11:01:13 -0400 (Tue, 10 Jul 2007)
New Revision: 1580
Modified:
trunk/docs/userguide/en/src/main/docbook/included/column.xml
trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml
trunk/docs/userguide/en/src/main/docbook/included/draggable.xml
trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml
trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
trunk/docs/userguide/en/src/main/docbook/included/panel.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
trunk/docs/userguide/en/src/main/docbook/included/separator.xml
trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml
trunk/docs/userguide/en/src/main/docbook/included/spacer.xml
trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
trunk/docs/userguide/en/src/main/docbook/included/tab.xml
trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml
trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml
trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml
trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
Log:
http://jira.jboss.com/jira/browse/RF-430
some code samples are framed
Modified: trunk/docs/userguide/en/src/main/docbook/included/column.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/column.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/column.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -60,6 +60,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlColumn;
...
HtmlColumn myColumn = new HtmlColumn();
Modified: trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/columnGroup.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -63,6 +63,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlColumnGroup;
...
HtmlColumnGroup myRow = new HtmlColumnGroup();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataDefinitionList.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -59,6 +59,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDataDefinitionList;
...
HtmlDataDefinitionList myList = new HtmlDataDefinitionList();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -54,6 +54,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmldataFilterSlider;
...
HtmldataFilterSlider mySlider = new HtmldataFilterSlider();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataGrid.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -58,6 +58,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDataGrid;
...
HtmlDataGrid myList = new HtmlDataGrid();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataList.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -59,6 +59,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDataList;
...
HtmlDataList myList = new HtmlDataList();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataOrderedList.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -58,6 +58,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDataOrderedList;
...
HtmlDataOrderedList myList = new HtmlDataOrderedList();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dataTable.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -59,6 +59,10 @@
</section>
<section>
<title>Dynamical creation from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDataTable;
...
HtmlDataTable myTable = new HtmlDataTable();
Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -61,6 +61,10 @@
</section>
<section>
<title>Dynamical creation from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDatascroller;
...
HtmlDatascroller myScroll = new HtmlDatascroller();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -65,6 +65,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDragIndicator;
...
HtmlDragIndicator myDragIndicator = new HtmlDragIndicator();
Modified: trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dragIndicator1.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -64,6 +64,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlDragIndicator;
HtmlDragIndicator myDragIndicator = new HtmlDragIndicator();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/draggable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/draggable.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/draggable.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -46,6 +46,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:toolBar>
<rich:draggable dragType="file">
@@ -57,6 +61,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[...
org.richfaces.component.html.HtmlDraggable myDragZone = new org.richfaces.component.html.HtmlDraggable();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/dropZone.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:toolBar>
<rich:draggable dragType="DropIcons">
@@ -61,6 +65,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[...
org.richfaces.component.html.HtmlDropZone myDragZone = new org.richfaces.component.html.HtmlDropZone();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/gmap.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/gmap.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:gmap gmapKey="..."/>
...
@@ -52,6 +56,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlGmap;
...
HtmlGmap myMap = new HtmlGmap();
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSlider.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -44,6 +44,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:inputNumberSlider minValue="0" maxValue="100" step="1"/>
...
@@ -51,6 +55,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlInputNumberSlider;
...
HtmlInputNumberSlider mySlider = new HtmlInputNumberSlider();
Modified: trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/inputNumberSpinner.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:inputNumberSpinner minValue="0" maxValue="100" step="1"/>
...
@@ -52,6 +56,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlInputNumberSpinner;
...
HtmlInputNumberSpinner mySpinner = new HtmlInputNumberSpinner ();
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuGroup.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -61,6 +61,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="java"><![CDATA[...
org.richfaces.component.html.HtmlMenuGroup myGroup = new org.richfaces.component.html.HtmlMenuGroup ();
...
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuItem.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -59,6 +59,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="java"><![CDATA[...
org.richfaces.component.html.HtmlMenuItem myItem = new org.richfaces.component.html.HtmlMenuItem ();
...]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/menuSeparator.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -59,6 +59,10 @@
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="java"><![CDATA[...
org.richfaces.component.html.HtmlMenuSeparator mySep = new org.richfaces.component.html.HtmlMenuSeparator ();
...]]></programlisting>
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -224,6 +224,10 @@
</emphasis> attributes specifying the minimal window sizes.</para>
<para> You can pass your parameters during modalPanel opening or closing. This passing could be
performed in the following way: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA">Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});</programlisting>
<para> Thus, except the standard modalPanel parameters you can pass any of your own parameters. </para>
<para> Also modalPanel allows to handle its own opening and closing events on the client side.
@@ -231,6 +235,10 @@
case. </para>
<para> The following example shows how on the client side to define opening and closing event
handling in such a way that your own parameters could also be obtained: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA">onshow="alert(event.parameters.param1)"</programlisting>
<para> Here, during modalPanel opening the value of a passing parameter is output. </para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/paint2D.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:paint2D paint="#{paint2D.paint}" data="#{paint2DModel}"/>
...
@@ -57,6 +61,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlPaint2D;
...
HtmlPaint2D myImage = new HtmlPaint2D();
Modified: trunk/docs/userguide/en/src/main/docbook/included/panel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/panel.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:panel>
<f:facet name="header">
@@ -59,6 +63,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlPanel;
...
HtmlPanel myPanel = new HtmlPanel();
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBar.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:panelBar>
<!--//... -->
@@ -60,6 +64,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlPanelBar;
...
HtmlPanelBar myBar = new HtmlPanelBar();
@@ -158,9 +166,6 @@
</tbody>
</tgroup>
</table>
- <para>
- <emphasis role="bold">Example:</emphasis>
- </para>
<para>CSS code piece used on the page:</para>
<para>
Modified: trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/panelBarItem.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:panelBar>
<rich:panelBarItem label="Canon">
@@ -59,6 +63,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlPanelBarItem;
...
HtmlPanelBarItem myBarItem = new HtmlPanelBarItem();
Modified: trunk/docs/userguide/en/src/main/docbook/included/separator.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/separator.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/separator.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -56,6 +56,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlSeparator;
...
HtmlSeparator mySeparator = new HtmlSeparator();
Modified: trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/simpleTogglePanel.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -46,6 +46,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:simpleTogglePanel>
...
@@ -55,6 +59,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlSimpleTogglePanel;
...
HtmlSimpleTogglePanel myPanel = new HtmlSimpleTogglePanel();
Modified: trunk/docs/userguide/en/src/main/docbook/included/spacer.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/spacer.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/spacer.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -55,6 +55,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlSpacer;
...
HtmlSpacer mySpacer = new HtmlSpacer();
Modified: trunk/docs/userguide/en/src/main/docbook/included/subTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/subTable.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -60,6 +60,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlSubTable;
...
HtmlSubTable mySubTable = new HtmlSubTable();
Modified: trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/suggestionBox.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<h:inputText value="#{bean.property}" id="suggest"/>
<rich:suggestionbox for="suggest" suggestionAction="#{bean.autocomplete}"
@@ -72,6 +76,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlSuggestionBox;
...
HtmlSuggestionBox myList = new HtmlSuggestionBox();
Modified: trunk/docs/userguide/en/src/main/docbook/included/tab.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/tab.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -44,6 +44,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:tabPanel>
<!--Set of Tabs inside-->
@@ -56,6 +60,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlTab;
...
HtmlTab myTab = new HtmlTab();
@@ -112,7 +120,10 @@
</listitem>
</itemizedlist>
<para>
- Some event could be performed on the tab which has been entered/left using "ontabenter"/"ontableave" attributes. See the example below.
+ Some event could be performed on the tab which has been entered/left using "ontabenter"/"ontableave" attributes. See the example below.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
<rich:tabPanel>
Modified: trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/tabPanel.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:tabPanel>
<!--//Set of Tabs inside-->
@@ -57,6 +61,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlTabPanel;
...
HtmlTabPanel myTabPanel = new HtmlTabPanel();
Modified: trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/toggleControl.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -46,6 +46,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:toggleControl for="panel"/>
...
@@ -57,6 +61,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlToggleControl;
...
HtmlToggleControl myControl = new HtmlToggleControl();
Modified: trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/togglePanel.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:togglePanel>
<f:facet name="first">
@@ -62,6 +66,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlTogglePanel;
...
HtmlTogglePanel myPanel = new HtmlTogglePanel();
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolBar.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:toolBar>
<!--//...Set of action or other JSF components-->
@@ -54,6 +58,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlToolBar;
...
HtmlToolBar myToolBar = new HtmlToolBar();
Modified: trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/toolBarGroup.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:toolBar>
...
@@ -61,6 +65,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlToolBarGroup;
...
HtmlToolBarGroup myToolBarGroup = new HtmlToolBarGroup();
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:tree>
<!--Set of the Tree nodes-->
@@ -54,6 +58,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlTree;
...
HtmlTree myPanel = new HtmlTree();
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-07-10 14:49:51 UTC (rev 1579)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2007-07-10 15:01:13 UTC (rev 1580)
@@ -45,6 +45,10 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it might be used in a page: </para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="XML"><![CDATA[...
<rich:tree ... faceNode="simpleNode">
<rich:treeNode type="simpleNode">
@@ -56,6 +60,10 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
<programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlTreeNode;
...
HtmlTreeNode myPanel = new HtmlTreeNode();
17 years, 6 months
JBoss Rich Faces SVN: r1579 - branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-10 10:49:51 -0400 (Tue, 10 Jul 2007)
New Revision: 1579
Modified:
branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
Log:
Modified: branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-10 12:35:55 UTC (rev 1578)
+++ branches/3.0.2/sandbox/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-07-10 14:49:51 UTC (rev 1579)
@@ -30,12 +30,18 @@
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
+import java.util.Map;
import java.util.Set;
import java.util.TimeZone;
+import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.component.UIViewRoot;
+import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.convert.ConverterException;
+import javax.faces.convert.DateTimeConverter;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.FacesEvent;
import javax.faces.render.Renderer;
@@ -46,66 +52,119 @@
import org.richfaces.renderkit.CalendarDataModelItemAdaptor;
import org.richfaces.renderkit.CalendarRendererBase;
+// import org.richfaces.renderkit.html.BaseGradient.Data;
+
/**
* JSF component class
- *
+ *
*/
public abstract class UICalendar extends UIInput {
-
- public static final String COMPONENT_TYPE = "org.richfaces.Calendar";
-
+
+ public static final String COMPONENT_TYPE = "org.richfaces.Calendar";
+
private static final String COMPONENT_FAMILY = "org.richfaces.Calendar";
-
+
public abstract Locale getLocale();
+
public abstract void setLocale(Locale locale);
-
+
public abstract TimeZone getTimeZone();
+
public abstract void setTimeZone(TimeZone timeZone);
public abstract Date getPreloadDateRangeBegin();
+
public abstract void setPreloadDateRangeBegin(Date date);
-
+
public abstract Date getPreloadDateRangeEnd();
+
public abstract void setPreloadDateRangeEnd(Date date);
- public abstract Date getCurrentDate();
- public abstract void setCurrentDate(Date date);
+ // public abstract Date getCurrentDate();
+ // public abstract void setCurrentDate(Date date);
+
public abstract CalendarDataModel getData();
+
public abstract void setData(CalendarDataModel dataModel);
+ // currentDate processing -------------------------------------------------
+
+ private Date currentDate = null;
+
+ public Date getCurrentDate() {
+ return (this.currentDate);
+ }
+
+ public void setCurrentDate(Date currentDate) {
+ this.currentDate = currentDate;
+ }
+
+ public Converter getConverter(FacesContext context, UICalendar calendar) {
+
+ Converter converter = calendar.getConverter();
+ if (converter == null) {
+ DateTimeConverter datetime = new DateTimeConverter();
+ if (context.getViewRoot().getLocale() == null) {
+ datetime.setLocale(getDefaultLocale());
+ } else {
+ datetime.setLocale(context.getViewRoot().getLocale());
+ }
+ datetime.setTimeZone(TimeZone.getDefault());
+ converter = datetime;
+ }
+ return converter;
+ }
+
+ public Object getConvertedValue(FacesContext context,
+ UIComponent component, Object currentDate)
+ throws ConverterException {
+ UICalendar calendar = (UICalendar) component;
+ Converter converter = getConverter(context, calendar);
+ String valueString = (String) currentDate;
+ return converter.getAsObject(context, component, valueString);
+
+ }
+
+ public String getValueAsString(FacesContext context, UIComponent component)
+ throws IOException {
+ UICalendar calendar = (UICalendar) component;
+ Date valueString = calendar.getCurrentDate();
+ return valueString.toString();
+ }
+
+ // --------------------------------------------------------
+
private int getLastDayOfWeek(Calendar calendar) {
int i = calendar.getFirstDayOfWeek();
if (i == calendar.getActualMinimum(Calendar.DAY_OF_WEEK)) {
i = calendar.getActualMaximum(Calendar.DAY_OF_WEEK);
} else {
- i --;
+ i--;
}
-
+
return i;
}
-
+
protected Date getDefaultPreloadBegin(Date date) {
Calendar calendar = Calendar.getInstance(getTimeZone(), getLocale());
calendar.setTime(date);
calendar.set(Calendar.DATE, calendar.getActualMinimum(Calendar.DATE));
/*
- //force recalculation
- calendar.getTimeInMillis();
- calendar.set(Calendar.DAY_OF_WEEK, calendar.getFirstDayOfWeek());
- */
+ * //force recalculation calendar.getTimeInMillis();
+ * calendar.set(Calendar.DAY_OF_WEEK, calendar.getFirstDayOfWeek());
+ */
return calendar.getTime();
}
-
+
protected Date getDefaultPreloadEnd(Date date) {
Calendar calendar = Calendar.getInstance(getTimeZone(), getLocale());
calendar.setTime(date);
calendar.set(Calendar.DATE, calendar.getActualMaximum(Calendar.DATE));
/*
- //force recalculation
- calendar.getTimeInMillis();
- calendar.set(Calendar.DAY_OF_WEEK, getLastDayOfWeek(calendar));
- */
+ * //force recalculation calendar.getTimeInMillis();
+ * calendar.set(Calendar.DAY_OF_WEEK, getLastDayOfWeek(calendar));
+ */
return calendar.getTime();
}
@@ -120,10 +179,10 @@
}
}
}
-
+
return Locale.US;
}
-
+
protected TimeZone getDefaultTimeZone() {
return TimeZone.getDefault();
}
@@ -133,67 +192,73 @@
super.broadcast(event);
if (event instanceof AjaxEvent) {
FacesContext facesContext = FacesContext.getCurrentInstance();
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance(facesContext);
+ AjaxContext ajaxContext = AjaxContext
+ .getCurrentInstance(facesContext);
ajaxContext.setResponseData(getPreload());
}
}
-
+
public Object getPreload() {
Date[] preloadDateRange = getPreloadDateRange();
if (preloadDateRange != null && preloadDateRange.length != 0) {
CalendarDataModel calendarDataModel = (CalendarDataModel) getData();
if (calendarDataModel != null) {
- CalendarDataModelItem[] calendarDataModelItems = calendarDataModel.getData(preloadDateRange);
-
+ CalendarDataModelItem[] calendarDataModelItems = calendarDataModel
+ .getData(preloadDateRange);
+
HashMap args = new HashMap();
- args.put("startDate", CalendarRendererBase.formatDate(preloadDateRange[0]));
- args.put("days", new AdaptingCollection(calendarDataModelItems));
+ args.put("startDate", CalendarRendererBase
+ .formatDate(preloadDateRange[0]));
+ args
+ .put("days", new AdaptingCollection(
+ calendarDataModelItems));
return args;
}
}
return null;
}
-
+
public Date[] getPreloadDateRange() {
Date dateRangeBegin = this.getPreloadDateRangeBegin();
Date dateRangeEnd = this.getPreloadDateRangeEnd();
-
+
if (dateRangeBegin.after(dateRangeEnd)) {
- //TODO add message
+ // TODO add message
throw new IllegalArgumentException();
}
List dates = new ArrayList();
-
- Calendar calendar = Calendar.getInstance(this.getTimeZone(), this.getLocale());
+
+ Calendar calendar = Calendar.getInstance(this.getTimeZone(), this
+ .getLocale());
Calendar calendar2 = (Calendar) calendar.clone();
calendar.setTime(dateRangeBegin);
calendar2.setTime(dateRangeEnd);
-
+
do {
dates.add(calendar.getTime());
calendar.add(Calendar.DATE, 1);
} while (!calendar.after(calendar2));
-
+
return (Date[]) dates.toArray(new Date[dates.size()]);
}
-
public void encodeAjaxChild(FacesContext context, String path, Set ids,
Set renderedAreas) throws IOException {
Renderer renderer = this.getRenderer(context);
if (renderer instanceof AjaxChildrenEncoder) {
- ((AjaxChildrenEncoder) renderer).encodeAjaxChild(context, path, ids, renderedAreas);
+ ((AjaxChildrenEncoder) renderer).encodeAjaxChild(context, path,
+ ids, renderedAreas);
}
}
}
class AdaptingCollection extends AbstractCollection {
private CalendarDataModelItem[] items;
-
+
public AdaptingCollection(CalendarDataModelItem[] items) {
super();
this.items = items;
@@ -202,8 +267,9 @@
public Iterator iterator() {
return new Iterator() {
private int idx = 0;
+
private CalendarDataModelItemAdaptor adaptor = new CalendarDataModelItemAdaptor();
-
+
public boolean hasNext() {
return idx < items.length;
}
@@ -216,7 +282,7 @@
public void remove() {
throw new UnsupportedOperationException();
}
-
+
};
}
17 years, 6 months
JBoss Rich Faces SVN: r1578 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-07-10 08:35:55 -0400 (Tue, 10 Jul 2007)
New Revision: 1578
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml
Log:
http://jira.jboss.com/jira/browse/RF-436
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml 2007-07-10 12:34:37 UTC (rev 1577)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/support.xml 2007-07-10 12:35:55 UTC (rev 1578)
@@ -75,8 +75,8 @@
<property><a4j:support></property>
</emphasis> functionality and there is no necessity to add the support to them. </para>
</note>
- <para>With the help of <emphasis role="italic">
- <property>"onsubmit"</property></emphasis> and <emphasis role="italic">
+ <para>With the help of <emphasis >
+ <property>"onsubmit"</property></emphasis> and <emphasis >
<property>"oncomplete"</property></emphasis> attributes the component allows using JavaScript before (for request sending conditions checking) and after an AJAX response processing termination (for performance of user-defined activities on the client) </para>
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[<h:selectOneMenu value="#{bean.text}">
@@ -91,10 +91,10 @@
<itemizedlist>
<listitem>
<emphasis role="bold">Limitation of the submit area and updating area for the request.</emphasis>
- <para><emphasis role="italic"><property>"ajaxSingle"</property></emphasis> is an attribute that allows submission on the server only component sending a request, as if the component presented on a separate form.
+ <para><emphasis ><property>"ajaxSingle"</property></emphasis> is an attribute that allows submission on the server only component sending a request, as if the component presented on a separate form.
</para>
- <para><emphasis role="italic"><property>"limitToList"</property></emphasis> is an attribute that allows to limit areas, which are updated after the responses. Only these components defined in the reRender attribute are updated. </para>
+ <para><emphasis ><property>"limitToList"</property></emphasis> is an attribute that allows to limit areas, which are updated after the responses. Only these components defined in the reRender attribute are updated. </para>
</listitem>
</itemizedlist></para>
<para><emphasis role="bold">Example 1:</emphasis></para>
@@ -119,15 +119,15 @@
<itemizedlist>
<listitem>
<emphasis role="bold">Limitation of requests frequency and updates quantity after the responses. </emphasis>
- <para><emphasis role="italic"><property>"requestDelay"</property></emphasis> is an attribute that defines a time interval in seconds minimally permissible between responses.
+ <para><emphasis ><property>"requestDelay"</property></emphasis> is an attribute that defines a time interval in seconds minimally permissible between responses.
</para>
- <para><emphasis role="italic"><property>"eventQueue"</property></emphasis> is an attribute for naming of the queue where the next response is kept in till its processing, but if the next event comes in till this time is over, the waiting event is taken away, replacing with a new one.
+ <para><emphasis ><property>"eventQueue"</property></emphasis> is an attribute for naming of the queue where the next response is kept in till its processing, but if the next event comes in till this time is over, the waiting event is taken away, replacing with a new one.
</para>
- <para><emphasis role="italic"><property>"ignoreDupResponces"</property></emphasis> is an attribute that allows to disable any updates on the client after an AJAX request if another AJAX request is already sent.
+ <para><emphasis ><property>"ignoreDupResponces"</property></emphasis> is an attribute that allows to disable any updates on the client after an AJAX request if another AJAX request is already sent.
</para>
- <para><emphasis role="italic"><property>"timeout"</property></emphasis> is an attribute that allows to set a time interval in millisecond to define a maximum time period of response wait time. In case of the interval interaction, a new request is sent and the previous one is canceled. Postprocessing of a response isn't performed.
+ <para><emphasis ><property>"timeout"</property></emphasis> is an attribute that allows to set a time interval in millisecond to define a maximum time period of response wait time. In case of the interval interaction, a new request is sent and the previous one is canceled. Postprocessing of a response isn't performed.
</para>
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[<h:form>
@@ -137,7 +137,7 @@
</h:inputText>
<h:outputText value="#{person.name}" id="test"/>
</form>]]></programlisting>
- <para>This example clearly shows mentioned above attributes. If quick typing in a text field happens, every next requests sending is delayed for a second and requests quantity is reduced. The requests are kept in the queue "myQueue" till its the sending.
+ <para>This example clearly shows mentioned <ulink url="index.html#support">above</ulink> attributes. If quick typing in a text field happens, every next requests sending is delayed for a second and requests quantity is reduced. The requests are kept in the queue "myQueue" till its the sending.
Moreover, if the next request is already sent, the rerendering after the previous request is banned, and
it helps to avoid unnecessary processing on the client.</para>
</listitem>
17 years, 6 months
JBoss Rich Faces SVN: r1577 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-07-10 08:34:37 -0400 (Tue, 10 Jul 2007)
New Revision: 1577
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml
Log:
http://jira.jboss.com/jira/browse/RF-436
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml 2007-07-10 12:34:03 UTC (rev 1576)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/status.xml 2007-07-10 12:34:37 UTC (rev 1577)
@@ -36,7 +36,7 @@
<para>There are two ways to define elements indicating a request status :</para>
<itemizedlist>
<listitem>
- With <emphasis role="italic">
+ With <emphasis >
<property>"StartText"/"StopText"</property>
</emphasis> atributes:
<programlisting role="XML"><![CDATA[<a4j:status startText="Progress" stopText="Done" for="stat1">]]></programlisting>
@@ -69,19 +69,19 @@
<title>Key attributes and ways of usage</title>
<para>There are two ways for components or containers definition, which AJAX requests status is tracked by a component.<itemizedlist>
<listitem>
- Definition with the <emphasis role="italic">
+ Definition with the <emphasis >
<property>"for"</property>
</emphasis>
attribute on the <emphasis role="bold">
<property><a4j:status></property>
- </emphasis> component. Here <emphasis role="italic">
+ </emphasis> component. Here <emphasis >
<property>"for"</property>
</emphasis>
attribute should point at an AJAX container (<emphasis role="bold"><property><a4j:region></property></emphasis>) "id", which requests are tracked by a component.
</listitem>
</itemizedlist><itemizedlist>
<listitem>
- Definition with the <emphasis role="italic">
+ Definition with the <emphasis >
<property>"status"</property>
</emphasis>
attribute obtained by any Ajax4jsf library action component. The attribute should point at the <emphasis role="bold">
@@ -107,7 +107,7 @@
<span id="j_id20:status.stop" style="display: none">
Stopped
</span>]]></programlisting>
- <para>There is a possibility to group a <emphasis role="bold"><property><a4j:status></property></emphasis> elements content into <emphasis role="bold"><property><div></property></emphasis> elements, instead of <emphasis role="bold"><property><span></property></emphasis>. To use it, just redefine the <emphasis role="italic">
+ <para>There is a possibility to group a <emphasis role="bold"><property><a4j:status></property></emphasis> elements content into <emphasis role="bold"><property><div></property></emphasis> elements, instead of <emphasis role="bold"><property><span></property></emphasis>. To use it, just redefine the <emphasis >
<property>"layout"</property>
</emphasis>
attribute from "incline"(default) to "block".</para>
17 years, 6 months
JBoss Rich Faces SVN: r1576 - trunk/docs/ajaxguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-07-10 08:34:03 -0400 (Tue, 10 Jul 2007)
New Revision: 1576
Modified:
trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml
Log:
http://jira.jboss.com/jira/browse/RF-436
Modified: trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml
===================================================================
--- trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml 2007-07-10 12:30:09 UTC (rev 1575)
+++ trunk/docs/ajaxguide/en/src/main/docbook/included/repeat.xml 2007-07-10 12:34:03 UTC (rev 1576)
@@ -33,13 +33,13 @@
<section>
<title>Creating on a page</title>
- <para>The component definition on a page is the same as for the <emphasis role="italic">
+ <para>The component definition on a page is the same as for the <emphasis >
<property>"facelets"</property>
</emphasis> component:</para>
<programlisting role="XML"><![CDATA[<a4j:repeat id="detail" value="#{bean.props}" var="detail">
<h:outputText value="#{detail.someProperty}"/>
</a4j:repeat>]]></programlisting>
- <para>The output is generated according to a collection contained in <emphasis role="italic">
+ <para>The output is generated according to a collection contained in <emphasis >
<property>"bean.props"</property>
</emphasis> with the "detail" key passed to child components.</para>
</section>
@@ -53,7 +53,7 @@
</section>
<section>
<title>Key attributes and ways of usage</title>
- <para>The main difference of this component from iterative components of other libraries is a special <emphasis role="italic">
+ <para>The main difference of this component from iterative components of other libraries is a special <emphasis >
<property>"ajaxKeys"</property>
</emphasis> attribute. This attribute defines strings that are updated after an AJAX request. As a result it becomes easier to update several child components separately without updating the whole page.</para>
<programlisting role="JSP"><![CDATA[<a4j:poll intervall="1000" action="#{repeater.action}" reRender="list">
@@ -71,14 +71,14 @@
<tbody>
<table>
]]></programlisting>
- <para>Thus, a list with a table structure from <emphasis role="italic">
+ <para>Thus, a list with a table structure from <emphasis >
<property>"bean.props"</property>
</emphasis> is output.</para>
<para>In the above-mentioned example the component <emphasis role="bold">
<property><a4j:poll></property>
- </emphasis> sends AJAX requests every second, calling the <emphasis role="italic">
+ </emphasis> sends AJAX requests every second, calling the <emphasis >
<property>"action"</property>
- </emphasis> method of the <emphasis role="italic">
+ </emphasis> method of the <emphasis >
<property>"repeater"</property>
</emphasis> bean.
</para>
@@ -86,12 +86,12 @@
<title>Note:</title>
<para>The <emphasis role="bold">
<property><a4j:repeater></property>
- </emphasis> component is defined as fully updated, but really updated there are only the strings which rowKeys are included into the set <emphasis role="italic">
+ </emphasis> component is defined as fully updated, but really updated there are only the strings which rowKeys are included into the set <emphasis >
<property>"ajaxRowSet"</property>
- </emphasis> defined in the <emphasis role="italic">
+ </emphasis> defined in the <emphasis >
<property>"ajaxKeys"</property>
</emphasis> attribute </para>
- <para>The set could be defined during the action method processing using data on a model from the property <emphasis role="italic">
+ <para>The set could be defined during the action method processing using data on a model from the property <emphasis >
<property>"repeater.myRepeat"</property>
</emphasis></para>
</note>
17 years, 6 months