JBoss Rich Faces SVN: r18943 - trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-08-24 03:47:22 -0400 (Tue, 24 Aug 2010)
New Revision: 18943
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/AutocompleteBase.js
Log:
revert some changes
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js 2010-08-24 04:06:04 UTC (rev 18942)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js 2010-08-24 07:47:22 UTC (rev 18943)
@@ -88,6 +88,7 @@
var defaultOptions = {
selectedItemClass:'rf-au-s',
+ itemClass:'cb_option',
autofill:true,
minChars:1,
selectFirst:true,
@@ -129,7 +130,7 @@
};
var onMouseAction = function(event) {
- var element = $(event.target).closest(".rf-au-i", event.currentTarget).get(0);
+ var element = $(event.target).closest("."+this.options.itemClass, event.currentTarget).get(0);
if (element) {
if (event.type=="mouseover") {
@@ -146,7 +147,7 @@
};
var updateItemsList = function (value, fetchValues) {
- this.items = $(rf.getDomElement(this.id+ID.ITEMS)).find(".rf-au-i");
+ this.items = $(rf.getDomElement(this.id+ID.ITEMS)).find("."+this.options.itemClass);
if (this.items.length>0) {
this.cache = new rf.utils.Cache(value, this.items, fetchValues || getData);
}
@@ -236,9 +237,6 @@
};
var onChangeValue = function (event, value) {
- //if(this.options.onchange){
- //this.options.onchange.call(this, event);
- //}
selectItem.call(this);
// value is undefined if called from AutocompleteBase onChange
@@ -251,6 +249,8 @@
this.options.ajaxMode && callAjax.call(this, event, subValue);
return;
}
+
+ // TODO: check js error if open by shoButton and minchar>0
if(!this.cache){
return;
}
@@ -260,19 +260,13 @@
$(rf.getDomElement(this.id+ID.ITEMS)).empty().append(newItems);
this.index = -1;
this.value = subValue;
- if (subValue.length<this.options.minChars){
- this.hide();
- }
if (this.options.selectFirst) {
if (event.which == rf.KEYS.RETURN || event.type == "click") {
this.setInputValue(subValue);
- return;
} else {
selectItem.call(this, 0, false, event.which == rf.KEYS.BACKSPACE || event.which == rf.KEYS.LEFT || event.which == rf.KEYS.RIGHT);
- return;
}
}
- this.setInputValue(subValue);
};
var getSelectedItemValue = function () {
@@ -342,8 +336,8 @@
__updateState: function (event) {
var subValue = this.__getSubValue();
// called from onShow method, not actually value changed
- if (this.items.length==0 && this.isFirstAjax) {
- callAjax.call(this, event, subValue);
+ if (this.items.length==0 && subValue.length>=this.options.minChars && this.isFirstAjax) {
+ this.options.ajaxMode && callAjax.call(this, event, subValue);
}
return;
},
@@ -380,13 +374,11 @@
//rf.getDomElement(this.fieldId).focus();
},
__onShow: function (event) {
- if (event.which != rf.KEYS.BACKSPACE) {
- if(this.items && this.items.length>0){
- if (this.index!=0 && this.options.selectFirst) {
- selectItem.call(this, 0);
- }
+ if (event.which != rf.KEYS.BACKSPACE && this.items && this.items.length>0) {
+ if (this.index!=0 && this.options.selectFirst) {
+ selectItem.call(this, 0);
}
- }
+ }
},
__onHide: function () {
selectItem.call(this);
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/AutocompleteBase.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/AutocompleteBase.js 2010-08-24 04:06:04 UTC (rev 18942)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/AutocompleteBase.js 2010-08-24 07:47:22 UTC (rev 18943)
@@ -65,7 +65,7 @@
var inputEventHandlers = {};
- if (this.options.buttonId && !this.options.disabled) {
+ if (this.options.buttonId) {
inputEventHandlers["mousedown"+this.namespace] = onButtonShow;
inputEventHandlers["mouseup"+this.namespace] = onSelectMouseUp;
rf.Event.bindById(this.options.buttonId, inputEventHandlers, this);
@@ -133,10 +133,10 @@
}
if (flag) {
this.currentValue = this.getInputValue();
- if(value && value.length>=this.options.minChars){
+ /*if(value && value.length>=this.options.minChars){
onShow.call(this, event);
- }
-
+ }*/ // TODO: AMarkhel: is this check needed??? for what?
+ onShow.call(this, event);
}
}
};
@@ -199,7 +199,7 @@
/*
* public API functions definition
*/
- var show = function (event, showButtonPressed) {
+ var show = function (event) {
if (!this.isVisible) {
if (this.__onBeforeShow(event)!=false) {
this.scrollElements = rf.Event.bindScrollEventHandlers(this.selectId, this.hide, this, this.namespace);
@@ -210,7 +210,7 @@
}
$(rf.getDomElement(this.selectId)).setPosition({id: this.fieldId}, {type:"DROPDOWN", offset:[0,20]}).show();
this.isVisible = true;
- this.__onShow(event, showButtonPressed);
+ this.__onShow(event);
}
}
};
15 years, 1 month
JBoss Rich Faces SVN: r18942 - in modules/docs/trunk: Component_Development_Kit_Guide/src/main/docbook/en-US and 7 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-08-24 00:06:04 -0400 (Tue, 24 Aug 2010)
New Revision: 18942
Added:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jlog-a4jlog_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-data-Data_reference_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-limitRender-Rendering_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-render-render_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richautocomplete-Defining_suggestion_values.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-Header_and_controls.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-richpopupPanel_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtoggleControl-richtoggleControl_example.xml_sample
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richaccordion-richaccordion.png
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richautocomplete-richautocomplete.png
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpopupPanel-Header_and_controls.png
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richtabPanel-richtabPanel_component.png
Removed:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpanelBar-richpanelBar.png
Modified:
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Author_Group.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Book_Info.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Component_Development_Kit_Guide.ent
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Configuration.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_a_new_component.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_components_in_other_environments.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Developer_sample.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Introduction.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Naming_conventions.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Preface.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Revision_History.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Template_tags_reference.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Unit_testing.xml
modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Using_components_in_projects.xml
modules/docs/trunk/Component_Reference/Component_Reference_chapters.txt
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Book_Info.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Component_Reference.ent
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Common_Ajax_attributes.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Containers.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Selection_and_ordering.xml
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml
modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Book_Info.xml
modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Developer_Guide.ent
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Book_Info.xml
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Introduction.xml
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.ent
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.xml
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Preface.xml
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Revision_History.xml
modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Upgrading.xml
modules/docs/trunk/bundle_docs.sh
modules/docs/trunk/parent/pom.xml
Log:
Merged changes for M2
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Author_Group.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Author_Group.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Author_Group.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE authorgroup PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<authorgroup>
<author>
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Book_Info.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Book_Info.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Book_Info.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,12 +1,10 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE bookinfo PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<bookinfo id="book-Component_Development_Kit_Guide-Component_Development_Kit_Guide">
<title>Component Development Kit Guide</title>
- <subtitle>Developing custom components for use in RichFaces &VERSIONLONG;<remark> (draft)</remark>
+ <subtitle>Developing custom components for use in RichFaces 4<remark> (draft)</remark>
projects</subtitle>
<productname>RichFaces</productname>
<productnumber>4.0</productnumber>
@@ -14,7 +12,7 @@
<pubsnumber>1</pubsnumber>
<abstract>
<para>This book details how to use the RichFaces Component Development
-Kit to create custom components for use with the RichFaces &VERSION;
+Kit to create custom components for use with the RichFaces 4
framework.</para>
</abstract>
<corpauthor>
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Component_Development_Kit_Guide.ent
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Component_Development_Kit_Guide.ent 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Component_Development_Kit_Guide.ent 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,6 +1,5 @@
<!ENTITY PRODUCT "RichFaces">
<!ENTITY VERSION "4.0">
-<!ENTITY VERSIONLONG "4.0.0.ALPHA2">
<!ENTITY BOOKID "Component_Development_Kit_Guide">
<!ENTITY HOLDER "Red Hat">
<!ENTITY YEAR "2009">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Configuration.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Configuration.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Configuration.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Component_Development_Kit_Guide-Configuration">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_a_new_component.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_a_new_component.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_a_new_component.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Component_Development_Kit_Guide-Creating_a_new_component">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_components_in_other_environments.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_components_in_other_environments.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Creating_components_in_other_environments.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Component_Development_Kit_Guide-Creating_components_in_other_environments">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Developer_sample.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Developer_sample.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Developer_sample.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Component_Development_Kit_Guide-Developer_sample">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Introduction.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Introduction.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Introduction.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Component_Development_Kit_Guide-Introduction">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Naming_conventions.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Naming_conventions.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Naming_conventions.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<appendix id="appe-Component_Development_Kit_Guide-Naming_conventions">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Preface.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Preface.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Preface.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<preface id="pref-Component_Development_Kit_Guide-Preface">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Revision_History.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Revision_History.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Revision_History.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<appendix id="appe-Component_Development_Kit_Guide-Revision_History">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Template_tags_reference.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Template_tags_reference.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Template_tags_reference.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<appendix id="appe-Component_Development_Kit_Guide-Template_tags_reference">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Unit_testing.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Unit_testing.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Unit_testing.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Component_Development_Kit_Guide-Unit_testing">
Modified: modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Using_components_in_projects.xml
===================================================================
--- modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Using_components_in_projects.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Development_Kit_Guide/src/main/docbook/en-US/Using_components_in_projects.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Component_Development_Kit_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Component_Development_Kit_Guide-Using_components_in_projects">
Modified: modules/docs/trunk/Component_Reference/Component_Reference_chapters.txt
===================================================================
--- modules/docs/trunk/Component_Reference/Component_Reference_chapters.txt 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/Component_Reference_chapters.txt 2010-08-24 04:06:04 UTC (rev 18942)
@@ -54,8 +54,8 @@
- chap-Component_Reference-Panels_and_containers
x- rich:modalPanel
-xx rich:panel
-xx rich:panelBar
+-- rich:panel
+-- rich:panelBar
xx rich:panelBarItem
x- rich:simpleTogglePanel
-- rich:tabPanel
@@ -68,11 +68,11 @@
-- rich:column
-- rich:columnGroup
-- rich:columns
-x- rich:dataDefinitionList
+-- rich:dataDefinitionList
x- rich:dataFilterSlider
-- rich:dataGrid
-x- rich:dataList
-x- rich:dataOrderedList
+-- rich:dataList
+-- rich:dataOrderedList
xx rich:dataScroller
-- rich:dataTable
-- rich:extendedDataTable
@@ -117,7 +117,7 @@
x chap-Component_Reference-Layout_and_appearance
xx rich:effect
-xx rich:jQuery
+-- rich:jQuery
xx rich:separator
xx rich:spacer
xx rich:page
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Book_Info.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Book_Info.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Book_Info.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -3,7 +3,7 @@
]>
<bookinfo id="book-Component_Reference-Component_Reference">
<title>Component Reference</title>
- <subtitle>A reference guide to the components of the RichFaces 4.0.0<remark> (draft)</remark>
+ <subtitle>A reference guide to the components of the RichFaces 4<remark> (draft)</remark>
framework</subtitle>
<productname>RichFaces</productname>
<productnumber>4.0</productnumber>
@@ -28,8 +28,12 @@
<year>&YEAR;</year>
<holder>&HOLDER;</holder>
</copyright>
- <!-- FOR PUBLICAN --><xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude"><!-- FOR JDOCBOOK: --><xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include href="fallback_content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
- </xi:fallback>
+ <!-- FOR PUBLICAN -->
+ <xi:include href="Common_Content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <!-- FOR JDOCBOOK -->
+ <xi:fallback xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="fallback_content/Legal_Notice.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </xi:fallback>
</xi:include>
<xi:include href="Author_Group.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
</bookinfo>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Component_Reference.ent
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Component_Reference.ent 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/Component_Reference.ent 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,6 +1,5 @@
<!ENTITY PRODUCT "RichFaces">
<!ENTITY VERSION "4.0">
-<!ENTITY VERSIONLONG "4.0.0.ALPHA2">
<!ENTITY BOOKID "Component_Reference">
<!ENTITY HOLDER "Red Hat">
<!ENTITY YEAR "2009">
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Actions.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -8,70 +8,80 @@
</para>
<section id="sect-Component_Reference-Actions-a4jactionParam">
<title><sgmltag><a4j:actionParam></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.ActionParameter</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HTMLActionParameter</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:actionParam></sgmltag> behavior combines the functionality of the JavaServer Faces (<acronym>JSF</acronym>) components <sgmltag><f:param></sgmltag> and <sgmltag><f:actionListener></sgmltag>.
</para>
- <para>
- Basic usage of the <sgmltag><a4j:actionParam></sgmltag> requires three main attributes:
- </para>
- <itemizedlist>
- <listitem>
+
+ <section id="sect-Component_Reference-a4jactionParam-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ Basic usage of the <sgmltag><a4j:actionParam></sgmltag> requires three main attributes:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <varname>name</varname>, for the name of the parameter;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <varname>value</varname>, for the initial value of the parameter; and
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <varname>assignTo</varname>, for defining the bean property. The property will be updated if the parent command component performs an action event during the <emphasis>Process Request</emphasis> phase.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ <xref linkend="exam-Component_Reference-a4jactionParam-a4jactionParam_example" /> shows a simple implementation along with the accompanying managed bean.
+ </para>
+ <example id="exam-Component_Reference-a4jactionParam-a4jactionParam_example">
+ <title><sgmltag><a4j:actionParam></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jactionParam-a4jactionParam_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <programlisting language="Java" role="JAVA"><xi:include href="extras/exam-Component_Reference-a4jactionParam-a4jactionParam_example.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- <varname>name</varname>, for the name of the parameter;
+ When the <guibutton>Set name to Alex</guibutton> button is pressed, the application sets the <varname>name</varname> parameter of the bean to <literal>Alex</literal>, and displays the name in the output field.
</para>
- </listitem>
- <listitem>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-a4jactionParam-Interoperability">
+ <title>Interoperability</title>
+ <para>
+ The <sgmltag><a4j:actionParam></sgmltag> behavior can be used with non-Ajax components in addition to Ajax components. In this way, data model values can be updated without an JavaScript code on the server side.
+ </para>
+ <para>
+ The <varname>converter</varname> attribute can be used to specify how to convert the value before it is submitted to the data model. The property is assigned the new value during the <emphasis>Update Model</emphasis> phase.
+ </para>
+ <note>
+ <title>Validation failure</title>
<para>
- <varname>value</varname>, for the initial value of the parameter; and
+ If the validation of the form fails, the <emphasis>Update Model</emphasis> phase will be skipped and the property will not be updated.
</para>
- </listitem>
- <listitem>
- <para>
- <varname>assignTo</varname>, for defining the bean property. The property will be updated if the parent command component performs an action event during the <emphasis>Process Request</emphasis> phase.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- <xref linkend="exam-Component_Reference-a4jactionParam-a4jactionParam_example" /> shows a simple implementation along with the accompanying managed bean. When the <guibutton>Set name to Alex</guibutton> button is pressed, the application sets the <varname>name</varname> parameter of the bean to <literal>Alex</literal>, and displays the name in the output field.
- </para>
- <example id="exam-Component_Reference-a4jactionParam-a4jactionParam_example">
- <title><sgmltag><a4j:actionParam></sgmltag> example</title>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-a4jactionParam-a4jactionParam_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
-
-<programlisting language="Java" role="JAVA">
-<xi:include href="extras/exam-Component_Reference-a4jactionParam-a4jactionParam_example.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- </example>
- <para>
- The <sgmltag><a4j:actionParam></sgmltag> behavior can be used with non-Ajax components in addition to Ajax components. In this way, data model values can be updated without an JavaScript code on the server side.
- </para>
- <para>
- The <varname>converter</varname> attribute can be used to specify how to convert the value before it is submitted to the data model. The property is assigned the new value during the <emphasis>Update Model</emphasis> phase.
- </para>
- <note>
- <title>Validation failure</title>
+ </note>
<para>
- If the validation of the form fails, the <emphasis>Update Model</emphasis> phase will be skipped and the property will not be updated.
+ Variables from JavaScript functions can be used for the <varname>value</varname> attribute. In such an implementation, the <varname>noEscape</varname> attribute should be set to <literal>true</literal>. Using <code>noEscape="true"</code>, the <varname>value</varname> attribute can contain any JavaScript expression or JavaScript function invocation, and the result will be sent to the server as the <varname>value</varname> attribute.
</para>
- </note>
- <para>
- Variables from JavaScript functions can be used for the <varname>value</varname> attribute. In such an implementation, the <varname>noEscape</varname> attribute should be set to <literal>true</literal>. Using <code>noEscape="true"</code>, the <varname>value</varname> attribute can contain any JavaScript expression or JavaScript function invocation, and the result will be sent to the server as the <varname>value</varname> attribute.
- </para>
+ </section>
+
+ <section id="sect-Component_Reference-a4jactionParam-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.ActionParameter</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HTMLActionParameter</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
</section>
<!-- FIXME not in M2 -->
@@ -109,28 +119,9 @@
<section id="sect-Component_Reference-Actions-a4jcommandButton">
<title><sgmltag><a4j:commandButton></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.CommandButton</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxCommandButton</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>javax.faces.Command</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxCommandButtonRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
+ <para>
+ The <sgmltag><a4j:commandButton></sgmltag> is similar to the JavaServer Faces (<acronym>JSF</acronym>) component <sgmltag><h:commandButton></sgmltag>, but additionally includes Ajax support. When the command button is clicked it submits an Ajax form, and when a response is received the command button can be dynamically rendered.
+ </para>
<figure id="figu-Component_Reference-a4jcommandButton-a4jcommandButton">
<title><sgmltag><a4j:commandButton></sgmltag></title>
<mediaobject>
@@ -144,44 +135,53 @@
</textobject>
</mediaobject>
</figure>
- <para>
- The <sgmltag><a4j:commandButton></sgmltag> is similar to the JavaServer Faces (<acronym>JSF</acronym>) component <sgmltag><h:commandButton></sgmltag>, but additionally includes Ajax support. When the command button is clicked it generates an Ajax form submit, and when a response is received the command button can be dynamically rendered.
- </para>
- <para>
- The <sgmltag><a4j:commandButton></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the button and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandButton></sgmltag> uses the <varname>onclick</varname> event instead of the <varname>onsubmit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
- </para>
- <note>
- <title>Set <code>disabledDefault="true"</code></title>
+
+ <section id="sect-Component_Reference-a4jcommandButton-Basic_usage">
+ <title>Basic usage</title>
<para>
- When attaching a JavaScript function to a <sgmltag><a4j:commandButton></sgmltag> with the help of a <sgmltag><rich:componentControl></sgmltag>, do not use the <varname>attachTo</varname> attribute of <sgmltag><rich:componentControl></sgmltag>. The attribute adds event handlers using <classname>Event.observe</classname> but <sgmltag><a4j:commandButton></sgmltag> does not include this event.
+ The <sgmltag><a4j:commandButton></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the button and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandButton></sgmltag> uses the <varname>onclick</varname> event instead of the <varname>onsubmit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
</para>
- </note>
+ <note>
+ <title>Set <code>disabledDefault="true"</code></title>
+ <para>
+ When attaching a JavaScript function to a <sgmltag><a4j:commandButton></sgmltag> with the help of a <sgmltag><rich:componentControl></sgmltag>, do not use the <varname>attachTo</varname> attribute of <sgmltag><rich:componentControl></sgmltag>. The attribute adds event handlers using <classname>Event.observe</classname> but <sgmltag><a4j:commandButton></sgmltag> does not include this event.
+ </para>
+ </note>
+ </section>
+
+ <section id="sect-Component_Reference-a4jcommandButton-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.CommandButton</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxCommandButton</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>javax.faces.Command</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxCommandButtonRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
</section>
<section id="sect-Component_Reference-Actions-a4jcommandLink">
<title><sgmltag><a4j:commandLink></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.CommandLink</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxCommandLink</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>javax.faces.Command</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxCommandLinkRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
+ <para>
+ The <sgmltag><a4j:commandLink></sgmltag> is similar to the JavaServer Faces (<acronym>JSF</acronym>) component <sgmltag><h:commandLink></sgmltag>, but additionally includes Ajax support. When the command link is clicked it generates an Ajax form submit, and when a response is received the command link can be dynamically rendered.
+ </para>
<figure id="figu-Component_Reference-a4jcommandLink-a4jcommandLink">
<title><sgmltag><a4j:commandLink></sgmltag></title>
<mediaobject>
@@ -195,132 +195,166 @@
</textobject>
</mediaobject>
</figure>
- <para>
- The <sgmltag><a4j:commandLink></sgmltag> is similar to the JavaServer Faces (<acronym>JSF</acronym>) component <sgmltag><h:commandLink></sgmltag>, but additionally includes Ajax support. When the command link is clicked it generates an Ajax form submit, and when a response is received the command link can be dynamically rendered.
- </para>
- <para>
- The <sgmltag><a4j:commandLink></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the link and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandLink></sgmltag> uses the <varname>onclick</varname> event instead of the <varname>onsubmit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
- </para>
+
+ <section id="sect-Component_Reference-a4jcommandLink-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ The <sgmltag><a4j:commandLink></sgmltag> requires only the <varname>value</varname> and <varname>render</varname> attributes to function. The <varname>value</varname> attribute specifies the text of the link and the <varname>render</varname> attribute specifies which areas are to be updated. The <sgmltag><a4j:commandLink></sgmltag> uses the <varname>onclick</varname> event instead of the <varname>onsubmit</varname> event, but otherwise uses all common Ajax attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-a4jcommandLink-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.CommandLink</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxCommandLink</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>javax.faces.Command</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxCommandLinkRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Actions-richcomponentControl">
<title><sgmltag><rich:componentControl></sgmltag></title>
- <remark>The following reference data is taken from the old <sgmltag><rich:componentControl></sgmltag> reference. The details may be different now that the component is part of the <classname>a4j</classname> tag library.</remark>
- <itemizedlist>
- <listitem>
+ <para>
+ The <sgmltag><rich:componentControl></sgmltag> allows JavaScript API functions to be called on components after defined events. Initialization variants and activation events can be customized, and parameters can be passed to the target component.
+ </para>
+
+ <section id="sect-Component_Reference-richcomponentControl-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ The <varname>event</varname>, <varname>for</varname>, and <varname>operation</varname> attributes are all that is required to attach JavaScript functions to the parent component. The <varname>event</varname> attribute specifies the event that triggers the JavaScript API function call. The <varname>for</varname> attribute defines the target component, and the <varname>operation</varname> attribute specifies the JavaScript function to perform.
+ </para>
+ <example id="exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage">
+ <title><sgmltag><rich:componentControl></sgmltag> basic usage</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- <parameter>component-type</parameter>: <classname>org.richfaces.ComponentControl</classname>
+ The example contains a single command button, which when clicked shows the modal panel with the identifier <literal>ccModalPanelID</literal>.
</para>
- </listitem>
- <listitem>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richcomponentControl-Attaching_to_a_component">
+ <title>Attaching to a component</title>
+ <para>
+ The <varname>attachTo</varname> attribute can be used to attach the event to a component other than the parent component. If no <varname>attachTo</varname> attribute is supplied, the <sgmltag><rich:componentControl></sgmltag> component's parent is used, as in <xref linkend="exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage" />.
+ </para>
+ <example id="exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component">
+ <title>Attaching <sgmltag><rich:componentControl></sgmltag> to a component</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlComponentControl</classname>
+ In the example, the <literal>onclick</literal> event of the component with the identifier <literal>ccCalendarID</literal> will trigger the <literal>Expand</literal> operation for the component with the identifier <literal>doExpandCalendarID</literal>.
</para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.richfaces.ComponentControl</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.richfaces.ComponentControlRenderer</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.ComponentControlTag</classname>
- </para>
- </listitem>
- </itemizedlist>
- <para>
- The <sgmltag><rich:componentControl></sgmltag> allows JavaScript API functions to be called on components after defined events. Initialization variants and activation events can be customized, and parameters can be passed to the target component.
- </para>
- <para>
- The <varname>event</varname>, <varname>for</varname>, and <varname>operation</varname> attributes are all that is required to attach JavaScript functions to the parent component. The <varname>event</varname> attribute specifies the event that triggers the JavaScript API function call. The <varname>for</varname> attribute defines the target component, and the <varname>operation</varname> attribute specifies the JavaScript function to perform.
- </para>
- <example id="exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage">
- <title>rich:componentControl basic usage</title>
-
-<programlisting language="XML" role="XML"><h:commandButton value="Show Modal Panel">
- <!--componentControl is attached to the commandButton-->
- <rich:componentControl for="ccModalPanelID" event="onclick" operation="show"/>
-</h:commandButton>
-</programlisting>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richcomponentControl-Parameters_and_JavaScript">
+ <title>Parameters and JavaScript</title>
<para>
- The example contains a single command button, which when clicked shows the modal panel with the identifier <literal>ccModalPanelID</literal>.
+ The operation can receive parameters either through the <varname>params</varname> attribute, or by using <sgmltag><f:param></sgmltag> elements.
</para>
- </example>
- <para>
- The <varname>attachTo</varname> attribute can be used to attach the event to a component other than the parent component. If no <varname>attachTo</varname> attribute is supplied, the <sgmltag><rich:componentControl></sgmltag> component's parent is used, as in <xref linkend="exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage" />.
- </para>
- <example id="exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component">
- <title>Attaching <sgmltag><rich:componentControl></sgmltag> to a component</title>
-
-<programlisting language="XML" role="XML"><rich:componentControl attachTo="doExpandCalendarID" event="onclick" operation="Expand" for="ccCalendarID" />
-</programlisting>
+ <example id="exam-Component_Reference-richcomponentControl-Using_parameters">
+ <title>Using parameters</title>
+ <variablelist>
+ <varlistentry>
+ <term>The <varname>params</varname> attribute</term>
+ <listitem>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><sgmltag><f:param></sgmltag> elements</term>
+ <listitem>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </example>
<para>
- In the example, the <literal>onclick</literal> event of the component with the identifier <literal>ccCalendarID</literal> will trigger the <literal>Expand</literal> operation for the component with the identifier <literal>doExpandCalendarID</literal>.
+ The <varname>name</varname> attribute can be used to define a normal JavaScript function that triggers the specified operation on the target component.
</para>
- </example>
- <para>
- The operation can receive parameters either through the <varname>params</varname> attribute, or by using <sgmltag><f:param></sgmltag> elements.
- </para>
- <example id="exam-Component_Reference-richcomponentControl-Using_parameters">
- <title>Using parameters</title>
+ </section>
+
+
+ <section id="sect-Component_Reference-richcomponentControl-Timing">
+ <title>Timing</title>
+ <para>
+ The <varname>attachTiming</varname> attribute can determine the page loading phase during which the <sgmltag><rich:componentControl></sgmltag> is attached to the source component:
+ </para>
<variablelist>
<varlistentry>
- <term>The <varname>params</varname> attribute</term>
+ <term><literal>immediate</literal></term>
<listitem>
-
-<programlisting language="XML" role="XML"><rich:componentControl name="func" event="onRowClick" for="menu" operation="show" params="#{car.model}"/>
-</programlisting>
+ <para>
+ attached during execution of the script.
+ </para>
</listitem>
</varlistentry>
<varlistentry>
- <term><sgmltag><f:param></sgmltag> elements</term>
+ <term><literal>onavailable</literal></term>
<listitem>
-
-<programlisting language="XML" role="XML"><rich:componentControl event="onRowClick" for="menu" operation="show">
- <f:param value="#{car.model}" name="model"/>
-</rich:componentControl>
-</programlisting>
+ <para>
+ attached after the target component is initialized.
+ </para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><literal>onload</literal></term>
+ <listitem>
+ <para>
+ attached after the page is loaded.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
- </example>
- <para>
- The <varname>name</varname> attribute can be used to define a normal JavaScript function that triggers the specified operation on the target component.
- </para>
- <para>
- The <varname>attachTiming</varname> attribute can determine the page loading phase during which the <sgmltag><rich:componentControl></sgmltag> is attached to the source component:
- </para>
- <variablelist>
- <varlistentry>
- <term><literal>immediate</literal></term>
+ </section>
+
+ <section id="sect-Component_Reference-richcomponentControl-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
<listitem>
<para>
- attached during execution of the script.
+ <parameter>component-type</parameter>: <classname>org.richfaces.ComponentControl</classname>
</para>
</listitem>
- </varlistentry>
- <varlistentry>
- <term><literal>onavailable</literal></term>
<listitem>
<para>
- attached after the target component is initialized.
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlComponentControl</classname>
</para>
</listitem>
- </varlistentry>
- <varlistentry>
- <term><literal>onload</literal></term>
<listitem>
<para>
- attached after the page is loaded.
+ <parameter>component-family</parameter>: <classname>org.richfaces.ComponentControl</classname>
</para>
</listitem>
- </varlistentry>
- </variablelist>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.ComponentControlRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.ComponentControlTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<!-- TODO not in M2 -->
@@ -370,146 +404,149 @@
<section id="sect-Component_Reference-Actions-a4jjsFunction">
<title><sgmltag><a4j:jsFunction></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Function</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlajaxFunction</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.ajaxFunction</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.ajaxFunctionRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:jsFunction></sgmltag> component allows Ajax requests to be performed directly from JavaScript code, and server-side data to be invoked and returned in JavaScript Object Notation (<acronym>JSON</acronym>) format to use in client-side JavaScript calls.
</para>
- <para>
- The <sgmltag><a4j:jsFunction></sgmltag> component has all the common Ajax action attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />; the <varname>action</varname> and <varname>actionListener</varname> attributes can be invoked and parts of the page can be re-rendered after a successful call to the JavaScript function. <xref linkend="exam-Component_Reference-a4jjsFunction-a4jjsFunction_example" /> shows how an Ajax request can be initiated from the JavaScript and a partial page update performed. The JavaScript function can be invoked with the data returned by the Ajax response.
- </para>
- <example id="exam-Component_Reference-a4jjsFunction-a4jjsFunction_example">
- <title><sgmltag><a4j:jsFunction></sgmltag> example</title>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-a4jjsFunction-a4jjsFunction_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- </example>
- <para>
- The <sgmltag><a4j:jsFunction></sgmltag> component allows the use of the <sgmltag><a4j:actionParam></sgmltag> component or the JavaServer Faces <sgmltag><f:param></sgmltag> component to pass any number of parameters for the JavaScript function.
- </para>
- <para>
- The <sgmltag><a4j:jsFunction></sgmltag> component is similar to the <sgmltag><a4j:commandButton></sgmltag> component, but it can be activated from the JavaScript code. This allows some server-side functionality to be invoked and the returned data to subsequently be used in a JavaScript function invoked by the <varname>oncomplete</varname> event attribute. In this way, the <sgmltag><a4j:jsFunction></sgmltag> component can be used instead of the <sgmltag><a4j:commandButton></sgmltag> component.
- </para>
+
+ <section id="sect-Component_Reference-a4jjsFunction-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ The <sgmltag><a4j:jsFunction></sgmltag> component has all the common Ajax action attributes as listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />; the <varname>action</varname> and <varname>actionListener</varname> attributes can be invoked and parts of the page can be re-rendered after a successful call to the JavaScript function. <xref linkend="exam-Component_Reference-a4jjsFunction-a4jjsFunction_example" /> shows how an Ajax request can be initiated from the JavaScript and a partial page update performed. The JavaScript function can be invoked with the data returned by the Ajax response.
+ </para>
+ <example id="exam-Component_Reference-a4jjsFunction-a4jjsFunction_example">
+ <title><sgmltag><a4j:jsFunction></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jjsFunction-a4jjsFunction_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-a4jjsFunction-Parameters_and_JavaScript">
+ <title>Parameters and JavaScript</title>
+ <para>
+ The <sgmltag><a4j:jsFunction></sgmltag> component allows the use of the <sgmltag><a4j:actionParam></sgmltag> component or the JavaServer Faces <sgmltag><f:param></sgmltag> component to pass any number of parameters for the JavaScript function.
+ </para>
+ <para>
+ The <sgmltag><a4j:jsFunction></sgmltag> component is similar to the <sgmltag><a4j:commandButton></sgmltag> component, but it can be activated from the JavaScript code. This allows some server-side functionality to be invoked and the returned data to subsequently be used in a JavaScript function invoked by the <varname>oncomplete</varname> event attribute. In this way, the <sgmltag><a4j:jsFunction></sgmltag> component can be used instead of the <sgmltag><a4j:commandButton></sgmltag> component.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-a4jjsFunction-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Function</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlajaxFunction</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.ajaxFunction</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.ajaxFunctionRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Actions-a4jpoll">
<title><sgmltag><a4j:poll></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Poll</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.AjaxPoll</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.AjaxPoll</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxPollRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:poll></sgmltag> component allows periodical sending of Ajax requests to the server. It is used for repeatedly updating a page at specific time intervals.
</para>
- <para>
- The <varname>interval</varname> attribute specifies the time in milliseconds between requests. The default for this value is 1000 ms (1 second).
- </para>
- <para>
- The <varname>timeout</varname> attribute defines the response waiting time in milliseconds. If a response isn't received within the timeout period, the connection is aborted and the next request is sent. By default, the timeout is not set.
- </para>
- <para>
- The <sgmltag><a4j:poll></sgmltag> component can be enabled and disabled using the <varname>enabled</varname> attribute. Using Expression Language (<acronym>EL</acronym>), the <varname>enabled</varname> attribute can point to a bean property to apply a particular attribute value.
- </para>
+
+ <section id="sect-Component_Reference-a4jpoll-Timing_options">
+ <title>Timing options</title>
+ <para>
+ The <varname>interval</varname> attribute specifies the time in milliseconds between requests. The default for this value is 1000 ms (1 second).
+ </para>
+ <para>
+ The <varname>timeout</varname> attribute defines the response waiting time in milliseconds. If a response isn't received within the timeout period, the connection is aborted and the next request is sent. By default, the timeout is not set.
+ </para>
+ <para>
+ The <sgmltag><a4j:poll></sgmltag> component can be enabled and disabled using the <varname>enabled</varname> attribute. Using Expression Language (<acronym>EL</acronym>), the <varname>enabled</varname> attribute can point to a bean property to apply a particular attribute value.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-a4jpoll-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Poll</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.AjaxPoll</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.AjaxPoll</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxPollRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Actions-a4jpush">
<title><sgmltag><a4j:push></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Push</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.AjaxPush</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.AjaxPush</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxPushRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:push></sgmltag> component periodically performs an Ajax request to the server, simulating "push" functionality. While it is not strictly pushing updates, the request is made to minimal code only, not to the <acronym>JSF</acronym> tree, checking for the presence of new messages in the queue. The request registers <classname>EventListener</classname>, which receives messages about events, but does not poll registered beans. If a message exists, a complete request is performed. This is different from the <sgmltag><a4j:poll></sgmltag> component, which performs a full request at every interval.
</para>
- <para>
- The <varname>interval</varname> attribute specifies the time in milliseconds between checking for messages. The default for this value is 1000 ms (1 second). It is possible to set the interval value to <literal>0</literal>, in which case it is constantly checking for new messages.
- </para>
- <para>
- The <varname>timeout</varname> attribute defines the response waiting time in milliseconds. If a response isn't received within the timeout period, the connection is aborted and the next request is sent. By default, the timeout is not set. In combination with the <varname>interval</varname> attribute, checks for the queue state can short polls or long connections.
- </para>
+
+ <section id="sect-Component_Reference-a4jpush-Timing_options">
+ <title>Timing options</title>
+ <para>
+ The <varname>interval</varname> attribute specifies the time in milliseconds between checking for messages. The default for this value is 1000 ms (1 second). It is possible to set the interval value to <literal>0</literal>, in which case it is constantly checking for new messages.
+ </para>
+ <para>
+ The <varname>timeout</varname> attribute defines the response waiting time in milliseconds. If a response isn't received within the timeout period, the connection is aborted and the next request is sent. By default, the timeout is not set. In combination with the <varname>interval</varname> attribute, checks for the queue state can short polls or long connections.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-a4jpush-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Push</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.AjaxPush</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.AjaxPush</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxPushRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Actions-a4jajax">
<title><sgmltag><a4j:ajax></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Ajax</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxSupport</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.Ajax</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxSupportRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:ajax></sgmltag> component allows Ajax capability to be added to any non-Ajax component. It is placed as a direct child to the component that requires Ajax support. The <sgmltag><a4j:ajax></sgmltag> component uses the common attributes listed in <xref linkend="chap-Component_Reference-Common_Ajax_attributes" />.
</para>
@@ -521,15 +558,34 @@
</note>
<example id="exam-Component_Reference-a4jajax-a4jajax_example">
<title><sgmltag><a4j:ajax></sgmltag> example</title>
-
-<programlisting language="XML" role="XML"><h:panelGrid columns="2">
- <h:inputText id="myinput" value="#{userBean.name}">
- <a4j:ajax event="onkeyup" reRender="outtext" />
- </h:inputText>
- <h:outputText id="outtext" value="#{userBean.name}" />
-</h:panelGrid>
-</programlisting>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
+
+ <section id="sect-Component_Reference-a4jajax-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Ajax</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxSupport</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.Ajax</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxSupportRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
</chapter>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Common_Ajax_attributes.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Common_Ajax_attributes.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Common_Ajax_attributes.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -18,23 +18,7 @@
</para>
<example id="exam-Component_Reference-render-render_example">
<title>render example</title>
-
-<programlisting language="XML" role="XML">
-<h:form id="form1">
- <a4j:commandButton value="Basic reference" render="infoBlock, infoBlock2" />
- <a4j:commandButton value="Specific reference" render=":infoBlock,:sv:infoBlock2" />
-</h:form>
-
-<h:panelGrid id="infoBlock">
- ...
-</h:panelGrid>
-
-<f:subview id="sv">
- <h:panelGrid id="infoBlock2">
- ...
- </h:panelGrid>
-</f:subview>
-</programlisting>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-render-render_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
<para>
The value of the <varname>render</varname> attribute can also be an expression written using JavaServer Faces' Expression Language (<acronym>EL</acronym>); this can either be a <type>Set</type>, <type>Collection</type>, <type>Array</type>, or <type>String</type>.
@@ -70,21 +54,7 @@
</para>
<example id="exam-Component_Reference-limitRender-Rendering_example">
<title>Rendering example</title>
-
-<programlisting language="XML" role="XML">
-<h:form id="form1">
- <a4j:commandButton value="Normal rendering" render="infoBlock" />
- <a4j:commandButton value="Limited rendering" render="infoBlock" limitRender="true" />
-</h:form>
-
-<h:panelGrid id="infoBlock">
- ...
-</h:panelGrid>
-
-<a4j:outputPanel ajaxRendered="true">
- <h:messages />
-</a4j:outputPanel>
-</programlisting>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-limitRender-Rendering_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
</section>
@@ -230,10 +200,7 @@
</para>
<example id="exam-Component_Reference-data-Data_reference_example">
<title>Data reference example</title>
-
-<programlisting language="XML" role="XML">
-<a4j:commandButton value="Update" data="#{userBean.name}" oncomplete="showTheName(data.name)" />
-</programlisting>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-data-Data_reference_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
</section>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Containers.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Containers.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Containers.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -59,110 +59,117 @@
<section id="sect-Component_Reference-Containers-a4jinclude">
<title><sgmltag><a4j:include></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Include</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.Include</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>javax.faces.Output</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxIncludeRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:include></sgmltag> component allows one view to be included as part of another page. This is useful for applications where multiple views might appear on the one page, with navigation between the views. Views can use partial page navigation in Ajax mode, or standard <acronym>JSF</acronym> navigation for navigation between views.
</para>
- <para>
- The <varname>viewId</varname> attribute is required to reference the resource that will be included as a view on the page. It uses a full context-relative path to point to the resource, similar to the paths used for the <sgmltag><from-view-id></sgmltag> and <sgmltag><to-view-id></sgmltag> tags in the <filename>faces-config.xml</filename> <acronym>JSF</acronym> navigation rules.
- </para>
- <example id="exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude">
- <title>A wizard using <sgmltag><a4j:include></sgmltag></title>
+
+ <section id="sect-Component_Reference-a4jinclude-Basic_usage">
+ <title>Basic usage</title>
<para>
- The page uses <sgmltag><a4j:include></sgmltag> to include the first step of the wizard:
+ The <varname>viewId</varname> attribute is required to reference the resource that will be included as a view on the page. It uses a full context-relative path to point to the resource, similar to the paths used for the <sgmltag><from-view-id></sgmltag> and <sgmltag><to-view-id></sgmltag> tags in the <filename>faces-config.xml</filename> <acronym>JSF</acronym> navigation rules.
</para>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <para>
- The first step is fully contained in a separate file, <filename>wstep1.xhtml</filename>. Subsequent steps are set up similarly with additional <guibutton>Previous</guibutton> buttons.
- </para>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude-1.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <para>
- The navigation is defined in the <filename>faces-config.xml</filename> configuration file:
- </para>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude-2.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- </example>
- </section>
-
- <section id="sect-Component_Reference-Containers-a4joutputPanel">
- <title><sgmltag><a4j:outputPanel></sgmltag></title>
- <itemizedlist>
- <listitem>
+ <example id="exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude">
+ <title>A wizard using <sgmltag><a4j:include></sgmltag></title>
<para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.OutputPanel</classname>
+ The page uses <sgmltag><a4j:include></sgmltag> to include the first step of the wizard:
</para>
- </listitem>
- <listitem>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxOutputPanel</classname>
+ The first step is fully contained in a separate file, <filename>wstep1.xhtml</filename>. Subsequent steps are set up similarly with additional <guibutton>Previous</guibutton> buttons.
</para>
- </listitem>
- <listitem>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude-1.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
- <parameter>component-family</parameter>: <classname>javax.faces.Panel</classname>
+ The navigation is defined in the <filename>faces-config.xml</filename> configuration file:
</para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxOutputPanelRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jinclude-A_wizard_using_a4jinclude-2.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-a4jinclude-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Include</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.Include</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>javax.faces.Output</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxIncludeRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+
+ <section id="sect-Component_Reference-Containers-a4joutputPanel">
+ <title><sgmltag><a4j:outputPanel></sgmltag></title>
<para>
The <sgmltag><a4j:outputPanel></sgmltag> component is used to group together components in to update them as a whole, rather than having to specify the components individually.
</para>
- <para>
- The <varname>layout</varname> attribute can be used to determine how the component is rendered in <acronym>HTML</acronym>:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <code>layout="inline"</code> is the default behavior, which will render the component as a pair of <sgmltag><span></sgmltag> tags containing the child components.
- </para>
- </listitem>
- <listitem>
- <para>
- <code>layout="block"</code> will render the component as a pair of <sgmltag><div></sgmltag> tags containing the child components, which will use any defined <sgmltag><div></sgmltag> element styles.
- </para>
- </listitem>
- <listitem>
- <para>
- <code>layout="none"</code> will render the component as a pair of <sgmltag><span></sgmltag> tags with an identifier equal to that of a child component. If the child component is rendered then the <sgmltag><span></sgmltag> are not included, leaving no markup representing the <sgmltag><a4j:outputPanel></sgmltag> in <acronym>HTML</acronym>.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- Setting <code>ajaxRendered="true"</code> will cause the <sgmltag><a4j:outputPanel></sgmltag> to be updated with each Ajax response for the page, even when not listed explicitly by the requesting component. This can in turn be overridden by specific attributes on any requesting components.
- </para>
+
+ <section id="sect-Component_Reference-a4joutputPanel-Panel_appearance">
+ <title>Panel appearance</title>
+ <para>
+ The <varname>layout</varname> attribute can be used to determine how the component is rendered in <acronym>HTML</acronym>:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <code>layout="inline"</code> is the default behavior, which will render the component as a pair of <sgmltag><span></sgmltag> tags containing the child components.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>layout="block"</code> will render the component as a pair of <sgmltag><div></sgmltag> tags containing the child components, which will use any defined <sgmltag><div></sgmltag> element styles.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <code>layout="none"</code> will render the component as a pair of <sgmltag><span></sgmltag> tags with an identifier equal to that of a child component. If the child component is rendered then the <sgmltag><span></sgmltag> are not included, leaving no markup representing the <sgmltag><a4j:outputPanel></sgmltag> in <acronym>HTML</acronym>.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ Setting <code>ajaxRendered="true"</code> will cause the <sgmltag><a4j:outputPanel></sgmltag> to be updated with each Ajax response for the page, even when not listed explicitly by the requesting component. This can in turn be overridden by specific attributes on any requesting components.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-a4joutputPanel-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.OutputPanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxOutputPanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>javax.faces.Panel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxOutputPanelRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<!-- TODO not in M2 -->
@@ -225,34 +232,38 @@
<section id="sect-Component_Reference-Containers-a4jregion">
<title><sgmltag><a4j:region></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.AjaxRegion</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxRegion</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.AjaxRegion</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxRegionRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:region></sgmltag> component specifies a part of the document object model (<acronym>DOM</acronym>) tree to be processed on the server. The processing includes data handling during decoding, conversion, validation, and model updating. When not using <sgmltag><a4j:region></sgmltag>, the entire view functions as a region.
</para>
<para>
The whole form is still submitted to the server, but only the specified region is processed. Regions can be nested, in which case only the immediate region of the component initiating the request will be processed.
</para>
+
+ <section id="sect-Component_Reference-a4jregion-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.AjaxRegion</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxRegion</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.AjaxRegion</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxRegionRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
</chapter>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -14,40 +14,222 @@
This chapter details those components which act as panels and containers to hold groups of other components.
</para>
- <!-- TODO not in M2 -->
- <!--
- <section id="sect-Component_Reference-Panels_and_containers-richmodalPanel">
- <title><sgmltag><rich:modalPanel></sgmltag></title>
+ <!--<rich:accordion>-->
+ <section id="sect-Component_Reference-Panels_and_containers-richaccordion">
+ <title><sgmltag><rich:accordion></sgmltag></title>
<para>
- The <sgmltag><rich:modalPanel></sgmltag> component provides a modal panel or window that blocks interaction with the rest of the application while active. It can be easily positioned on the screen, dragged to a new position by the user, and re-sized.
+ The <sgmltag><rich:accordion></sgmltag> is a series of panels stacked on top of each other, each collapsed such that only the header of the panel is showing. When the header of a panel is clicked, it is expanded to show the content of the panel. Clicking on a different header will collapse the previous panel and epand the selected one. Each panel contained in a <sgmltag><rich:accordion></sgmltag> component is a <sgmltag><rich:accordionItem></sgmltag> component.
</para>
- <important>
- <title>Placement</title>
+ <figure id="figu-Component_Reference-richaccordion-richaccordion">
+ <title>A <sgmltag><rich:accordion></sgmltag> component containing three <sgmltag><rich:accordionItem></sgmltag> components</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richaccordion-richaccordion.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A <sgmltag><rich:accordion></sgmltag> component containing three <sgmltag><rich:accordionItem></sgmltag> components. Only the first panel is expanded.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+
+ <section id="sect-Component_Reference-richaccordion-Basic_usage">
+ <title>Basic usage</title>
<para>
- The <sgmltag><rich:modalPanel></sgmltag> component should always be placed outside the original <sgmltag><h:form></sgmltag>, and must include its own <sgmltag><h:form></sgmltag> if performing submissions.
+ The <sgmltag><rich:accordion></sgmltag> component requires no attributes for basic usage. The component can contain any number of <sgmltag><rich:accordionItem></sgmltag> components as children. The headers of the <sgmltag><rich:accordionItem></sgmltag> components control the expanding and collapsing when clicked. Only a single <sgmltag><rich:accordionItem></sgmltag> can be displayed at a time. Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richaccordionItem" /> for details on the <sgmltag><rich:accordionItem></sgmltag> component.
</para>
- </important>
+ </section>
+
+ <section id="sect-Component_Reference-richaccordion-Switching_panels">
+ <title>Switching panels</title>
+ <para>
+ The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>server</literal></term>
+ <listitem>
+ <para>
+ The default setting. Activation of a <sgmltag><rich:accordionItem></sgmltag> component causes the parent <sgmltag><rich:accordion></sgmltag> component to perform a common submission, completely re-rendering the page. Only one panel at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>ajax</literal></term>
+ <listitem>
+ <para>
+ Activation of a <sgmltag><rich:accordionItem></sgmltag> component causes the parent <sgmltag><rich:accordion></sgmltag> component to perform an Ajax form submission, and the content of the panel is rendered. Only one panel at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>client</literal></term>
+ <listitem>
+ <para>
+ Activation of a <sgmltag><rich:accordionItem></sgmltag> component causes the parent <sgmltag><rich:accordion></sgmltag> component to update on the client side. JavaScript changes the styles such that one panel component becomes hidden while the other is shown.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
+ <!-- TODO
+ <section id="sect-Component_Reference-richaccordion-Controlling_panel_size">
+ <title>Controlling panel size</title>
+ <para>
+ Unlike the <sgmltag><rich:panel></sgmltag> component, the size of the <sgmltag><rich:accordion></sgmltag> can be specified using <varname>width</varname> and <varname>height</varname> attributes. If unspecified, these values default to 100%.
+ </para>
+ </section>
+ -->
+
+ <section id="sect-Component_Reference-richaccordion-richaccordion_client-side_events">
+ <title><sgmltag><rich:accordion></sgmltag> client-side events</title>
+ <para>
+ In addition to the standard Ajax events and HTML events, the <sgmltag><rich:accordion></sgmltag> component uses the client-side events common to all switchable panels:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <varname>onitemchange</varname> event points to the function to perform when the switchable item is changed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onbeforeitemchange</varname> event points to the function to perform when before the switchable item is changed.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richaccordion-richaccordion_server-side_events">
+ <title><sgmltag><rich:accordion></sgmltag> server-side events</title>
+ <para>
+ The <sgmltag><rich:accordion></sgmltag> component uses the server-side events common to all switchable panels:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <varname>ItemChangeEvent</varname> event occurs on the server side when an item is changed through Ajax using the <literal>server</literal> mode. It can be processed using the <varname>ItemChangeListener</varname> attribute.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richaccordion-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.accordion</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlAccordion</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.accordion</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.accordionRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.accordionTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+
+ <!--<rich:accordionItem>-->
+ <section id="sect-Component_Reference-Panels_and_containers-richaccordionItem">
+ <title><sgmltag><rich:accordionItem></sgmltag></title>
<para>
- By default, the modal panel can be both re-sized and re-positioned by the user. The minimum possible size for the panel can be set with the These abilities can be deactivated by setting <code>resizable</code> or <code>movable</code> to <literal>false</literal> as necessary. The state of the modal panel, including size and position on screen, can be maintained and restored after submitting and reloading by setting <code>keepVisualState="true"</code>.
+ The <sgmltag><rich:accordionItem></sgmltag> component is a panel for use with the <sgmltag><rich:accordion></sgmltag> component. Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richaccordion" /> for details on the <sgmltag><rich:accordion></sgmltag> component.
</para>
- <para>
- If <code>showWhenRendered="true"</code> then the modal panel will display when the page is first loaded.
- </para>
- <example id="exam-Component_Reference-richmodalPanel-richmodalPanel_example">
- <title><sgmltag><rich:modalPanel></sgmltag> example</title>
-
-<programlisting language="XML" role="XML">
-<a onclick="Richfaces.showModalPanel('pnl');" href="#">Show ModalPanel</a>
-<a4j:form>
- <rich:modalPanel id="pnl" >
- <a onclick="Richfaces.hideModalPanel('pnl');" href="#">Hide ModalPanel</a>
- </rich:modalPanel>
-</a4j:form>
-</programlisting>
- </example>
+ <figure id="figu-Component_Reference-richaccordionItem-richaccordion">
+ <title>A <sgmltag><rich:accordion></sgmltag> component containing three <sgmltag><rich:accordionItem></sgmltag> components</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richaccordion-richaccordion.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A <sgmltag><rich:accordion></sgmltag> component containing three <sgmltag><rich:accordionItem></sgmltag> components. Only the first panel is expanded.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+
+ <section id="sect-Component_Reference-richaccordionItem-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ Basic usage of the <sgmltag><rich:accordionItem></sgmltag> component requires the <varname>label</varname> attribute, which provides the text on the panel header. The panel header is all that is visible when the accordion item is collapsed.
+ </para>
+ <para>
+ Alternatively the <literal>header</literal> facet could be used in place of the <varname>label</varname> attribute. This would allow for additional styles and custom content to be applied to the tab.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richaccordionItem-richaccordionItem_client-side_events">
+ <title><sgmltag><rich:accordionItem></sgmltag> client-side events</title>
+ <para>
+ In addition to the standard HTML events, the <sgmltag><rich:accordionItem></sgmltag> component uses the client-side events common to all switchable panel items:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <varname>onenter</varname> event points to the function to perform when the mouse enters the panel.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onleave</varname> attribute points to the function to perform when the mouse leaves the panel.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richaccordionItem-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.accordionItem</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlAccordionItem</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.accordionItem</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.accordionItemRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.accordionItemTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
- -->
+ <!--<rich:panel>-->
<section id="sect-Component_Reference-Panels_and_containers-richpanel">
<title><sgmltag><rich:panel></sgmltag></title>
<para>
@@ -81,25 +263,25 @@
<title>Adding a header</title>
<programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richpanel-Adding_a_header-0.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richpanel-Adding_a_header-1.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <para>
+ Both the examples render an identical panel.
+ </para>
+ <blockquote>
+ <figure id="figu-Component_Reference-richpanel-Adding_a_header">
+ <title>Adding a header</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richpanel-Adding_a_header.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A panel with a header that reads <phrase>"This is the panel header"</phrase> and content that reads <phrase>"This is the panel content"</phrase>.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </blockquote>
</example>
- <para>
- Both the examples render an identical panel.
- </para>
- <blockquote>
- <figure id="figu-Component_Reference-richpanel-Adding_a_header">
- <title>Adding a header</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/figu-Component_Reference-richpanel-Adding_a_header.png" format="PNG" />
- </imageobject>
- <textobject>
- <para>
- A panel with a header that reads <phrase>"This is the panel header"</phrase> and content that reads <phrase>"This is the panel content"</phrase>.
- </para>
- </textobject>
- </mediaobject>
- </figure>
- </blockquote>
</section>
<section id="sect-Component_Reference-richpanel-Reference_data">
@@ -134,65 +316,152 @@
</section>
</section>
- <section id="sect-Component_Reference-Panels_and_containers-richpanelBar">
- <title><sgmltag><rich:panelBar></sgmltag></title>
+ <!--<rich:popupPanel>-->
+ <section id="sect-Component_Reference-Panels_and_containers-richpopupPanel">
+ <title><sgmltag><rich:popupPanel></sgmltag></title>
<para>
- The <sgmltag><rich:panelBar></sgmltag> is a series of panels stacked on top of each other, each collapsed such that only the header of the panel is showing. When the header of a panel is clicked, it is expanded to show the content of the panel. Clicking on a different header will collapse the previous panel and epand the selected one. Similar controls are sometimes known as "accordion" controls. Each panel contained in a <sgmltag><rich:panelBar></sgmltag> component is a <sgmltag><rich:panelBarItem></sgmltag> component.
+ The <sgmltag><rich:popupPanel></sgmltag> component provides a pop-up panel or window that appears in front of the rest of the application. The <sgmltag><rich:popupPanel></sgmltag> component functions either as a modal window which blocks interaction with the rest of the application while active, or as a non-modal window. It can be positioned on the screen, dragged to a new position by the user, and re-sized.
</para>
- <figure id="figu-Component_Reference-richpanelBar-richpanelBar">
- <title><sgmltag><rich:panelBar></sgmltag></title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/figu-Component_Reference-richpanelBar-richpanelBar.png" format="PNG" />
- </imageobject>
- <textobject>
+
+ <section id="sect-Component_Reference-richpopupPanel-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ The <sgmltag><rich:popupPanel></sgmltag> does not require any compulsory attributes, though certain use cases require different attributes.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richpopupPanel-Showing_and_hiding_the_pop-up">
+ <title>Showing and hiding the pop-up</title>
+ <para>
+ If <code>show="true"</code> then the pop-up panel will display when the page is first loaded.
+ </para>
+ <para>
+ The <sgmltag><rich:popupPanel></sgmltag> component can be shown and hidden manually using the <code>show()</code> and <code>hide()</code> methods from the JavaScript API. These can be implemented using two different approaches:
+ </para>
+ <itemizedlist>
+ <listitem>
<para>
- A <sgmltag><rich:panelBar></sgmltag> component displaying details on different cameras. Only the first panel is expanded.
+ Using the <sgmltag><rich:componentControl></sgmltag> component. For details on the component, refer to <xref linkend="sect-Component_Reference-Actions-richcomponentControl" />.
</para>
- </textobject>
- </mediaobject>
- </figure>
+ </listitem>
+ <listitem>
+ <para>
+ Using the <code>rich:component</code> function. For details on the function, refer to <xref linkend="sect-Component_Reference-Functions-richcomponent" />.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ For explicit referencing when using the functions, the component can be given an <varname>id</varname> identifier. The component can, however, be referenced using other means, such as through a selector.
+ </para>
+ <para>
+ <xref linkend="exam-Component_Reference-richpopupPanel-richpopupPanel_example" /> demonstrates basic use of both the <sgmltag><rich:componentControl></sgmltag> component and the <code>rich:component</code> function to show and hide the <sgmltag><rich:popupPanel></sgmltag> component.
+ </para>
+ <example id="exam-Component_Reference-richpopupPanel-richpopupPanel_example">
+ <title><sgmltag><rich:popupPanel></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richpopupPanel-richpopupPanel_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ <important>
+ <title>Placement</title>
+ <para>
+ The <sgmltag><rich:popupPanel></sgmltag> component should usually be placed outside the original form, and include its own form if performing submissions. An exception to this is when using the <varname>domElementAttachment</varname> attribute, as described in <xref linkend="sect-Component_Reference-richpopupPanel-Size_and_positioning" />.
+ </para>
+ </important>
+ </section>
- <section id="sect-Component_Reference-richpanelBar-Basic_usage">
- <title>Basic usage</title>
+ <section id="sect-Component_Reference-richpopupPanel-Modal_and_non-modal_panels">
+ <title>Modal and non-modal panels</title>
<para>
- The <sgmltag><rich:panelBar></sgmltag> component requires no attributes for basic usage. The component can contain any number of <sgmltag><rich:panelBarItem></sgmltag> components as children. The headers of the <sgmltag><rich:panelBarItem></sgmltag> components control the expanding and collapsing when clicked. Only a single <sgmltag><rich:panelBarItem></sgmltag> can be displayed at a time.
+ By default, the <sgmltag><rich:popupPanel></sgmltag> appears as a modal window that blocks interaction with the other objects on the page. To implement a non-modal window instead, set <code><varname>modal</varname>="false"</code>. This will allow interaction with other objects outside the pop-up panel.
</para>
</section>
- <section id="sect-Component_Reference-richpanelBar-Controlling_panel_size">
- <title>Controlling panel size</title>
+ <section id="sect-Component_Reference-richpopupPanel-Size_and_positioning">
+ <title>Size and positioning</title>
<para>
- Unlike the <sgmltag><rich:panel></sgmltag> component, the size of the <sgmltag><rich:panelBar></sgmltag> can be specified using <varname>width</varname> and <varname>height</varname> attributes. If unspecified, these values default to 100%.
+ The pop-up panel can be both re-sized and re-positioned by the user. The minimum possible size for the panel can be set with the <varname>minWith</varname> and <varname>minHeight</varname> attributes. These abilities can be deactivated by setting <code>resizable</code> or <code>movable</code> to <literal>false</literal> as necessary.
+ <!--
+ The state of the modal panel, including size and position on screen, can be maintained and restored after submitting and reloading by setting <code>keepVisualState="true"</code>.
+ -->
</para>
+ <para>
+ The pop-up panel can be automatically sized when it is shown if the <varname>autosized</varname> attribute is set to <literal>true</literal>.
+ </para>
+ <para>
+ The <sgmltag><rich:popupPanel></sgmltag> component is usually rendered in front of any other objects on the page. This is achieved by attaching the component to the <sgmltag><body></sgmltag> element of the page, and setting a very high <emphasis>"z-index"</emphasis> (the stack order of the object). This approach is taken because relatively-positioned elements could still overlap the pop-up panel if they exist at higher levels of the <acronym>DOM</acronym> hierarchy, even if their z-index is less than the <sgmltag><rich:popupPanel></sgmltag> component. However, to avoid form limitation of the pop-up panel on pages where no such elements exist, the <sgmltag><rich:popupPanel></sgmltag> component can be reattached to its original <acronym>DOM</acronym> element by setting <varname>domElementAttachment</varname> to either <literal>parent</literal> or <literal>form</literal>.
+ </para>
+ <para>
+ Embedded objects inserted into the <acronym>HTML</acronym> with the <sgmltag><embed></sgmltag> tag will typically be rendered in front of a <sgmltag><rich:popupPanel></sgmltag> component. The <sgmltag><rich:popupPanel></sgmltag> component can be forcibly rendered in front of these objects by setting <code><varname>overlapEmbedObjects</varname>="true"</code>.
+ </para>
+ <note>
+ <title>Using <varname>overlapEmbedObjects</varname></title>
+ <para>
+ Due to the additional script processing required when using the <varname>overlapEmbedObjects</varname> attribute, applications can suffer from decreased performance. As such, <varname>overlapEmbedObjects</varname> should only be set to <literal>true</literal> when <sgmltag><embed></sgmltag> tags are being used. Do not set it to <literal>true</literal> for applications that do not require it.
+ </para>
+ </note>
</section>
- <section id="sect-Component_Reference-richpanelBar-Reference_data">
+ <section id="sect-Component_Reference-richpopupPanel-Contents_of_the_pop-up">
+ <title>Contents of the pop-up</title>
+ <para>
+ The <sgmltag><rich:popupPanel></sgmltag> component can contain any other rich component just like a normal panel.
+ </para>
+ <para>
+ Contents of the <sgmltag><rich:popupPanel></sgmltag> component which are positioned relatively may be trimmed if they extend beyond the borders of the pop-up panel. For certain in-line controls this behavior may be preferable, but for other dynamic controls it could be undesirable. If the <varname>trimOverlayedElements</varname> attribute is set to <literal>false</literal> then child components will not be trimmed if they extend beyond the borders of the pop-up panel.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richpopupPanel-Header_and_controls">
+ <title>Header and controls</title>
+ <para>
+ A panel header and associated controls can be added to the <sgmltag><rich:popupPanel></sgmltag> component through the use of facets. The <literal>header</literal> facet displays a title for the panel, and the <literal>controls</literal> facet can be customized to allow window controls such as a button for closing the pop-up. <xref linkend="exam-Component_Reference-richpopupPanel-Header_and_controls" /> demonstrates the use of the facets.
+ </para>
+ <example id="exam-Component_Reference-richpopupPanel-Header_and_controls">
+ <title>Header and controls</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richpopupPanel-Header_and_controls.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <blockquote>
+ <figure id="figu-Component_Reference-richpopupPanel-Header_and_controls">
+ <title>Header and controls</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richpopupPanel-Header_and_controls.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ The <sgmltag><rich:popupPanel></sgmltag> component, rendered with a title header and a button control for closing the pop-up.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </blockquote>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richpopupPanel-Reference_data">
<title>Reference data</title>
<itemizedlist>
<listitem>
<para>
- <parameter>component-type</parameter>: <classname>org.richfaces.panelBar</classname>
+ <parameter>component-type</parameter>: <classname>org.richfaces.popupPanel</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlPanelBar</classname>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlpopupPanel</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>component-family</parameter>: <classname>org.richfaces.panelBar</classname>
+ <parameter>component-family</parameter>: <classname>org.richfaces.popupPanel</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>renderer-type</parameter>: <classname>org.richfaces.panelBarRenderer</classname>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.popupPanelRenderer</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.panelBarTag</classname>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.popupPanelTag</classname>
</para>
</listitem>
</itemizedlist>
@@ -201,20 +470,13 @@
<!-- TODO not in M2 -->
<!--
- <section id="sect-Component_Reference-Panels_and_containers-richpanelBarItem">
- <title><sgmltag><rich:panelBarItem></sgmltag></title>
- <para>
- The <sgmltag><rich:panelBarItem></sgmltag> component is a panel for use with the <sgmltag><rich:panelBar></sgmltag> component.
- </para>
- </section>
-
<section id="sect-Component_Reference-Panels_and_containers-richsimpleTogglePanel">
<title><sgmltag><rich:simpleTogglePanel></sgmltag></title>
<para>
The <sgmltag><rich:simpleTogglePanel></sgmltag> component is a collapsible panel that shows or hides content when the header bar is activated. It is a simplified version of <sgmltag><rich:togglePanel></sgmltag> component.
</para>
<para>
- Basic usage requires only the <code>label</code> attribute to be specified, which provides the title for the header element.
+ Basic usage requires only the <varname>label</varname> attribute to be specified, which provides the title for the header element.
</para>
<para>
The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
@@ -245,125 +507,457 @@
</section>
-->
- <!-- TODO not in M2 -->
- <!--
+ <!--<rich:tab>-->
<section id="sect-Component_Reference-Panels_and_containers-richtab">
<title><sgmltag><rich:tab></sgmltag></title>
<para>
- The <sgmltag><rich:tab></sgmltag> component represents an individual tab inside a <sgmltag><rich:tabPanel></sgmltag> component, including the tab's content. Clicking on the tab header will bring its corresponding content to the front of other tabs.
+ The <sgmltag><rich:tab></sgmltag> component represents an individual tab inside a <sgmltag><rich:tabPanel></sgmltag> component, including the tab's content. Clicking on the tab header will bring its corresponding content to the front of other tabs. Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richtabPanel" /> for details on the <sgmltag><rich:tabPanel></sgmltag> component.
</para>
- <para>
- Basic usage of the <sgmltag><rich:tab></sgmltag> component requires the <code>label</code> attribute, which provides the text on the tab header. The content of the tab is then detailed inside the <sgmltag><rich:tab></sgmltag> tags.
- </para>
- <para>
- An individual tab can be disabled by setting <code>disabled="true"</code>. Disabled tabs cannot be activated or switched to.
- </para>
- <para>
- The switching mode for performing submissions can be inherited from <code>switchMode</code> attribute of the parent <sgmltag><rich:tabPanel></sgmltag> component, or set individually for each <sgmltag><rich:tab></sgmltag> component. Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richtabPanel" /> for details on the <code>switchMode</code> attribute.
- </para>
- <para>
- There are two event handlers that are unique to the <sgmltag><rich:tab></sgmltag> component. The <code>ontabenter</code> attribute points to the function to perform when the mouse enters the tab, while the <code>ontableave</code> attribute points to the function to perform when the mouse leaves the tab.
- </para>
+
+ <figure id="figu-Component_Reference-richtab-richtabPanel_component">
+ <title>A <sgmltag><rich:tabPanel></sgmltag> component containing three <sgmltag><rich:tab></sgmltag> components</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richtabPanel-richtabPanel_component.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A <sgmltag><rich:tabPanel></sgmltag> component containing three <sgmltag><rich:tab></sgmltag> components.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+
+ <section id="sect-Component_Reference-richtab-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ Basic usage of the <sgmltag><rich:tab></sgmltag> component requires the <varname>label</varname> attribute, which provides the text on the tab header. The content of the tab is then detailed inside the <sgmltag><rich:tab></sgmltag> tags.
+ </para>
+ <para>
+ Alternatively the <literal>header</literal> facet could be used in place of the <varname>label</varname> attribute. This would allow for additional styles and custom content to be applied to the tab.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richtab-Switching_tabs">
+ <title>Switching tabs</title>
+ <para>
+ The switching mode for performing submissions can be inherited from the <varname>switchMode</varname> attribute of the parent <sgmltag><rich:tabPanel></sgmltag> component, or set individually for each <sgmltag><rich:tab></sgmltag> component. Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richtabPanel" /> for details on the <varname>switchMode</varname> attribute.
+ </para>
+ <para>
+ An individual tab can be disabled by setting <code><varname>disabled</varname>="true"</code>. Disabled tabs cannot be activated or switched to.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richtab-richtab_client-side_events">
+ <title><sgmltag><rich:tab></sgmltag> client-side events</title>
+ <para>
+ In addition to the standard HTML events, the <sgmltag><rich:tab></sgmltag> component uses the client-side events common to all switchable panel items:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <varname>onenter</varname> event points to the function to perform when the mouse enters the tab.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onleave</varname> attribute points to the function to perform when the mouse leaves the tab.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richtab-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.tab</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlTab</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.tab</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.tabRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.tabTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
- -->
+ <!--<rich:tabPanel>-->
<section id="sect-Component_Reference-Panels_and_containers-richtabPanel">
<title><sgmltag><rich:tabPanel></sgmltag></title>
<para>
- The <sgmltag><rich:tabPanel></sgmltag> component provides a set of tabbed panels for displaying one panel of content at a time. The tabs can be highly customized and themed.
+ The <sgmltag><rich:tabPanel></sgmltag> component provides a set of tabbed panels for displaying one panel of content at a time. The tabs can be highly customized and themed. Each tab within a <sgmltag><rich:tabPanel></sgmltag> container is a <sgmltag><rich:tab></sgmltag> component. Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richtab" /> for further details on the <sgmltag><rich:tab></sgmltag> component.
</para>
+ <figure id="figu-Component_Reference-richtabPanel-richtabPanel_component">
+ <title>A <sgmltag><rich:tabPanel></sgmltag> component containing three <sgmltag><rich:tab></sgmltag> components</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richtabPanel-richtabPanel_component.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A <sgmltag><rich:tabPanel></sgmltag> component containing three <sgmltag><rich:tab></sgmltag> components.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
<note>
<title>Form elements required</title>
<para>
- All <sgmltag><rich:tabPanel></sgmltag> components should be wrapped in a form element so that content is correctly submitted.
+ All <sgmltag><rich:tabPanel></sgmltag> components should be wrapped in a form element so that the contents of the tab are processed correctly during a tab change in either <literal>ajax</literal> or <literal>server</literal> mode.
</para>
+ <para>
+ Alternatively, the contents of a <sgmltag><rich:tab></sgmltag> component within the <sgmltag><rich:tabPanel></sgmltag> component could be wrapped in a form element, such that they will be processed using the inner submitting component only. In this case, the <sgmltag><rich:tabPanel></sgmltag> component will automatically add form tags around the tab's contents, and the contents will not be processed during switching.
+ </para>
</note>
- <section id="sect-Component_Reference-richtabPanel-Basic_usage">
- <title>Basic usage</title>
+
+ <section id="sect-Component_Reference-richtabPanel-Switching_tabs">
+ <title>Switching panels</title>
<para>
The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
</para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>server</literal></term>
+ <listitem>
+ <para>
+ The default setting. Activation of a <sgmltag><rich:tab></sgmltag> component causes the parent <sgmltag><rich:tabPanel></sgmltag> component to perform a common submission, completely re-rendering the page. Only one tab at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>ajax</literal></term>
+ <listitem>
+ <para>
+ Activation of a <sgmltag><rich:tab></sgmltag> component causes the parent <sgmltag><rich:tabPanel></sgmltag> component to perform an Ajax form submission, and the content of the tab is rendered. Only one tab at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>client</literal></term>
+ <listitem>
+ <para>
+ Activation of a <sgmltag><rich:tab></sgmltag> component causes the parent <sgmltag><rich:tabPanel></sgmltag> component to update on the client side. JavaScript changes the styles such that one tab becomes hidden while the other is shown.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ The <code>activeItem</code> attribute holds the active tab name.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richtabPanel-Tab_position_and_alignment">
+ <title>Tab position and alignment</title>
+ <para>
+ The tab headers, used for switching between the tabs, can be positioned along any edge of the panel by using the <varname>headerPosition</varname> attribute. The possible values for the <varname>headerPosition</varname> attribute are as follows:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>top</literal></term>
+ <listitem>
+ <para>
+ The tab headers are positioned along the top of the panel. This is the default position.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>left</literal></term>
+ <listitem>
+ <para>
+ The tab headers are positioned along the left edge of the panel.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>right</literal></term>
+ <listitem>
+ <para>
+ The tab headers are positioned along the right edge of the panel.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>bottom</literal></term>
+ <listitem>
+ <para>
+ The tab headers are positioned along the bottom of the panel.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ <para>
+ The tab headers themselves can be aligned using the <code>headerAlignment</code> attribute. The possible values for the <varname>headerAlignment</varname> attribute are as follows:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>top</literal></term>
+ <listitem>
+ <para>
+ The tab headers are aligned to the top of the tab header position.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>left</literal></term>
+ <listitem>
+ <para>
+ The tab headers are aligned to the left of the tab header position. This is the default alignment.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>right</literal></term>
+ <listitem>
+ <para>
+ The tab headers are aligned to the right of the tab header position.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>bottom</literal></term>
+ <listitem>
+ <para>
+ The tab headers are aligned to the bottom of the tab header position.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>center</literal></term>
+ <listitem>
+ <para>
+ The tab headers are aligned in the center of the tab header position.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
+ <section id="sect-Component_Reference-richtabPanel-richtabPanel_client-side_events">
+ <title><sgmltag><rich:tabPanel></sgmltag> client-side events</title>
+ <para>
+ In addition to the standard Ajax events and HTML events, the <sgmltag><rich:tabPanel></sgmltag> component uses the client-side events common to all switchable panels:
+ </para>
<itemizedlist>
<listitem>
<para>
- <literal>server</literal>, the default setting, which causes the <sgmltag><rich:tabPanel></sgmltag> component to perform a common submission, completely re-rendering the page. Only one panel at a time is uploaded to the client side.
+ The <varname>onitemchange</varname> event points to the function to perform when the switchable item is changed.
</para>
</listitem>
<listitem>
<para>
- <literal>ajax</literal>, which causes the <sgmltag><rich:tabPanel></sgmltag> component to perform an Ajax form submission, and the content of the panel is rendered. Only one panel at a time is uploaded to the client side.
+ The <varname>onbeforeitemchange</varname> event points to the function to perform when before the switchable item is changed.
</para>
</listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richtabPanel-richtabPanel_server-side_events">
+ <title><sgmltag><rich:tabPanel></sgmltag> server-side events</title>
+ <para>
+ The <sgmltag><rich:tabPanel></sgmltag> component uses the server-side events common to all switchable panels:
+ </para>
+ <itemizedlist>
<listitem>
<para>
- <literal>client</literal>, which causes <sgmltag><rich:tabPanel></sgmltag> components to update on the client side, re-rendering themselves and any additional components listed with the <code>render</code> attribute.
+ The <varname>ItemChangeEvent</varname> event occurs on the server side when an item is changed through Ajax using the <literal>server</literal> mode. It can be processed using the <varname>ItemChangeListener</varname> attribute.
</para>
</listitem>
</itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richtabPanel-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.tabPanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlTabPanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.tabPanel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.tabPanelRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.tabPanelTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ </section>
+
+ <!--<rich:toggleControl>-->
+ <section id="sect-Component_Reference-Panels_and_containers-richtoggleControl">
+ <title><sgmltag><rich:toggleControl></sgmltag></title>
+ <para>
+ The <sgmltag><rich:toggleControl></sgmltag> behavior can be attached to any interface component. It works with a <sgmltag><rich:togglePanel></sgmltag> component to switch between different <sgmltag><rich:togglePanelItem></sgmltag> components.
+ </para>
+ <para>
+ Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richtogglePanel" /> and <xref linkend="sect-Component_Reference-Panels_and_containers-richtogglePanelItem" /> for details on how to use the components together.
+ </para>
+
+ <section id="sect-Component_Reference-richtoggleControl-Basic_usage">
+ <title>Basic usage</title>
<para>
- The <code>selectedTab</code> attribute holds the active tab name.
+ The <sgmltag><rich:toggleControl></sgmltag> can be used to switch through <sgmltag><rich:togglePanelItem></sgmltag> components in a <sgmltag><rich:togglePanel></sgmltag> container. If the <sgmltag><rich:toggleControl></sgmltag> component is positioned inside a <sgmltag><rich:togglePanel></sgmltag> component, no attributes need to be defined, as the control is assumed to switch through the <sgmltag><rich:togglePanelItem></sgmltag> components of its parent.
</para>
+ <para>
+ A <sgmltag><rich:toggleControl></sgmltag> component can be located outside the <sgmltag><rich:togglePanel></sgmltag> component it needs to switch. Where this is the case, the <sgmltag><rich:togglePanel></sgmltag> is identified using the <varname>activePanel</varname> attribute. the Cycling through components requires the <varname>for</varname> attribute, which points to the <varname>id</varname> identifier of the <sgmltag><rich:togglePanel></sgmltag> that it controls.
+ </para>
</section>
- <section id="sect-Component_Reference-richtabPanel-Tab_alignment">
- <title>Tab alignment</title>
+ <section id="sect-Component_Reference-richtoggleControl-Specifying_the_next_state">
+ <title>Specifying the next state</title>
<para>
- The tabs themselves can be aligned using the <code>headerAlignment</code> attribute. The attribute can be set to <code>left</code>, <code>center</code>, or <code>right</code>, aligning the header tabs to the left, center, or right of the top edge of the panel respectively. If no alignment is specified, left-alignment is the default behavior.
+ The <sgmltag><rich:toggleControl></sgmltag> component will cycle through <sgmltag><rich:togglePanelItem></sgmltag> components in the order they are defined within the view. However, the next item to switch to can be explicitly defined by including a <sgmltag><rich:toggleControl></sgmltag> component within a <sgmltag><rich:togglePanelItem></sgmltag> and using the <varname>targetItem</varname> attribute. The <varname>targetItem</varname> attribute points to the <sgmltag><rich:togglePanelItem></sgmltag> to switch to when the state is next changed. <xref linkend="exam-Component_Reference-richtoggleControl-richtoggleControl_example" /> demonstrates how to specify the next switchable state in this way.
</para>
+ <example id="exam-Component_Reference-richtoggleControl-richtoggleControl_example">
+ <title><sgmltag><rich:toggleControl></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richtoggleControl-richtoggleControl_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
</section>
- <section id="sect-Component_Reference-richtabPanel-Reference_data">
+ <section id="sect-Component_Reference-richtoggleControl-Reference_data">
<title>Reference data</title>
<itemizedlist>
<listitem>
<para>
- <parameter>component-type</parameter>: <classname>org.richfaces.tabPanel</classname>
+ <parameter>component-type</parameter>: <classname>org.richfaces.ToggleControl</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmltabPanel</classname>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlToggleControl</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>component-family</parameter>: <classname>org.richfaces.tabPanel</classname>
+ <parameter>component-family</parameter>: <classname>org.richfaces.ToggleControl</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>renderer-type</parameter>: <classname>org.richfaces.tabPanelRenderer</classname>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.ToggleControlRenderer</classname>
</para>
</listitem>
<listitem>
<para>
- <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.tabPanelTag</classname>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.ToggleControlTag</classname>
</para>
</listitem>
</itemizedlist>
</section>
</section>
-
+
+ <!--<rich:togglePanel>-->
<section id="sect-Component_Reference-Panels_and_containers-richtogglePanel">
<title><sgmltag><rich:togglePanel></sgmltag></title>
<para>
- The <sgmltag><rich:togglePanel></sgmltag> component is a wrapper component with named facets. Each facet is displayed after activating a corresponding <sgmltag><rich:toggleControl></sgmltag> component.
+ The <sgmltag><rich:togglePanel></sgmltag> component is a wrapper for multiple <sgmltag><rich:togglePanelItem></sgmltag> components. Each child component is displayed after being activated with the <sgmltag><rich:toggleControl></sgmltag> behavior.
</para>
+ <para>
+ Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richtoggleControl" /> and <xref linkend="sect-Component_Reference-Panels_and_containers-richtogglePanel" /> for details on how to use the components together.
+ </para>
+ <para>
+ The <sgmltag><rich:togglePanel></sgmltag> component is used as a base for the other switchable components, the <sgmltag><rich:accordion></sgmltag> component and the <sgmltag><rich:tabPanel></sgmltag> component. It provides an abstract switchable component without any associated markup. As such, the <sgmltag><rich:togglePanel></sgmltag> component could be customized to provide a switchable component when neither an accordion component or a tab panel component is appropriate.
+ </para>
<section id="sect-Component_Reference-richtogglePanel-Basic_usage">
<title>Basic usage</title>
<para>
- The initial state of the component can be configured using the <code>initialState</code> attribute, which points to a facet name to display. Alternatively, setting <code>initialState="empty"</code>, the initial state will be blank until the user selects an option.
+ The initial state of the component can be configured using the <varname>activeItem</varname> attribute, which points to a child component to display. Alternatively, if no <varname>activeItem</varname> attribute is defined, the initial state will be blank until the user activates a child component using the <sgmltag><rich:toggleControl></sgmltag> component.
</para>
<para>
- The order in which the facets are shown can be defined using the <code>statusOrder</code> attribute, listing the facet names separated by commas, as shown in <xref linkend="exam-Component_Reference-richtogglePanel-State_order_example" />.
+ The child components are shown in the order in which they are defined in the view.
</para>
- <example id="exam-Component_Reference-richtogglePanel-State_order_example">
- <title>State order example</title>
- <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richtogglePanel-State_order_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
- </example>
</section>
+ <section id="sect-Component_Reference-richtogglePanel-Toggling_between_panels">
+ <title>Toggling between components</title>
+ <para>
+ The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>server</literal>, the default setting, which causes the child components to perform a common submission, completely re-rendering the page. Only one panel at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>ajax</literal>, which causes the child components to perform an Ajax form submission, and the content of the panel is rendered. Only one panel at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>client</literal>, which causes the child components to update on the client side. JavaScript changes the styles such that one component becomes hidden while the other is shown.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richtogglePanel-Switching_panels">
+ <title>Switching panels</title>
+ <para>
+ The switching mode for performing submissions is determined by the <code>switchType</code> attribute, which can have one of the following three values:
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term><literal>server</literal></term>
+ <listitem>
+ <para>
+ The default setting. Activation of a child component causes the parent <sgmltag><rich:togglePanel></sgmltag> component to perform a common submission, completely re-rendering the page. Only one child at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>ajax</literal></term>
+ <listitem>
+ <para>
+ Activation of a child component causes the parent <sgmltag><rich:togglePanel></sgmltag> component to perform an Ajax form submission, and the content of the child is rendered. Only one child at a time is uploaded to the client side.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><literal>client</literal></term>
+ <listitem>
+ <para>
+ Activation of a child component causes the parent <sgmltag><rich:togglePanel></sgmltag> component to update on the client side. JavaScript changes the styles such that one child component becomes hidden while the other is shown.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </section>
+
<section id="sect-Component_Reference-richtogglePanel-Reference_data">
<title>Reference data</title>
<itemizedlist>
@@ -396,49 +990,47 @@
</section>
</section>
- <!-- TODO not in M2 -->
- <!--
- <section id="sect-Component_Reference-Panels_and_containers-richtoggleControl">
- <title><sgmltag><rich:toggleControl></sgmltag></title>
+ <!--<rich:togglePanelItem>-->
+ <section id="sect-Component_Reference-Panels_and_containers-richtogglePanelItem">
+ <title><sgmltag><rich:togglePanelItem></sgmltag></title>
<para>
- The <sgmltag><rich:toggleControl></sgmltag> component works with a <sgmltag><rich:togglePanel></sgmltag> component to switch between panel states. It can be located either inside or outside the <sgmltag><rich:togglePanel></sgmltag> component, and can be used to switch to a specific state or cycle through a set of states.
+ The <sgmltag><rich:togglePanelItem></sgmltag> component is a switchable panel for use with the <sgmltag><rich:togglePanel></sgmltag> component. Switching between <sgmltag><rich:togglePanelItem></sgmltag> components is handled by the <sgmltag><rich:toggleControl></sgmltag> behavior.
</para>
<para>
- Basic usage for the <sgmltag><rich:toggleControl></sgmltag> requires the <code>for</code> attribute, which points to the <code>id</code> attribute of the <sgmltag><rich:togglePanel></sgmltag> that it controls. The <code>value</code> attribute specifies the label of the toggle button.
+ Refer to <xref linkend="sect-Component_Reference-Panels_and_containers-richtoggleControl" /> and <xref linkend="sect-Component_Reference-Panels_and_containers-richtogglePanel" /> for details on how to use the components together.
</para>
- <para>
- The <code>switchToState</code> attribute can be used to explicitly set a target panel for the toggle to activate. If no <code>switchToState</code> attribute is defined, the toggle will switch to the next panel listed in the <code>switchOrder</code> attribute of the <sgmltag><rich:toggleControl></sgmltag> component. <xref linkend="exam-Component_Reference-richtoggleControl-Switching_panel_states" /> shows the use of the <code>switchToState</code> attribute.
- </para>
- <example id="exam-Component_Reference-richtoggleControl-Switching_panel_states">
- <title>Switching panel states</title>
-
-<programlisting language="XML" role="XML">
-<rich:togglePanel id="panel" initialState="empty" switchType="client">
- <f:facet name="first">
- <h:panelGroup>
- <rich:toggleControl for="helloForm:panel" value="Empty" switchToState="empty"/>
- <rich:toggleControl for="helloForm:panel" value=" Second" switchToState="second"/>
- <!-Some content->
- </h:panelGroup>
- </f:facet>
- <f:facet name="second">
- <h:panelGroup>
- <rich:toggleControl for="helloForm:panel" value="Empty" switchToState="empty"/>
- <rich:toggleControl for="helloForm:panel" value=" first" switchToState="first"/>
- <!-Some content->
- </h:panelGroup>
- </f:facet>
- <f:facet name="empty">
- <h:panelGroup>
- <rich:toggleControl for="helloForm:panel" value="first" switchToState="first"/>
- <rich:toggleControl for="helloForm:panel" value=" second" switchToState="second"/>
- </h:panelGroup>
- </f:facet>
-</rich:togglePanel>
-</programlisting>
- </example>
+
+ <section id="sect-Component_Reference-richtogglePanelItem-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.TogglePanelItem</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlTogglePanelItem</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.TogglePanelItem</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.TogglePanelItemRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.TogglePanelItemTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
- -->
-
+
</chapter>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Processing_management.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -8,227 +8,249 @@
</para>
<section id="sect-Component_Reference-Processing_management-a4jqueue">
<title><sgmltag><a4j:queue></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.QueueRenderer</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlQueue</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.Queue</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>tag-class</parameter>: <classname>org.ajax4jsf.taglib.html.jsp.QueueTag</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:queue></sgmltag> component manages a queue of Ajax requests to control message processing.
</para>
- <para>
- The queue can be disabled by setting the <varname>disabled</varname> attribute to <literal>true</literal>. The <varname>size</varname> attribute specifies the number of requests that can be stored in the queue at a time; smaller queue sizes help prevent server overloads. When the queue's size is exceeded, the <varname>sizeExceededBehavior</varname> determines the way in which the queue handles the requests:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <literal>dropNext</literal> drops the next request currently in the queue.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>dropNew</literal> drops the incoming request.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>fireNext</literal> immediately sends the next request currently in the queue.
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>fireNew</literal> immediately sends the incoming request.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- The <sgmltag><a4j:queue></sgmltag> component features several events relating to queuing actions:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- The <varname>oncomplete</varname> event attribute is fired after a request is completed. The request object is passed as a parameter to the event handler, so the queue is accessible using <code>request.queue</code> and the element which was the source of the request is accessible using <code>this</code>.
- </para>
- </listitem>
- <listitem>
- <para>
- The <varname>onrequestqueue</varname> event attribute is fired after a new request has been added to the queue.
- </para>
- </listitem>
- <listitem>
- <para>
- The <varname>onrequestdequeue</varname> event attribute is fired after a request has been removed from the queue.
- </para>
- </listitem>
- <listitem>
- <para>
- The <varname>onsizeexceeded</varname> event attribute is fired when the queue has been exceeded.
- </para>
- </listitem>
- <listitem>
- <para>
- The <varname>onsubmit</varname> event attribute is fired before the request is sent.
- </para>
- </listitem>
- <listitem>
- <para>
- The <varname>onsuccess</varname> event attribute is fired after a successful request bu before the <acronym>DOM</acronym> is updated on the client side.
- </para>
- </listitem>
- </itemizedlist>
+
+ <section id="sect-Component_Reference-a4jqueue-Queue_size">
+ <title>Queue size</title>
+ <para>
+ The <varname>size</varname> attribute specifies the number of requests that can be stored in the queue at a time; smaller queue sizes help prevent server overloads. When the queue's size is exceeded, the <varname>sizeExceededBehavior</varname> determines the way in which the queue handles the requests:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>dropNext</literal> drops the next request currently in the queue.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>dropNew</literal> drops the incoming request.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>fireNext</literal> immediately sends the next request currently in the queue.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>fireNew</literal> immediately sends the incoming request.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-a4jqueue-a4jqueue_client-side_events">
+ <title><sgmltag><a4j:queue></sgmltag> client-side events</title>
+ <para>
+ The <sgmltag><a4j:queue></sgmltag> component features several events relating to queuing actions:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <varname>oncomplete</varname> event attribute is fired after a request is completed. The request object is passed as a parameter to the event handler, so the queue is accessible using <code>request.queue</code> and the element which was the source of the request is accessible using <code>this</code>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onrequestqueue</varname> event attribute is fired after a new request has been added to the queue.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onrequestdequeue</varname> event attribute is fired after a request has been removed from the queue.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onsizeexceeded</varname> event attribute is fired when the queue has been exceeded.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onsubmit</varname> event attribute is fired before the request is sent.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <varname>onsuccess</varname> event attribute is fired after a successful request but before the <acronym>DOM</acronym> is updated on the client side.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-a4jqueue-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.QueueRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlQueue</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.Queue</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.ajax4jsf.taglib.html.jsp.QueueTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Processing_management-a4jlog">
<title><sgmltag><a4j:log></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Log</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.AjaxLog</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.Log</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.LogRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:log></sgmltag> component generates JavaScript that opens a debug window, logging application information such as requests, responses, and <acronym>DOM</acronym> changes.
</para>
- <para>
- The <varname>popup</varname> attribute causes the logging data to appear in a new pop-up window if set to <literal>true</literal>, or in place on the current page if set to <literal>false</literal>. The window is set to be opened by pressing the key combination <keycombo action="simul"><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>L</keycap></keycombo>; this can be partially reconfigured with the <varname>hotkey</varname> attribute, which specifies the letter key to use in combination with <keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap></keycombo> instead of <keycap>L</keycap>.
- </para>
- <para>
- The amount of data logged can be determined with the <varname>level</varname> attribute:
- </para>
- <itemizedlist>
- <listitem>
+
+ <section id="sect-Component_Reference-a4jlog-Log_monitoring">
+ <title>Log monitoring</title><para>
+ The <varname>popup</varname> attribute causes the logging data to appear in a new pop-up window if set to <literal>true</literal>, or in place on the current page if set to <literal>false</literal>. The window is set to be opened by pressing the key combination <keycombo action="simul"><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>L</keycap></keycombo>; this can be partially reconfigured with the <varname>hotkey</varname> attribute, which specifies the letter key to use in combination with <keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap></keycombo> instead of <keycap>L</keycap>.
+ </para>
+ <para>
+ The amount of data logged can be determined with the <varname>level</varname> attribute:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <literal>ERROR</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>FATAL</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>INFO</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>WARN</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <literal>ALL</literal>, the default setting, logs all data.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <example id="exam-Component_Reference-a4jlog-a4jlog_example">
+ <title><sgmltag><a4j:log></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-a4jlog-a4jlog_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ <note>
+ <title>Log renewal</title>
<para>
- <literal>ERROR</literal>
+ The log is automatically renewed after each Ajax request. It does not need to be explicitly re-rendered.
</para>
- </listitem>
- <listitem>
- <para>
- <literal>FATAL</literal>
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>INFO</literal>
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>WARN</literal>
- </para>
- </listitem>
- <listitem>
- <para>
- <literal>ALL</literal>, the default setting, logs all data.
- </para>
- </listitem>
- </itemizedlist>
- <example id="exam-Component_Reference-a4jlog-a4jlog_example">
- <title><sgmltag><a4j:log></sgmltag> example</title>
-
-<programlisting language="XML" role="XML">
-<a4j:log level="ALL" popup="false" width="400" height="200" />
-</programlisting>
- </example>
- <note>
- <title>Log renewal</title>
- <para>
- The log is automatically renewed after each Ajax request. It does not need to be explicitly re-rendered.
- </para>
- </note>
+ </note>
+ </section>
+
+ <section id="sect-Component_Reference-a4jlog-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Log</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.AjaxLog</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.Log</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.LogRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Processing_management-a4jstatus">
<title><sgmltag><a4j:status></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.Status</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxStatus</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>javax.faces.Panel</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxStatusRenderer</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:status></sgmltag> component displays the status of current Ajax requests; the status can be either in progress or complete.
</para>
- <para>
- The <varname>startText</varname> attribute defines the text shown after the request has been started and is currently in progress. This text can be styled with the <varname>startStyle</varname> and <varname>startStyleClass</varname> attributes. Similarly, the <varname>stopText</varname> attribute defines the text shown once the request is complete, and text is styled with the <varname>stopStyle</varname> and <varname>stopStyleClass</varname> attributes. Alternatively, the text styles can be customized using facets, with the facet name set to either <literal>start</literal> or <literal>stop</literal> as required. If the <varname>stopText</varname> attribute is not defined, and no facet exists for the stopped state, the status is simply not shown; in this way only the progress of the request is displayed to the user.
- </para>
- <example id="exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage">
- <title>Basic <sgmltag><a4j:status></sgmltag> usage</title>
-
-<programlisting language="XML" role="XML">
-<a4j:status startText="In progress..." stopText="Complete" />
-</programlisting>
- </example>
- <para>
- The <sgmltag><a4j:status></sgmltag> component works for each Ajax component inside the local region. If no region is defined, every request made on the page will activate the <sgmltag><a4j:status></sgmltag> component. Alternatively, the <sgmltag><a4j:status></sgmltag> component can be linked to specific components in one of two ways:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- The <varname>for</varname> attribute can be used to specify the component for which the status is to be monitored.
- </para>
- </listitem>
- <listitem>
- <para>
- With an <varname>id</varname> identifier attribute specified for the <sgmltag><a4j:status></sgmltag>, individual components can have their statuses monitored by referencing the identifier with their own <varname>status</varname> attributes.
- </para>
- </listitem>
- </itemizedlist>
- <example id="exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component">
- <title>Updating a common <sgmltag><a4j:status></sgmltag> component</title>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- </example>
+
+ <section id="sect-Component_Reference-a4jstatus-Customizing_the_text">
+ <title>Customizing the text</title>
+ <para>
+ The <varname>startText</varname> attribute defines the text shown after the request has been started and is currently in progress. This text can be styled with the <varname>startStyle</varname> and <varname>startStyleClass</varname> attributes. Similarly, the <varname>stopText</varname> attribute defines the text shown once the request is complete, and text is styled with the <varname>stopStyle</varname> and <varname>stopStyleClass</varname> attributes. Alternatively, the text styles can be customized using facets, with the facet name set to either <literal>start</literal> or <literal>stop</literal> as required. If the <varname>stopText</varname> attribute is not defined, and no facet exists for the stopped state, the status is simply not shown; in this way only the progress of the request is displayed to the user.
+ </para>
+ <example id="exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage">
+ <title>Basic <sgmltag><a4j:status></sgmltag> usage</title>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-a4jstatus-Specifying_a_region">
+ <title>Specifying a region</title>
+ <para>
+ The <sgmltag><a4j:status></sgmltag> component works for each Ajax component inside the local region. If no region is defined, every request made on the page will activate the <sgmltag><a4j:status></sgmltag> component. Alternatively, the <sgmltag><a4j:status></sgmltag> component can be linked to specific components in one of two ways:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <varname>for</varname> attribute can be used to specify the component for which the status is to be monitored.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ With an <varname>id</varname> identifier attribute specified for the <sgmltag><a4j:status></sgmltag>, individual components can have their statuses monitored by referencing the identifier with their own <varname>status</varname> attributes.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <example id="exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component">
+ <title>Updating a common <sgmltag><a4j:status></sgmltag> component</title>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jstatus-Updating_a_common_a4jstatus_component.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-a4jstatus-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.Status</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.component.html.HtmlAjaxStatus</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>javax.faces.Panel</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.ajax4jsf.components.AjaxStatusRenderer</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
</chapter>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Resources.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -194,39 +194,51 @@
<section id="sect-Component_Reference-Resources-a4jkeepAlive">
<title><sgmltag><a4j:keepAlive></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.ajax4jsf.components.KeepAlive</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.ajax4jsf.components.AjaxKeepAlive</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.AjaxKeepAlive</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><a4j:keepAlive></sgmltag> component allows the state of a managed bean to be retained between Ajax requests.
</para>
<para>
- Managed beans can be declared with the <literal>request</literal> scope in the <filename>faces-config.xml</filename> configuration file, using the <sgmltag><managed-bean-scope></sgmltag> tag. Any references to the bean instance after the request has ended will cause the server to throw an illegal argument exception (<exceptionname>IllegalArgumentException</exceptionname>). The <sgmltag><a4j:keepAlive></sgmltag> component avoids this be maintaining the state of the whole bean object for subsequent requests.
+ Managed beans can be declared with the <literal>request</literal> scope in the <filename>faces-config.xml</filename> configuration file, using the <sgmltag><managed-bean-scope></sgmltag> tag. Any references to the bean instance after the request has ended will cause the server to throw an illegal argument exception (<exceptionname>IllegalArgumentException</exceptionname>). The <sgmltag><a4j:keepAlive></sgmltag> component avoids this by maintaining the state of the whole bean object for subsequent requests.
</para>
- <para>
- The <varname>beanName</varname> attribute defines the request-scope managed bean name to keep alive. The <varname>ajaxOnly</varname> attribute determines whether or not the value of the bean should be available during non-Ajaxx requests; if <code>ajaxOnly="true"</code>, the request-scope bean keeps its value during Ajax requests, but any non-Ajax requests will re-create the bean as a regular request-scope bean.
- </para>
- <example id="exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example">
- <title><sgmltag><a4j:keepAlive></sgmltag> example</title>
-
-<programlisting language="XML" role="XML">
-<a4j:keepAlive beanName="testBean" />
-</programlisting>
- </example>
+
+ <section id="sect-Component_Reference-a4jkeepAlive-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ The <varname>beanName</varname> attribute defines the request-scope managed bean name to keep alive.
+ </para>
+ <example id="exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example">
+ <title><sgmltag><a4j:keepAlive></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-a4jkeepAlive-Non-Ajax_requests">
+ <title>Non-Ajax requests</title>
+ <para>
+ The <varname>ajaxOnly</varname> attribute determines whether or not the value of the bean should be available during non-Ajax requests; if <code>ajaxOnly="true"</code>, the request-scope bean keeps its value during Ajax requests, but any non-Ajax requests will re-create the bean as a regular request-scope bean.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-a4jkeepAlive-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.ajax4jsf.components.KeepAlive</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.ajax4jsf.components.AjaxKeepAlive</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.ajax4jsf.components.AjaxKeepAlive</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<!-- TODO not in M2 -->
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -114,67 +114,119 @@
The <sgmltag><rich:colorPicker></sgmltag> component has the unique event handler <varname>onbeforeshow</varname>, which is triggered immediately before the color picker is opened. The <varname>showEvent</varname> attribute can be used to bind the opening of the color picker to a specific event; it is bound to the <varname>onclick</varname> event by default.
</para>
</section>
+ -->
- <section id="sect-Component_Reference-Rich_inputs-richcomboBox">
- <title><sgmltag><rich:comboBox></sgmltag></title>
+ <!--<rich:autocomplete>-->
+ <section id="sect-Component_Reference-Rich_inputs-richautocomplete">
+ <title><sgmltag><rich:autocomplete></sgmltag></title>
<para>
- The <sgmltag><rich:comboBox></sgmltag> component is a typical combo-box with built-in Ajax capabilities. It supports client-side suggestions, browser-like selection, Seam entity converter support, and customization of the look and feel.
+ The <sgmltag><rich:autocomplete></sgmltag> component is an auto-completing input-box with built-in Ajax capabilities. It supports client-side suggestions, browser-like selection, and customization of the look and feel.
</para>
- <para>
- The <varname>value</varname> attribute stores the selected value for the combo-box. Suggestions shown in the drop-down list for the combo-box can be specified in one of two ways:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Using the <varname>suggestionValues</varname> attribute, and defining a collection of suggestions:
- </para>
- <example id="exam-Component_Reference-richcomboBox-Defining_suggestion_values">
- <title>Defining suggestion values</title>
-
-<programlisting language="XML" role="XML">
-<rich:comboBox value="#{bean.state}" suggestionValues="#{bean.suggestions}"
-</programlisting>
- </example>
- </listitem>
- <listitem>
- <para>
- Using the JSF components <sgmltag><f:selectItem></sgmltag> and <sgmltag><f:selectItems></sgmltag> to define a list of items:
- </para>
- <example id="exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect">
- <title>Defining list items for <sgmltag><rich:inplaceSelect></sgmltag></title>
-
-<programlisting language="XML" role="XML">
-<rich:comboBox value="#{bean.item}" valueChangeListener="#{bean.selectionChanged}" >
- <f:selectItems value="#{bean.selectItems}" />
- <f.selectItem itemValue="Item 1" />
- <f.selectItem itemValue="Item 2" />
- <f.selectItem itemValue="Item 3" />
- <f.selectItem itemValue="Item 4" />
-</rich:comboBox>
-</programlisting>
- </example>
- </listitem>
- </itemizedlist>
- <para>
- Users can type into the combo-box's text field to enter a value, which also searches through the suggestion items in the drop-down box. By default, the first suggestion item is selected as the user types. This behavior can be deactivated by setting <code>selectFirstOnUpdate="false"</code>. Setting <code>directInputSuggestions="true"</code> causes the combo-box to fill the text field box with a matching suggestion as the user types. Alternatively, the text field can be disabled by setting <code>enableManualInput="false"</code>, which forces the users to pick from items in the drop-down box.
- </para>
- <para>
- The <sgmltag><rich:comboBox></sgmltag> component has two unique event handlers:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <varname>onlistcall</varname> triggers before the drop-down list is shown, allowing the operation to be canceled.
- </para>
- </listitem>
- <listitem>
- <para>
- <varname>onselect</varname> triggers when a suggestion is selected from the drop-down list, before the update request is sent.
- </para>
- </listitem>
- </itemizedlist>
+ <figure id="figu-Component_Reference-richautocomplete-richautocomplete">
+ <title><sgmltag><rich:autocomplete></sgmltag></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richautocomplete-richautocomplete.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A <sgmltag><rich:autocomplete></sgmltag> component. The letter <wordasword>A</wordasword> has been entered, such that the suggestion list only shows those options beginning with <wordasword>A</wordasword>.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+
+ <section id="sect-Component_Reference-richautocomplete-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ The <varname>value</varname> attribute stores the text entered by the user for the auto-complete box. Suggestions shown in the auto-complete list can be specified using the <varname>autocompleteList</varname> attribute, which points to a collection of suggestions:
+ </para>
+ <example id="exam-Component_Reference-richautocomplete-Defining_suggestion_values">
+ <title>Defining suggestion values</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richautocomplete-Defining_suggestion_values.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ <!--
+ <itemizedlist>
+ <listitem>
+ <para>
+ Using the JSF components <sgmltag><f:selectItem></sgmltag> and <sgmltag><f:selectItems></sgmltag> to define a list of items:
+ </para>
+ <example id="exam-Component_Reference-richautocomplete-Defining_list_items_for_richinplaceSelect">
+ <title>Defining list items for <sgmltag><rich:inplaceSelect></sgmltag></title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richautocomplete-Defining_list_items_for_richinplaceSelect.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </listitem>
+ </itemizedlist>
+ -->
+ </section>
+
+ <section id="sect-Component_Reference-richautocomplete-Interactivity_options">
+ <title>Interactivity options</title>
+ <!-- TODO
+ <para>
+ The input box can display an instructional label before text is entered. This can be set through the <varname>defaultLabel</varname> attribute.
+ </para>
+ -->
+ <para>
+ Users can type into the combo-box's text field to enter a value, which also searches through the suggestion items in the drop-down box. By default, the first suggestion item is selected as the user types. This behavior can be deactivated by setting <code><varname>selectFirst</varname>="false"</code>.
+ </para>
+ <para>
+ Setting <code><varname>autoFill</varname>="true"</code> causes the combo-box to fill the text field box with a matching suggestion as the user types.
+ </para>
+ </section>
+
+ <!-- TODO
+ <section id="sect-Component_Reference-richautocomplete-richautocomplete_events">
+ <title><sgmltag><rich:autocomplete></sgmltag> events</title>
+ <para>
+ The <sgmltag><rich:autocomplete></sgmltag> component has two unique event handlers:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <varname>onlistcall</varname> triggers before the drop-down list is shown, allowing the operation to be canceled.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <varname>onselect</varname> triggers when a suggestion is selected from the drop-down list, before the update request is sent.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+ -->
+
+ <section id="sect-Component_Reference-richautocomplete-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.autocomplete</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlAutocomplete</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.autocomplete</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.renderkit.autocompleteRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.autocompleteTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
- -->
<!-- TODO not in M2 -->
<!--
@@ -268,6 +320,7 @@
</section>
-->
+ <!--<rich:inplaceInput>-->
<section id="sect-Component_Reference-Rich_inputs-richinplaceInput">
<title><sgmltag><rich:inplaceInput></sgmltag></title>
<para>
@@ -283,18 +336,20 @@
<section id="sect-Component_Reference-richinplaceInput-Interactivity_options">
<title>Interactivity options</title>
+ <!--
<para>
When in the initial "view" state, the starting label can be set using the <varname>defaultLabel</varname> attribute, such as <code><varname>defaultLabel</varname>="click to edit"</code>.
</para>
-
+ -->
<para>
- By default, the event to switch the component to the "edit" state is a single mouse click. This can be changed using the <varname>editEvent</varname> attribute to specify a different event. When switching to "edit" mode, the existing text can be automatically highlighted to make editing easier by setting <code><varname>selectOnEdit</varname>="true"</code>.
+ By default, the event to switch the component to the "edit" state is a single mouse click. This can be changed using the <varname>editEvent</varname> attribute to specify a different event.
</para>
<para>
The user can confirm and save their input by pressing the <keycap>Enter</keycap> key or cancel by pressing the <keycap>Esc</keycap> key. Alternatively, buttons for confirming or canceling can be added to the component by setting <code>showControls="true"</code>. These buttons can be positioned using the <varname>controlsHorizontalPosition</varname> attribute with settings of <literal>left</literal>, <literal>right</literal>, or <literal>center</literal>, and the <varname>controlsVerticalPosition</varname> attribute with settings <literal>bottom</literal>, <literal>center</literal>, or <literal>top</literal>. The confirmation control icons can be altered using the <varname>saveControlIcon</varname> and <varname>cancelControlIcon</varname>. Further customization is possible through the use of facets.
</para>
</section>
+ <!-- TODO
<section id="sect-Component_Reference-richinplaceInput-richinplaceInput_events">
<title><sgmltag><rich:inplaceInput></sgmltag> events</title>
<para>
@@ -323,6 +378,7 @@
</listitem>
</itemizedlist>
</section>
+ -->
<section id="sect-Component_Reference-richinplaceInput-Reference_data">
<title>Reference data</title>
@@ -356,6 +412,7 @@
</section>
</section>
+ <!--<rich:inplaceSelect>-->
<section id="sect-Component_Reference-Rich_inputs-richinplaceSelect">
<title><sgmltag><rich:inplaceSelect></sgmltag></title>
<para>
@@ -447,15 +504,16 @@
</section>
</section>
+ <!--<rich:inputNumberSlider>-->
<section id="sect-Component_Reference-Rich_inputs-richinputNumberSlider">
<title><sgmltag><rich:inputNumberSlider></sgmltag></title>
<para>
- The <sgmltag><rich:inputNumberSlider></sgmltag> component provides a slider for changing numerical values. Optional features include a tool-tip to display the value while sliding, and a text field for typing the numerical value which can then be validated against the slider's range.
+ The <sgmltag><rich:inputNumberSlider></sgmltag> component provides a slider for changing numerical values. Optional features include control arrows to step through the values, a tool-tip to display the value while sliding, and a text field for typing the numerical value which can then be validated against the slider's range.
</para>
<section id="sect-Component_Reference-richinputNumberSlider-Basic_usage">
<title>Basic usage</title>
<para>
- Basic use of the component with no attributes specified will render a slider with a minimum value of 0, a maximum of 100, and a gradient step of 1, together with a text field for typing the desired numerical value. The slider is labeled with the minimum and maximum boundary values, and a tool-tip showing the current value is shown while sliding the slider.
+ Basic use of the component with no attributes specified will render a slider with a minimum value of 0, a maximum of 100, and a gradient step of 1, together with a text field for typing the desired numerical value. The slider is labeled with the minimum and maximum boundary values, and a tool-tip showing the current value is shown while sliding the slider. The <varname>value</varname> attribute is used for storing the currently selected value of the slider.
</para>
</section>
@@ -471,7 +529,7 @@
The minimum and maximum labels on the slider can be hidden by setting <code><varname>showBoundaryValues</varname>="false"</code>. The tool-tip showing the current value can be hidden by setting <code><varname>showToolTip</varname>="false"</code>.
</para>
<para>
- Arrow controls can be added to either side of the slider to adjust the value incrementally by setting <code>showArrows="true"</code>. Clicking the arrows move the slider indicator in that direction by the gradient step, and clicking and holding the arrows moves the indicator continuously. The time delay for each step when updating continuously can be defined using the <varname>delay</varname> attribute.
+ Arrow controls can be added to either side of the slider to adjust the value incrementally by setting <code><varname>showArrows</varname>="true"</code>. Clicking the arrows move the slider indicator in that direction by the gradient step, and clicking and holding the arrows moves the indicator continuously. The time delay for each step when updating continuously can be defined using the <varname>delay</varname> attribute.
</para>
</section>
@@ -524,7 +582,10 @@
The ability to change the value by typing into the text field can be disabled by setting <code>enableManualInput="false"</code>.
</para>
</section>
+ -->
+ <!--<rich:suggestionBox>-->
+ <!--
<section id="sect-Component_Reference-Rich_inputs-richsuggestionBox">
<title><sgmltag><rich:suggestionBox></sgmltag></title>
<para>
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Selection_and_ordering.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Selection_and_ordering.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Selection_and_ordering.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -11,8 +11,6 @@
<para>
The <sgmltag><rich:listShuttle></sgmltag> component is used for moving select items from one list into another. Items can optionally be re-ordered. It supports selection of multiple items, keyboard usage, and a customizable look and feel.
</para>
- <para>
- </para>
</section>
<section id="sect-Component_Reference-Selection_and_ordering-richorderingList">
Modified: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Validation.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -6,35 +6,9 @@
<para>
This chapter covers those components that validate user input. The components enhance <acronym>JSF</acronym> validation capabilities with Ajax support and the use of <application>Hibernate</application> validators.
</para>
+
<section id="sect-Component_Reference-Validation-richajaxValidator">
<title><sgmltag><rich:ajaxValidator></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.richfaces.ajaxValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlajaxValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.richfaces.ajaxValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.richfaces.ajaxValidatorRenderer</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.ajaxValidatorTag</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><rich:ajaxValidator></sgmltag> component provides Ajax validation for <acronym>JSF</acronym> inputs. It is added as a child component to a <acronym>JSF</acronym> tag, and the <varname>event</varname> attribute specifies when to trigger the validation.
</para>
@@ -43,209 +17,242 @@
<para>
This example shows the use of <sgmltag><rich:ajaxValidator></sgmltag> with standard <acronym>JSF</acronym> validators. The validators check the length of the entered name, and the range of the entered age.
</para>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-richajaxValidator-richajaxValidator_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-richajaxValidator-richajaxValidator_example.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
</example>
- <para>
- The <sgmltag><rich:ajaxValidator></sgmltag> component can also work with custom validators made using the <acronym>JSF</acronym> Validation <acronym>API</acronym> in the <package>javax.faces.validator</package> package, or with Hibernate Validator. Refer to the <citetitle>Hibernate Validator documentation</citetitle> for details on how to use Hibernate Validator.
- </para>
- <example id="exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator">
- <title>Using <sgmltag><rich:ajaxValidator></sgmltag> with Hibernate Validator</title>
+
+ <section id="sect-Component_Reference-richajaxValidator-Custom_validators">
+ <title>Custom validators</title>
<para>
- This example shows the use of <sgmltag><rich:ajaxValidator></sgmltag> with Hibernate Validator. It validates the entered name, email, and age.
+ The <sgmltag><rich:ajaxValidator></sgmltag> component can also work with custom validators made using the <acronym>JSF</acronym> Validation <acronym>API</acronym> in the <package>javax.faces.validator</package> package, or with Hibernate Validator. Refer to the <citetitle>Hibernate Validator documentation</citetitle> for details on how to use Hibernate Validator.
</para>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <para>
- The validation is performed using the <classname>ValidationBean</classname> class:
- </para>
-
-<programlisting language="Java" role="JAVA">
-<xi:include href="extras/exam-Component_Reference-ValidationBean.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <blockquote>
- <figure id="figu-Component_Reference-Using_richajaxValidator_with_Hibernate_Validator-richajaxValidator_example_result">
- <title><sgmltag><rich:ajaxValidator></sgmltag> example result</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/figu-Component_Reference-richajaxValidator-richajaxValidator_example_result.png" format="PNG" width="444" />
- </imageobject>
- <textobject>
- <para>
- The result of the <sgmltag><rich:ajaxValidator></sgmltag> example: three text entry fields with corresponding validation messages.
- </para>
- </textobject>
- </mediaobject>
- </figure>
- </blockquote>
- </example>
+ <example id="exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator">
+ <title>Using <sgmltag><rich:ajaxValidator></sgmltag> with Hibernate Validator</title>
+ <para>
+ This example shows the use of <sgmltag><rich:ajaxValidator></sgmltag> with Hibernate Validator. It validates the entered name, email, and age.
+ </para>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-richajaxValidator-Using_richajaxValidator_with_Hibernate_Validator-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <para>
+ The validation is performed using the <classname>ValidationBean</classname> class:
+ </para>
+ <programlisting language="Java" role="JAVA"><xi:include href="extras/exam-Component_Reference-ValidationBean.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <blockquote>
+ <figure id="figu-Component_Reference-Using_richajaxValidator_with_Hibernate_Validator-richajaxValidator_example_result">
+ <title><sgmltag><rich:ajaxValidator></sgmltag> example result</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richajaxValidator-richajaxValidator_example_result.png" format="PNG" width="444" />
+ </imageobject>
+ <textobject>
+ <para>
+ The result of the <sgmltag><rich:ajaxValidator></sgmltag> example: three text entry fields with corresponding validation messages.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </blockquote>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richajaxValidator-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.ajaxValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlajaxValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.ajaxValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.ajaxValidatorRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.ajaxValidatorTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Validation-richbeanValidator">
<title><sgmltag><rich:beanValidator></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.richfaces.beanValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlbeanValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.richfaces.beanValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.richfaces.beanValidatorRenderer</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.beanValidatorTag</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><rich:beanValidator></sgmltag> component provides model-based constraints using Hibernate Validator. This allows Hibernate Validator to be used similar to its use with Seam-based applications.
</para>
- <para>
- The <varname>summary</varname> attribute is used for displaying messages about validation errors.
- </para>
- <example id="exam-Component_Reference-richbeanValidator-richbeanValidator_example">
- <title><sgmltag><rich:beanValidator></sgmltag> example</title>
+ <section id="sect-Component_Reference-richbeanValidator-Basic_usage">
+ <title>Basic usage</title>
<para>
- This example shows the bean-based validation of a simple form, containing the user's name, email, and age. The <sgmltag><rich:beanValidator></sgmltag> component is defined in the same way as for <acronym>JSF</acronym> validators.
+ The <varname>summary</varname> attribute is used for displaying messages about validation errors.
</para>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-richbeanValidator-richbeanValidator_example-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <para>
- The accompanying bean contains the validation data:
- </para>
-
-<programlisting language="Java" role="JAVA">
-<xi:include href="extras/exam-Component_Reference-ValidationBean.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <blockquote>
- <figure id="figu-Component_Reference-richbeanValidator_example-richbeanValidator_example_result">
- <title><sgmltag><rich:beanValidator></sgmltag> example result</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/figu-Component_Reference-richbeanValidator-richbeanValidator_example_result.png" format="PNG" width="444" />
- </imageobject>
- <textobject>
- <para>
- The result of the <sgmltag><rich:beanValidator></sgmltag> example: three text entry fields with corresponding validation messages.
- </para>
- </textobject>
- </mediaobject>
- </figure>
- </blockquote>
- </example>
+ <example id="exam-Component_Reference-richbeanValidator-richbeanValidator_example">
+ <title><sgmltag><rich:beanValidator></sgmltag> example</title>
+ <para>
+ This example shows the bean-based validation of a simple form, containing the user's name, email, and age. The <sgmltag><rich:beanValidator></sgmltag> component is defined in the same way as for <acronym>JSF</acronym> validators.
+ </para>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-richbeanValidator-richbeanValidator_example-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <para>
+ The accompanying bean contains the validation data:
+ </para>
+ <programlisting language="Java" role="JAVA"><xi:include href="extras/exam-Component_Reference-ValidationBean.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <blockquote>
+ <figure id="figu-Component_Reference-richbeanValidator_example-richbeanValidator_example_result">
+ <title><sgmltag><rich:beanValidator></sgmltag> example result</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richbeanValidator-richbeanValidator_example_result.png" format="PNG" width="444" />
+ </imageobject>
+ <textobject>
+ <para>
+ The result of the <sgmltag><rich:beanValidator></sgmltag> example: three text entry fields with corresponding validation messages.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </blockquote>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richbeanValidator-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.beanValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlbeanValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.beanValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.beanValidatorRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.beanValidatorTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
<section id="sect-Component_Reference-Validation-richgraphValidator">
<title><sgmltag><rich:graphValidator></sgmltag></title>
- <itemizedlist>
- <listitem>
- <para>
- <parameter>component-type</parameter>: <classname>org.richfaces.graphValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlgraphValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>component-family</parameter>: <classname>org.richfaces.graphValidator</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>renderer-type</parameter>: <classname>org.richfaces.graphValidatorRenderer</classname>
- </para>
- </listitem>
- <listitem>
- <para>
- <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.graphValidatorTag</classname>
- </para>
- </listitem>
- </itemizedlist>
<para>
The <sgmltag><rich:graphValidator></sgmltag> component is used to wrap a group of input components for overall validation with Hibernate Validators. This is different from the <sgmltag><rich:beanValidator></sgmltag> component, which is used as a child element to individual input components.
</para>
- <para>
- The <varname>summary</varname> attribute is used for displaying messages about validation errors.
- </para>
- <example id="exam-Component_Reference-richgraphValidator-richgraphValidator_example">
- <title><sgmltag><rich:graphValidator></sgmltag> example</title>
+
+ <section id="sect-Component_Reference-richgraphValidator-Basic_usage">
+ <title>Basic usage</title>
<para>
- This example shows the validation of a simple form, containing the user's name, email, and age. The <sgmltag><rich:graphValidator></sgmltag> component wraps the input components to validate them together.
+ The <varname>summary</varname> attribute is used for displaying messages about validation errors.
</para>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-richgraphValidator-richgraphValidator_example-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
+ <example id="exam-Component_Reference-richgraphValidator-richgraphValidator_example">
+ <title><sgmltag><rich:graphValidator></sgmltag> example</title>
+ <para>
+ This example shows the validation of a simple form, containing the user's name, email, and age. The <sgmltag><rich:graphValidator></sgmltag> component wraps the input components to validate them together.
+ </para>
+ <programlisting language="XML" role="XML"><xi:include href="extras/exam-Component_Reference-richgraphValidator-richgraphValidator_example-0.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <para>
+ The accompanying bean contains the validation data:
+ </para>
+ <programlisting language="Java" role="JAVA"><xi:include href="extras/exam-Component_Reference-ValidationBean.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <blockquote>
+ <figure id="figu-Component_Reference-richgraphValidator_example-richgraphValidator_example_result">
+ <title><sgmltag><rich:graphValidator></sgmltag> example result</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richgraphValidator-richgraphValidator_example_result.png" format="PNG" width="444" />
+ </imageobject>
+ <textobject>
+ <para>
+ The result of the <sgmltag><rich:graphValidator></sgmltag> example: three text entry fields with corresponding validation messages.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </blockquote>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richgraphValidator-Bean_values">
+ <title>Bean values</title>
<para>
- The accompanying bean contains the validation data:
+ The optional <varname>value</varname> attribute can be used to define a value bound to the bean. The bean properties are then validated again <emphasis>after</emphasis> the model has been updated.
</para>
+ <example id="exam-Component_Reference-richgraphValidator-Using_the_value_attribute">
+ <title>Using the <varname>value</varname> attribute</title>
-<programlisting language="Java" role="JAVA">
-<xi:include href="extras/exam-Component_Reference-ValidationBean.js" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <blockquote>
- <figure id="figu-Component_Reference-richgraphValidator_example-richgraphValidator_example_result">
- <title><sgmltag><rich:graphValidator></sgmltag> example result</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/figu-Component_Reference-richgraphValidator-richgraphValidator_example_result.png" format="PNG" width="444" />
- </imageobject>
- <textobject>
- <para>
- The result of the <sgmltag><rich:graphValidator></sgmltag> example: three text entry fields with corresponding validation messages.
- </para>
- </textobject>
- </mediaobject>
- </figure>
- </blockquote>
- </example>
- <para>
- The optional <varname>value</varname> attribute can be used to define a value bound to the bean. The bean properties are then validated again <emphasis>after</emphasis> the model has been updated.
- </para>
- <example id="exam-Component_Reference-richgraphValidator-Using_the_value_attribute">
- <title>Using the <varname>value</varname> attribute</title>
-
-<programlisting language="XML" role="XML">
-<xi:include href="extras/exam-Component_Reference-richgraphValidator-Using_the_value_attribute.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
-</programlisting>
- <blockquote>
- <figure id="figu-Component_Reference-Using_the_value_attribute-Result_from_using_the_value_attribute">
- <title>Result from using the <varname>value</varname> attribute</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/figu-Component_Reference-richgraphValidator-Result_from_using_the_value_attribute.png" format="PNG" width="444" />
- </imageobject>
- <textobject>
- <para>
- The result from the example of using the <varname>value</varname> attribute with <sgmltag><rich:graphValidator></sgmltag>. The values in the number spinners need to validate before being stored.
- </para>
- </textobject>
- </mediaobject>
- </figure>
- </blockquote>
- </example>
+ <programlisting language="XML" role="XML">
+ <xi:include href="extras/exam-Component_Reference-richgraphValidator-Using_the_value_attribute.xml_sample" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" />
+ </programlisting>
+ <blockquote>
+ <figure id="figu-Component_Reference-Using_the_value_attribute-Result_from_using_the_value_attribute">
+ <title>Result from using the <varname>value</varname> attribute</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richgraphValidator-Result_from_using_the_value_attribute.png" format="PNG" width="444" />
+ </imageobject>
+ <textobject>
+ <para>
+ The result from the example of using the <varname>value</varname> attribute with <sgmltag><rich:graphValidator></sgmltag>. The values in the number spinners need to validate before being stored.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </blockquote>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richgraphValidator-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.graphValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlgraphValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.graphValidator</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.graphValidatorRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.graphValidatorTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
</chapter>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jajax-a4jajax_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,6 @@
+<h:panelGrid columns="2">
+ <h:inputText id="myinput" value="#{userBean.name}">
+ <a4j:ajax event="onkeyup" reRender="outtext" />
+ </h:inputText>
+ <h:outputText id="outtext" value="#{userBean.name}" />
+</h:panelGrid>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jkeepAlive-a4jkeepAlive_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1 @@
+<a4j:keepAlive beanName="testBean" />
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jlog-a4jlog_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jlog-a4jlog_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jlog-a4jlog_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jlog-a4jlog_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1 @@
+<a4j:log level="ALL" popup="false" width="400" height="200" />
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-a4jstatus-Basic_a4jstatus_usage.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1 @@
+<a4j:status startText="In progress..." stopText="Complete" />
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-data-Data_reference_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-data-Data_reference_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-data-Data_reference_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-data-Data_reference_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1 @@
+<a4j:commandButton value="Update" data="#{userBean.name}" oncomplete="showTheName(data.name)" />
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-limitRender-Rendering_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-limitRender-Rendering_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-limitRender-Rendering_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-limitRender-Rendering_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,12 @@
+<h:form id="form1">
+ <a4j:commandButton value="Normal rendering" render="infoBlock" />
+ <a4j:commandButton value="Limited rendering" render="infoBlock" limitRender="true" />
+</h:form>
+
+<h:panelGrid id="infoBlock">
+ ...
+</h:panelGrid>
+
+<a4j:outputPanel ajaxRendered="true">
+ <h:messages />
+</a4j:outputPanel>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-render-render_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-render-render_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-render-render_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-render-render_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,14 @@
+<h:form id="form1">
+ <a4j:commandButton value="Basic reference" render="infoBlock, infoBlock2" />
+ <a4j:commandButton value="Specific reference" render=":infoBlock,:sv:infoBlock2" />
+</h:form>
+
+<h:panelGrid id="infoBlock">
+ ...
+</h:panelGrid>
+
+<f:subview id="sv">
+ <h:panelGrid id="infoBlock2">
+ ...
+ </h:panelGrid>
+</f:subview>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richautocomplete-Defining_suggestion_values.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richautocomplete-Defining_suggestion_values.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richautocomplete-Defining_suggestion_values.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richautocomplete-Defining_suggestion_values.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1 @@
+<rich:autocomplete value="#{bean.state}" autocompleteList="#{bean.suggestions}" />
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,7 @@
+<rich:comboBox value="#{bean.state}" valueChangeListener="#{bean.selectionChanged}" >
+ <f:selectItems value="#{bean.selectItems}" />
+ <f.selectItem itemValue="Oregon" />
+ <f.selectItem itemValue="Pennsylvania" />
+ <f.selectItem itemValue="Rhode Island" />
+ <f.selectItem itemValue="South Carolina" />
+</rich:comboBox>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Attaching_richcomponentControl_to_a_component.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1 @@
+<rich:componentControl attachTo="doExpandCalendarID" event="onclick" operation="Expand" for="ccCalendarID" />
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-0.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1 @@
+<rich:componentControl name="func" event="onRowClick" for="menu" operation="show" params="#{car.model}"/>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-Using_parameters-1.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,3 @@
+<rich:componentControl event="onRowClick" for="menu" operation="show">
+ <f:param value="#{car.model}" name="model"/>
+</rich:componentControl>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomponentControl-richcomponentControl_basic_usage.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,4 @@
+<h:commandButton value="Show Modal Panel">
+ <!--componentControl is attached to the commandButton-->
+ <rich:componentControl for="ccModalPanelID" event="onclick" operation="show"/>
+</h:commandButton>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-Header_and_controls.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-Header_and_controls.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-Header_and_controls.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-Header_and_controls.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,17 @@
+<h:commandLink value="Show pop-up">
+ <rich:componentControl target="popup" operation="show" />
+</h:commandLink>
+...
+<a4j:form>
+ <rich:popupPanel id="popup" modal="false" autosized="true" resizeable="false">
+ <f:facet name="header">
+ <h:outputText value="The title of the panel" />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pages/close.png" style="cursor:pointer" onclick="#{rich:component('popup')}.hide()" />
+ </f:facet>
+ <p>
+ This is the content of the panel.
+ </p>
+ </rich:popupPanel>
+</a4j:form>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-richpopupPanel_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-richpopupPanel_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-richpopupPanel_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopupPanel-richpopupPanel_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,9 @@
+<h:commandButton value="Show the panel">
+ <rich:componentControl target="popup" operation="show" />
+</h:commandButton>
+...
+<a4j:form>
+ <rich:popupPanel id="popup">
+ <p><a href="#" onclick="#{rich:component('popup')}.hide()">Hide the panel</a></p>
+ </rich:popupPanel>
+</a4j:form>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtoggleControl-richtoggleControl_example.xml_sample (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtoggleControl-richtoggleControl_example.xml_sample)
===================================================================
--- modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtoggleControl-richtoggleControl_example.xml_sample (rev 0)
+++ modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtoggleControl-richtoggleControl_example.xml_sample 2010-08-24 04:06:04 UTC (rev 18942)
@@ -0,0 +1,17 @@
+<rich:togglePanel id="layout" activeItem="short">
+ <rich:togglePanelItem id="short">
+ //content
+ <h:commandButton>
+ <rich:toggleControl targetItem="details"> // switches to details state
+ </h:commandButton>
+ </rich:togglePanelItem>
+ <rich:togglePanelItem id="details">
+ //content
+ <h:commandButton>
+ <rich:toggleControl targetItem="short"> //switches to short state
+ </h:commandButton>
+ <rich:togglePanelItem>
+</rich:togglePanel>
+<h:commandButton>
+ <rich:toggleControl activePanel="layout"/> // cycles through the states
+</h:commandButton>
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richaccordion-richaccordion.png (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richaccordion-richaccordion.png)
===================================================================
(Binary files differ)
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richautocomplete-richautocomplete.png (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richautocomplete-richautocomplete.png)
===================================================================
(Binary files differ)
Deleted: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpanelBar-richpanelBar.png
===================================================================
(Binary files differ)
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpopupPanel-Header_and_controls.png (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpopupPanel-Header_and_controls.png)
===================================================================
(Binary files differ)
Copied: modules/docs/trunk/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richtabPanel-richtabPanel_component.png (from rev 18941, modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richtabPanel-richtabPanel_component.png)
===================================================================
(Binary files differ)
Modified: modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Book_Info.xml
===================================================================
--- modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Book_Info.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Book_Info.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -3,7 +3,7 @@
]>
<bookinfo id="book-Developer_Guide-Developer_Guide">
<title>Developer Guide</title>
- <subtitle>Developing applications using RichFaces &VERSIONLONG;<remark> (draft)</remark>
+ <subtitle>Developing applications using RichFaces 4<remark> (draft)</remark>
</subtitle>
<productname>RichFaces</productname>
<productnumber>4.0</productnumber>
@@ -11,7 +11,7 @@
<pubsnumber>1</pubsnumber>
<abstract>
<para>
- Read this book for a comprehensive guide to getting started and working with RichFaces &VERSION;. It includes details of the architecture, the framework's use in different applications, and skinning implementations.
+ Read this book for a comprehensive guide to getting started and working with RichFaces 4. It includes details of the architecture, the framework's use in different applications, and skinning implementations.
</para>
</abstract>
<corpauthor>
Modified: modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Developer_Guide.ent
===================================================================
--- modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Developer_Guide.ent 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Developer_Guide/src/main/docbook/en-US/Developer_Guide.ent 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,6 +1,5 @@
<!ENTITY PRODUCT "RichFaces">
<!ENTITY VERSION "4.0">
-<!ENTITY VERSIONLONG "4.0.0.ALPHA2">
<!ENTITY BOOKID "Developer_Guide">
<!ENTITY HOLDER "Red Hat">
<!ENTITY YEAR "2009">
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Book_Info.xml
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Book_Info.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Book_Info.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,25 +1,22 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE bookinfo PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
-%BOOK_ENTITIES;
]>
<bookinfo id="book-Migration_Guide-Migration_Guide">
<title>Migration Guide</title>
- <subtitle>Migrating existing projects to RichFaces &VERSIONLONG;<remark> (draft)</remark>
- </subtitle>
+ <subtitle>Migrating existing projects to RichFaces 4.0.0<remark> (draft)</remark></subtitle>
<productname>RichFaces</productname>
<productnumber>4.0</productnumber>
<edition>0</edition>
<pubsnumber>1</pubsnumber>
<abstract>
<para>
- Read this book to take an existing <productname>RichFaces</productname> project and upgrade it for use with <productname>RichFaces</productname> &VERSION;. The book covers changes in component usage and behaviors, as well as new framework features which may affect existing <productname>RichFaces</productname> projects.
+ Read this book to take an existing <productname>RichFaces</productname> project and upgrade it for use with <productname>RichFaces</productname> 4. The book covers changes in component usage and behaviors, as well as new framework features which may affect existing <productname>RichFaces</productname> projects.
</para>
</abstract>
<corpauthor>
<inlinemediaobject>
<imageobject>
- <imagedata fileref="./images/rf_logo.png" format="PNG" />
+ <imagedata fileref="./images/rf_logo.png" format="PNG" scalefit="1" width="444" />
</imageobject>
<textobject>
<phrase>Logo</phrase>
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Changes_and_new_features.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Migration_Guide-Changes_and_new_features">
<title>Changes and new features</title>
@@ -63,6 +61,9 @@
<listitem>
<simplelist type="vert" columns="3">
<member>
+ <sgmltag><rich:autocomplete></sgmltag>
+ </member>
+ <member>
<sgmltag><rich:calendar></sgmltag>
</member>
<member>
@@ -87,16 +88,16 @@
<sgmltag><rich:progressBar></sgmltag>
</member>
<member>
- <sgmltag><rich:simpleTogglePanel></sgmltag>
+ <sgmltag><rich:tab></sgmltag>
</member>
<member>
- <sgmltag><rich:suggestionBox></sgmltag>
+ <sgmltag><rich:toggleControl></sgmltag>
</member>
<member>
- <sgmltag><rich:tab></sgmltag>
+ <sgmltag><rich:togglePanel></sgmltag>
</member>
<member>
- <sgmltag><rich:toggleControl></sgmltag>
+ <sgmltag><rich:togglePanelItem></sgmltag>
</member>
<member>
<sgmltag><rich:tree></sgmltag>
@@ -150,6 +151,9 @@
<listitem>
<simplelist type="vert" columns="3">
<member>
+ <sgmltag><rich:autocomplete></sgmltag>
+ </member>
+ <member>
<sgmltag><rich:ajaxValidator></sgmltag>
</member>
<member>
@@ -186,18 +190,12 @@
<sgmltag><rich:progressBar></sgmltag>
</member>
<member>
- <sgmltag><rich:scrollableDataTable></sgmltag>
+ <sgmltag><rich:tab></sgmltag>
</member>
<member>
- <sgmltag><rich:simpleTogglePanel></sgmltag>
+ <sgmltag><rich:togglePanel></sgmltag>
</member>
<member>
- <sgmltag><rich:suggestionBox></sgmltag>
- </member>
- <member>
- <sgmltag><rich:tab></sgmltag>
- </member>
- <member>
<sgmltag><rich:tree></sgmltag>
</member>
<member>
@@ -252,6 +250,9 @@
<sgmltag><rich:ajaxValidator></sgmltag>
</member>
<member>
+ <sgmltag><rich:autocomplete></sgmltag>
+ </member>
+ <member>
<sgmltag><rich:calendar></sgmltag>
</member>
<member>
@@ -279,21 +280,18 @@
<sgmltag><rich:progressBar></sgmltag>
</member>
<member>
- <sgmltag><rich:scrollableDataTable></sgmltag>
+ <sgmltag><rich:tab></sgmltag>
</member>
<member>
- <sgmltag><rich:simpleTogglePanel></sgmltag>
+ <sgmltag><rich:toggleControl></sgmltag>
</member>
<member>
- <sgmltag><rich:suggestionBox></sgmltag>
+ <sgmltag><rich:togglePanel></sgmltag>
</member>
<member>
- <sgmltag><rich:tab></sgmltag>
+ <sgmltag><rich:togglePanelItem></sgmltag>
</member>
<member>
- <sgmltag><rich:toggleControl></sgmltag>
- </member>
- <member>
<sgmltag><rich:tree></sgmltag>
</member>
</simplelist>
@@ -345,6 +343,9 @@
<sgmltag><rich:ajaxValidator></sgmltag>
</member>
<member>
+ <sgmltag><rich:autocomplete></sgmltag>
+ </member>
+ <member>
<sgmltag><rich:calendar></sgmltag>
</member>
<member>
@@ -372,21 +373,18 @@
<sgmltag><rich:progressBar></sgmltag>
</member>
<member>
- <sgmltag><rich:scrollableDataTable></sgmltag>
+ <sgmltag><rich:tab></sgmltag>
</member>
<member>
- <sgmltag><rich:simpleTogglePanel></sgmltag>
+ <sgmltag><rich:toggleControl></sgmltag>
</member>
<member>
- <sgmltag><rich:suggestionBox></sgmltag>
+ <sgmltag><rich:togglePanel></sgmltag>
</member>
<member>
- <sgmltag><rich:tab></sgmltag>
+ <sgmltag><rich:togglePanelItem></sgmltag>
</member>
<member>
- <sgmltag><rich:toggleControl></sgmltag>
- </member>
- <member>
<sgmltag><rich:tree></sgmltag>
</member>
<member>
@@ -502,6 +500,9 @@
<sgmltag><rich:ajaxValidator></sgmltag>
</member>
<member>
+ <sgmltag><rich:autocomplete></sgmltag>
+ </member>
+ <member>
<sgmltag><rich:calendar></sgmltag>
</member>
<member>
@@ -529,21 +530,18 @@
<sgmltag><rich:progressBar></sgmltag>
</member>
<member>
- <sgmltag><rich:scrollableDataTable></sgmltag>
+ <sgmltag><rich:tab></sgmltag>
</member>
<member>
- <sgmltag><rich:simpleTogglePanel></sgmltag>
+ <sgmltag><rich:toggleControl></sgmltag>
</member>
<member>
- <sgmltag><rich:suggestionBox></sgmltag>
+ <sgmltag><rich:togglePanel></sgmltag>
</member>
<member>
- <sgmltag><rich:tab></sgmltag>
+ <sgmltag><rich:togglePanelItem></sgmltag>
</member>
<member>
- <sgmltag><rich:toggleControl></sgmltag>
- </member>
- <member>
<sgmltag><rich:tree></sgmltag>
</member>
<member>
@@ -595,6 +593,9 @@
<sgmltag><rich:ajaxValidator></sgmltag>
</member>
<member>
+ <sgmltag><rich:autocomplete></sgmltag>
+ </member>
+ <member>
<sgmltag><rich:calendar></sgmltag>
</member>
<member>
@@ -619,15 +620,9 @@
<sgmltag><rich:panelMenuItem></sgmltag>
</member>
<member>
- <sgmltag><rich:scrollableDataTable></sgmltag>
+ <sgmltag><rich:togglePanel></sgmltag>
</member>
<member>
- <sgmltag><rich:simpleTogglePanel></sgmltag>
- </member>
- <member>
- <sgmltag><rich:suggestionBox></sgmltag>
- </member>
- <member>
<sgmltag><rich:tab></sgmltag>
</member>
<member>
@@ -706,9 +701,6 @@
<sgmltag><rich:progressBar></sgmltag>
</member>
<member>
- <sgmltag><rich:simpleTogglePanel></sgmltag>
- </member>
- <member>
<sgmltag><rich:suggestionBox></sgmltag>
</member>
<member>
@@ -718,6 +710,12 @@
<sgmltag><rich:toggleControl></sgmltag>
</member>
<member>
+ <sgmltag><rich:togglePanel></sgmltag>
+ </member>
+ <member>
+ <sgmltag><rich:togglePanelItem></sgmltag>
+ </member>
+ <member>
<sgmltag><rich:toolTip></sgmltag>
</member>
<member>
@@ -887,7 +885,7 @@
</section>
<section id="sect-Migration_Guide-Feature_changes-a4jpush_and_a4jpoll">
- <title><sgmltag><a4J:push></sgmltag> and <sgmltag><a4j:poll></sgmltag></title>
+ <title><sgmltag><a4j:push></sgmltag> and <sgmltag><a4j:poll></sgmltag></title>
<para>
Both the <sgmltag><a4j:push></sgmltag> and <sgmltag><a4j:poll></sgmltag> components now raise a client-side event. For <sgmltag><a4j:push></sgmltag>, this is the <varname>ondataavailable</varname> event, while for <sgmltag><a4j:poll></sgmltag> it is the <varname>ontimeevent</varname>.
</para>
@@ -926,35 +924,63 @@
</listitem>
</itemizedlist>
</section>
- <!--
- <section id="sect-Migration_Guide-Feature_changes-richtogglePanel">
- <title><rich:togglePanel></title>
+
+ <section id="sect-Migration_Guide-Feature_changes-richpopupPanel">
+ <title><rich:popupPanel></title>
<para>
- Incomplete.
+ The <sgmltag><rich:popupPanel></sgmltag> component replaces the old <sgmltag><rich:modalPanel></sgmltag>. It allows the pop-up window to be presented as either a modal or non-modal window.
</para>
</section>
- <section id="sect-Migration_Guide-Feature_changes-richtabPanel">
- <title><rich:tabPanel></title>
+ <section id="sect-Migration_Guide-Features_changes-richtogglePanel">
+ <title><sgmltag><rich:togglePanel></sgmltag></title>
<para>
- Incomplete.
+ The <sgmltag><rich:togglePanel></sgmltag> no longer uses facets for managing switchable panels.
</para>
</section>
+ </section>
+
+ <section id="sect-Migration_Guide-Changes_and_new_features-Consolidated_or_renamed_components">
+ <title>Consolidated or renamed components</title>
+ <para>
+ Several new components and behaviors have been added to <productname>RichFaces</productname> &VERSION;, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the <citetitle>Component Reference</citetitle>.
+ </para>
- <section id="sect-Migration_Guide-Feature_changes-richtoolBar">
- <title><rich:toolBar></title>
+ <section id="sect-Migration_Guide-Consolidated_or_renamed_components-richautocomplete">
+ <title><sgmltag><rich:autocomplete></sgmltag></title>
<para>
- Incomplete.
+ The <sgmltag><rich:autocomplete></sgmltag> component combines and replaces the old <sgmltag><rich:comboBox></sgmltag> and <sgmltag><rich:suggestionBox></sgmltag> components.
</para>
</section>
- <section id="sect-Migration_Guide-Feature_changes-richtoolTip">
- <title><rich:toolTip></title>
+ <section id="sect-Migration_Guide-Consolidated_or_renamed_components-richaccordion_and_richaccordionItem">
+ <title><sgmltag><rich:accordion></sgmltag> and <sgmltag><rich:accordionItem></sgmltag></title>
<para>
- Incomplete.
+ The <sgmltag><rich:accordion></sgmltag> component replaces the old <sgmltag><rich:panelBar></sgmltag> component. The <sgmltag><rich:accordionItem></sgmltag> component replaces the old <sgmltag><rich:panelBarItem></sgmltag> component.
</para>
</section>
- -->
+
+ <section id="sect-Migration_Guide-Consolidated_or_renamed_components-richextendedDataTable">
+ <title><sgmltag><rich:extendedDataTable></sgmltag></title>
+ <para>
+ The <sgmltag><rich:extendedDataTable></sgmltag> component now includes the functionality of the old <sgmltag><rich:scrollableDataTable></sgmltag> component.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Consolidated_or_renamed_components-richpopupPanel">
+ <title><sgmltag><rich:popupPanel></sgmltag></title>
+ <para>
+ The <sgmltag><rich:popupPanel></sgmltag> component replaces the old <sgmltag><rich:modalPanel></sgmltag> component.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Consolidated_or_renamed_components-richtogglePanel_and_richtogglePanelItem">
+ <title><sgmltag><rich:togglePanel></sgmltag> and <sgmltag><rich:togglePanelItem></sgmltag></title>
+ <para>
+ The functionality of the old <sgmltag><rich:togglePanel></sgmltag> component has been divided into two separate components: the <sgmltag><rich:togglePanel></sgmltag> and <sgmltag><rich:togglePanelItem></sgmltag> components. This naming now follows the convention of other switchable panel components.
+ </para>
+ </section>
+
</section>
<section id="sect-Migration_Guide-Changes_and_new_features-New_components_and_behaviors">
@@ -962,7 +988,6 @@
<para>
Several new components and behaviors have been added to <productname>RichFaces</productname> &VERSION;, some of which replace the functionality of deprecated elements. For full details on how to use these new components and behaviors, refer to the <citetitle>Developer Guide</citetitle>.
</para>
- <!-- dataTable, dataLists, trees possibly included here as they may be consolidated -->
<section id="sect-Migration_Guide-New_components_and_behaviors-richbusyBehavior">
<title><sgmltag><rich:busyBehavior></sgmltag></title>
@@ -971,36 +996,55 @@
</para>
</section>
- <!--
- <section id="sect-Migration_Guide-New_components_and_behaviors-richpopupPanel">
- <title><sgmltag><rich:popupPanel></sgmltag></title>
+ <section id="sect-Migration_Guide-New_components_and_behaviors-richtogglePanelItem">
+ <title><sgmltag><rich:togglePanelItem></sgmltag></title>
<para>
- Incomplete.
+ The <sgmltag><rich:togglePanel></sgmltag> component now manages multiple <sgmltag><rich:togglePanelItem></sgmltag> components instead of using facets for the switchable panels. Refer to <xref linkend="sect-Migration_Guide-Consolidated_or_renamed_components-richtogglePanel_and_richtogglePanelItem" /> and the components' descriptions in the <citetitle>Component Reference</citetitle> for further details.
</para>
</section>
- -->
</section>
<section id="sect-Migration_Guide-Changes_and_new_features-Deprecated_components_and_behaviors">
<title>Deprecated components and behaviors</title>
<para>
- Some components and behaviors have been deprecated in <productname>RichFaces</productname> &VERSION;. For the most part these items have their functionality replicated by another component or behavior.
+ Some components and behaviors have been deprecated in <productname>RichFaces</productname> &VERSION;. For the most part these items have their functionality replicated by another component or behavior. Refer to <xref linkend="sect-Migration_Guide-Changes_and_new_features-Consolidated_or_renamed_components" /> for further details on consolidated functionality.
</para>
+
<section id="sect-Migration_Guide-Deprecated_components_and_behaviors-a4jpage">
<title><sgmltag><a4j:page></sgmltag></title>
<para>
<productname>RichFaces</productname> &VERSION; drops support for the <sgmltag><a4j:page></sgmltag> component. The component was previously used for solving incompatibility in the JavaServer Pages (<acronym>JSP</acronym>) environment with Apache MyFaces in early Ajax4jsf versions.
</para>
</section>
- <!--
+
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richcomboBox_and_richsuggestionBox">
+ <title><sgmltag><rich:comboBox></sgmltag> and <sgmltag><rich:suggestionBox></sgmltag></title>
+ <para>
+ The functionality of the old <sgmltag><rich:comboBox></sgmltag> and <sgmltag><rich:suggestionBox></sgmltag> components is now available through the <sgmltag><rich:autocomplete></sgmltag> component.
+ </para>
+ </section>
+
<section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richmodalPanel">
<title><sgmltag><rich:modalPanel></sgmltag></title>
<para>
- Incomplete.
+ The functionality of the old <sgmltag><rich:modalPanel></sgmltag> component is now available through the <sgmltag><rich:popupPanel></sgmltag> component.
</para>
</section>
- -->
+
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richpanelBar_and_richpanelBarItem">
+ <title><sgmltag><rich:panelBar></sgmltag> and <sgmltag><rich:panelBarItem></sgmltag></title>
+ <para>
+ The functionality of the old <sgmltag><rich:panelBar></sgmltag> component is now available through the <sgmltag><rich:accordion></sgmltag> component. The functionality of the old <sgmltag><rich:panelBarIten></sgmltag> component is now available through the <sgmltag><rich:accordionItem></sgmltag> component.
+ </para>
+ </section>
+
+ <section id="sect-Migration_Guide-Deprecated_components_and_behaviors-richscrollableDataTable">
+ <title><sgmltag><rich:scrollableDataTable></sgmltag></title>
+ <para>
+ The functionality of the old <sgmltag><rich:scrollableDataTable></sgmltag> component is now available through the <sgmltag><rich:extendedDataTable></sgmltag> component.
+ </para>
+ </section>
+
</section>
-
</chapter>
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Introduction.xml
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Introduction.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Introduction.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Migration_Guide-Introduction">
<title>Introduction</title>
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.ent
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.ent 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.ent 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,6 +1,5 @@
<!ENTITY PRODUCT "RichFaces">
<!ENTITY VERSION "4.0">
-<!ENTITY VERSIONLONG "4.0.0.ALPHA2">
<!ENTITY BOOKID "Migration_Guide">
<!ENTITY HOLDER "Red Hat Inc.">
<!ENTITY YEAR "2009">
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.xml
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Migration_Guide.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
-%BOOK_ENTITIES;
]>
<book status="draft">
<xi:include href="Book_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Preface.xml
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Preface.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Preface.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
-%BOOK_ENTITIES;
]>
<preface id="pref-Migration_Guide-Preface">
<title>Preface</title>
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Revision_History.xml
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Revision_History.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Revision_History.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
-%BOOK_ENTITIES;
]>
<appendix id="appe-Migration_Guide-Revision_History">
<title>Revision History</title>
Modified: modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Upgrading.xml
===================================================================
--- modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Upgrading.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/Migration_Guide/src/main/docbook/en-US/Upgrading.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -1,7 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % BOOK_ENTITIES SYSTEM "Migration_Guide.ent">
-%BOOK_ENTITIES;
]>
<chapter id="chap-Migration_Guide-Upgrading">
<title>Upgrading</title>
@@ -49,6 +47,7 @@
</para>
</listitem>
</itemizedlist>
+ <!--
<para>
Existing projects should already contain the following libraries; if not, they will need to be included in the libraries directory as well:
</para>
@@ -74,6 +73,7 @@
</para>
</listitem>
</itemizedlist>
+ -->
</step>
<step id="step-Migration_Guide-Installation-Set_up_Maven">
<title>Set up Maven</title>
Modified: modules/docs/trunk/bundle_docs.sh
===================================================================
--- modules/docs/trunk/bundle_docs.sh 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/bundle_docs.sh 2010-08-24 04:06:04 UTC (rev 18942)
@@ -23,19 +23,12 @@
echo "[BUNDLE_DOCS] -> Copying Migration Guide..."
mkdir $DOCSDIR/$VERSION/Migration_Guide
cp -r $DOCSDIR/Migration_Guide/target/docbook/publish/* $DOCSDIR/$VERSION/Migration_Guide/
-
-echo "[BUNDLE_DOCS] Building CDK docs..."
-cd ../..
-cd ./cdk/trunk/docs/Component_Development_Kit_Guide/
-mvn clean install
-
-echo "[BUNDLE_DOCS] Copying docs to bundle:"
echo "[BUNDLE_DOCS] -> Copying Component Development Kit Guide..."
mkdir $DOCSDIR/$VERSION/Component_Development_Kit_Guide
-cp -r ./target/docbook/publish/* $DOCSDIR/$VERSION/Component_Development_Kit_Guide/
+cp -r $DOCSDIR/Component_Development_Kit_Guide/target/docbook/publish/* $DOCSDIR/$VERSION/Component_Development_Kit_Guide/
echo "[BUNDLE_DOCS] Zipping bundle..."
-cd $DOCSDIR
-zip -r $VERSION.zip $DOCSDIR/$VERSION
+cd $DOCSDIR/$VERSION/
+zip -r $VERSION.zip *
echo "[BUNDLE_DOCS] Bundle complete."
Modified: modules/docs/trunk/parent/pom.xml
===================================================================
--- modules/docs/trunk/parent/pom.xml 2010-08-23 23:09:34 UTC (rev 18941)
+++ modules/docs/trunk/parent/pom.xml 2010-08-24 04:06:04 UTC (rev 18942)
@@ -44,12 +44,12 @@
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossorg-docbook-xslt</artifactId>
- <version>1.1.0</version>
+ <version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.jboss</groupId>
<artifactId>jbossorg-jdocbook-style</artifactId>
- <version>1.1.0</version>
+ <version>1.1.1</version>
<type>jdocbook-style</type>
</dependency>
</dependencies>
15 years, 1 month
JBoss Rich Faces SVN: r18941 - modules/docs/branches/draft.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-08-23 19:09:34 -0400 (Mon, 23 Aug 2010)
New Revision: 18941
Modified:
modules/docs/branches/draft/bundle_docs.sh
modules/docs/branches/draft/pom.xml
Log:
Updated build and bundling
Modified: modules/docs/branches/draft/bundle_docs.sh
===================================================================
--- modules/docs/branches/draft/bundle_docs.sh 2010-08-23 22:50:39 UTC (rev 18940)
+++ modules/docs/branches/draft/bundle_docs.sh 2010-08-23 23:09:34 UTC (rev 18941)
@@ -23,19 +23,12 @@
echo "[BUNDLE_DOCS] -> Copying Migration Guide..."
mkdir $DOCSDIR/$VERSION/Migration_Guide
cp -r $DOCSDIR/Migration_Guide/target/docbook/publish/* $DOCSDIR/$VERSION/Migration_Guide/
-
-echo "[BUNDLE_DOCS] Building CDK docs..."
-cd ../..
-cd ./cdk/trunk/docs/Component_Development_Kit_Guide/
-mvn clean install
-
-echo "[BUNDLE_DOCS] Copying docs to bundle:"
echo "[BUNDLE_DOCS] -> Copying Component Development Kit Guide..."
mkdir $DOCSDIR/$VERSION/Component_Development_Kit_Guide
-cp -r ./target/docbook/publish/* $DOCSDIR/$VERSION/Component_Development_Kit_Guide/
+cp -r $DOCSDIR/Component_Development_Kit_Guide/target/docbook/publish/* $DOCSDIR/$VERSION/Component_Development_Kit_Guide/
echo "[BUNDLE_DOCS] Zipping bundle..."
-cd $DOCSDIR
-zip -r $VERSION.zip $DOCSDIR/$VERSION
+cd $DOCSDIR/$VERSION/
+zip -r $VERSION.zip *
echo "[BUNDLE_DOCS] Bundle complete."
Modified: modules/docs/branches/draft/pom.xml
===================================================================
--- modules/docs/branches/draft/pom.xml 2010-08-23 22:50:39 UTC (rev 18940)
+++ modules/docs/branches/draft/pom.xml 2010-08-23 23:09:34 UTC (rev 18941)
@@ -18,6 +18,7 @@
<module>Component_Reference</module>
<module>Developer_Guide</module>
<module>Migration_Guide</module>
+ <module>Component_Development_Kit_Guide</module>
</modules>
<scm>
15 years, 1 month
JBoss Rich Faces SVN: r18940 - branches/RFPL-434.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-08-23 18:50:39 -0400 (Mon, 23 Aug 2010)
New Revision: 18940
Modified:
branches/RFPL-434/
Log:
Initialized merge tracking via "svnmerge" with revisions "1-18938" from
https://svn.jboss.org/repos/richfaces/trunk
Property changes on: branches/RFPL-434
___________________________________________________________________
Name: svnmerge-integrated
- /branches/RFPL-754:1-18909
+ /branches/RFPL-754:1-18909 /trunk:1-18938
15 years, 1 month
JBoss Rich Faces SVN: r18938 - in trunk/ui/core/ui/src/main/java/org: richfaces/renderkit/html and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-08-23 13:12:17 -0400 (Mon, 23 Aug 2010)
New Revision: 18938
Removed:
trunk/ui/core/ui/src/main/java/org/ajax4jsf/component/AbstractPoll.java
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
Log:
https://jira.jboss.org/browse/RF-9054
Removed AbstractPoll legacy class
Deleted: trunk/ui/core/ui/src/main/java/org/ajax4jsf/component/AbstractPoll.java
===================================================================
--- trunk/ui/core/ui/src/main/java/org/ajax4jsf/component/AbstractPoll.java 2010-08-23 16:55:52 UTC (rev 18937)
+++ trunk/ui/core/ui/src/main/java/org/ajax4jsf/component/AbstractPoll.java 2010-08-23 17:12:17 UTC (rev 18938)
@@ -1,67 +0,0 @@
-/**
- * License Agreement.
- *
- * Rich Faces - Natural Ajax for Java Server Faces (JSF)
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-package org.ajax4jsf.component;
-
-import org.richfaces.component.AbstractActionComponent;
-
-/**
- * Component for periodically call AJAX events on server ( poll actions )
- * @author shura
- *
- */
-//@JsfComponent
-public abstract class AbstractPoll extends AbstractActionComponent {
- public static final String COMPONENT_TYPE = "org.ajax4jsf.Poll";
-
- private transient boolean submitted = false;
-
- /**
- * @return the submitted
- */
- public boolean isSubmitted() {
- return submitted;
- }
-
- /**
- * @param submitted the submitted to set
- */
- public void setSubmitted(boolean submitted) {
- this.submitted = submitted;
- }
-
- /**
- * @return time in mc for polling interval.
- */
- public abstract int getInterval();
-
- /**
- * @param interval time in mc for polling interval.
- */
- public abstract void setInterval(int interval);
-
- public abstract boolean isEnabled();
-
- public abstract void setEnabled(boolean enable);
-
-}
Modified: trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java
===================================================================
--- trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java 2010-08-23 16:55:52 UTC (rev 18937)
+++ trunk/ui/core/ui/src/main/java/org/richfaces/renderkit/html/AjaxPollRenderer.java 2010-08-23 17:12:17 UTC (rev 18938)
@@ -29,6 +29,7 @@
import javax.faces.application.ResourceDependency;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import javax.faces.context.PartialViewContext;
import javax.faces.context.ResponseWriter;
import javax.faces.event.ActionEvent;
@@ -56,12 +57,18 @@
public static final String RENDERER_TYPE = "org.richfaces.PollRenderer";
private static final String AJAX_POLL_FUNCTION = "RichFaces.startPoll";
+ private void addComponentToAjaxRender(FacesContext context, UIComponent component) {
+ PartialViewContext pvc = context.getPartialViewContext();
+ pvc.getRenderIds().add(component.getClientId(context));
+ }
+
@Override
protected void queueComponentEventForBehaviorEvent(FacesContext context, UIComponent component, String eventName) {
super.queueComponentEventForBehaviorEvent(context, component, eventName);
if (AbstractPoll.TIMER.equals(eventName)) {
new ActionEvent(component).queue();
+ addComponentToAjaxRender(context, component);
}
}
@@ -133,6 +140,7 @@
Map<String, String> requestParameterMap = context.getExternalContext().getRequestParameterMap();
if (requestParameterMap.get(poll.getClientId(context)) != null) {
new ActionEvent(poll).queue();
+ addComponentToAjaxRender(context, component);
}
}
}
15 years, 1 month
JBoss Rich Faces SVN: r18937 - trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-08-23 12:55:52 -0400 (Mon, 23 Aug 2010)
New Revision: 18937
Modified:
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js
Log:
Added missing attachToDom(...) call in log.js
Modified: trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js
===================================================================
--- trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js 2010-08-23 16:20:07 UTC (rev 18936)
+++ trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js 2010-08-23 16:55:52 UTC (rev 18937)
@@ -170,6 +170,7 @@
init: function(options) {
this.$super.constructor.call(this, 'richfaces.log');
+ this.attachToDom();
this.__initialLogImpl = richfaces.log;
richfaces.log = this;
15 years, 1 month
JBoss Rich Faces SVN: r18936 - trunk/ui/input/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2010-08-23 12:20:07 -0400 (Mon, 23 Aug 2010)
New Revision: 18936
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteListLayoutStrategy.java
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java
Log:
Checkstyle fix
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteListLayoutStrategy.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteListLayoutStrategy.java 2010-08-23 15:59:38 UTC (rev 18935)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteListLayoutStrategy.java 2010-08-23 16:20:07 UTC (rev 18936)
@@ -24,7 +24,7 @@
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement(HTML.UL_ELEMENT, component);
responseWriter.writeAttribute(HTML.ID_ATTRIBUTE, getContainerElementId(facesContext, component), null);
- responseWriter.writeAttribute(HTML.CLASS_ATTRIBUTE, "cb_list_ul", null);
+ responseWriter.writeAttribute(HTML.CLASS_ATTRIBUTE, "rf-au-list-ul", null);
}
public void encodeItemsContainerEnd(FacesContext facesContext, UIComponent component) throws IOException {
@@ -36,7 +36,7 @@
ResponseWriter writer = facesContext.getResponseWriter();
writer.startElement(HTML.LI_ELEMENT, comboBox);
- writer.writeAttribute(HTML.CLASS_ATTRIBUTE, "cb_option cb_font rf-ac-i", null);
+ writer.writeAttribute(HTML.CLASS_ATTRIBUTE, "rf-au-option rf-au-font rf-au-input", null);
if (comboBox.getChildCount() > 0) {
for (UIComponent child : comboBox.getChildren()) {
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java 2010-08-23 15:59:38 UTC (rev 18935)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java 2010-08-23 16:20:07 UTC (rev 18936)
@@ -12,7 +12,7 @@
public class AutocompleteTableLayoutStrategy extends AbstractAutocompleteLayoutStrategy implements
AutocompleteEncodeStrategy {
- public void encodeFakeItem(FacesContext facesContext, UIComponent component) throws IOException {
+ public void encodeFakeItem(FacesContext facesContext, UIComponent component) throws IOException {
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement(HTML.TD_ELEM, component);
responseWriter.writeAttribute(HTML.STYLE_ATTRIBUTE, "display:none", null);
15 years, 1 month
JBoss Rich Faces SVN: r18935 - trunk/ui/input/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: amarkhel
Date: 2010-08-23 11:59:38 -0400 (Mon, 23 Aug 2010)
New Revision: 18935
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteDivLayoutStrategy.java
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java
Log:
Rename css classes
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteDivLayoutStrategy.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteDivLayoutStrategy.java 2010-08-23 15:58:23 UTC (rev 18934)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteDivLayoutStrategy.java 2010-08-23 15:59:38 UTC (rev 18935)
@@ -58,7 +58,7 @@
ResponseWriter writer = facesContext.getResponseWriter();
writer.startElement(HTML.DIV_ELEM, comboBox);
- writer.writeAttribute(HTML.CLASS_ATTRIBUTE, "cb_option cb_font rf-ac-i", null);
+ writer.writeAttribute(HTML.CLASS_ATTRIBUTE, "rf-au-option rf-au-font rf-au-input", null);
if (comboBox.getChildCount() > 0) {
for (UIComponent child : comboBox.getChildren()) {
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java 2010-08-23 15:58:23 UTC (rev 18934)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/AutocompleteTableLayoutStrategy.java 2010-08-23 15:59:38 UTC (rev 18935)
@@ -4,31 +4,63 @@
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import javax.faces.context.ResponseWriter;
+import org.ajax4jsf.renderkit.RendererUtils.HTML;
import org.richfaces.component.AbstractAutocomplete;
public class AutocompleteTableLayoutStrategy extends AbstractAutocompleteLayoutStrategy implements
AutocompleteEncodeStrategy {
- public void encodeFakeItem(FacesContext facesContext, UIComponent component) throws IOException {
- // TODO Auto-generated method stub
+ public void encodeFakeItem(FacesContext facesContext, UIComponent component) throws IOException {
+ ResponseWriter responseWriter = facesContext.getResponseWriter();
+ responseWriter.startElement(HTML.TD_ELEM, component);
+ responseWriter.writeAttribute(HTML.STYLE_ATTRIBUTE, "display:none", null);
+ responseWriter.endElement(HTML.TD_ELEM);
}
public void encodeItemsContainerBegin(FacesContext facesContext, UIComponent component) throws IOException {
- // TODO Auto-generated method stub
-
+ ResponseWriter responseWriter = facesContext.getResponseWriter();
+ responseWriter.startElement(HTML.TABLE_ELEMENT, component);
+ responseWriter.writeAttribute(HTML.ID_ATTRIBUTE, getContainerElementId(facesContext, component), null);
+ responseWriter.startElement(HTML.TBODY_ELEMENT, component);
+ // responseWriter.writeAttribute(HTML.CLASS_ATTRIBUTE, "cb_list_ul", null);
}
public void encodeItemsContainerEnd(FacesContext facesContext, UIComponent component) throws IOException {
- // TODO Auto-generated method stub
-
+ ResponseWriter responseWriter = facesContext.getResponseWriter();
+ responseWriter.endElement(HTML.TABLE_ELEMENT);
+ responseWriter.endElement(HTML.TBODY_ELEMENT);
}
- public void encodeItem(FacesContext facesContext, AbstractAutocomplete comboBox, Object nextItem)
- throws IOException {
- // TODO Auto-generated method stub
+ public void encodeItem(FacesContext facesContext, AbstractAutocomplete comboBox, Object item) throws IOException {
+ ResponseWriter writer = facesContext.getResponseWriter();
+ writer.startElement(HTML.TD_ELEM, comboBox);
+ writer.writeAttribute(HTML.CLASS_ATTRIBUTE, "rf-au-option rf-au-font rf-au-input", null);
+
+ if (comboBox.getChildCount() > 0) {
+ for (UIComponent child : comboBox.getChildren()) {
+ child.encodeAll(facesContext);
+ }
+ } else {
+ if (item != null) {
+ // TODO nick - use converter
+ String value = null;
+ if (comboBox.getItemConverter() != null) {
+ value = comboBox.getItemConverter().getAsString(facesContext, comboBox, item);
+ }
+ if (value != null) {
+ writer.writeText(value, null);
+ }
+ writer.writeText(item, null);
+ // writer.writeText(InputUtils.getConvertedValue(facesContext, comboBox, item), null);
+ }
+ }
+
+ writer.endElement(HTML.TD_ELEM);
+
}
}
15 years, 1 month
JBoss Rich Faces SVN: r18934 - in modules/tests/metamer/trunk: application and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-08-23 11:58:23 -0400 (Mon, 23 Aug 2010)
New Revision: 18934
Modified:
modules/tests/metamer/trunk/application/pom.xml
modules/tests/metamer/trunk/ftest-source/pom.xml
modules/tests/metamer/trunk/ftest/pom.xml
modules/tests/metamer/trunk/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: modules/tests/metamer/trunk/application/pom.xml
===================================================================
--- modules/tests/metamer/trunk/application/pom.xml 2010-08-23 15:58:11 UTC (rev 18933)
+++ modules/tests/metamer/trunk/application/pom.xml 2010-08-23 15:58:23 UTC (rev 18934)
@@ -19,7 +19,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20100822-M2</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/ftest/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest/pom.xml 2010-08-23 15:58:11 UTC (rev 18933)
+++ modules/tests/metamer/trunk/ftest/pom.xml 2010-08-23 15:58:23 UTC (rev 18934)
@@ -30,14 +30,14 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-ftest</artifactId>
- <version>4.0.0.20100822-M2</version>
+ <version>4.0.0-SNAPSHOT</version>
<name>Metamer: RichFaces Testing Application - Functional Test</name>
<packaging>pom</packaging>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
- <url>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/tr...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk...</developerConnection>
+ <url>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/tr...</url>
</scm>
<licenses>
Modified: modules/tests/metamer/trunk/ftest-source/pom.xml
===================================================================
--- modules/tests/metamer/trunk/ftest-source/pom.xml 2010-08-23 15:58:11 UTC (rev 18933)
+++ modules/tests/metamer/trunk/ftest-source/pom.xml 2010-08-23 15:58:23 UTC (rev 18934)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20100822-M2</version>
+ <version>4.0.0-SNAPSHOT</version>
</parent>
<groupId>org.richfaces.tests</groupId>
Modified: modules/tests/metamer/trunk/pom.xml
===================================================================
--- modules/tests/metamer/trunk/pom.xml 2010-08-23 15:58:11 UTC (rev 18933)
+++ modules/tests/metamer/trunk/pom.xml 2010-08-23 15:58:23 UTC (rev 18934)
@@ -31,7 +31,7 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-root</artifactId>
- <version>4.0.0.20100822-M2</version>
+ <version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Metamer: RichFaces Testing Application - Project Root</name>
@@ -50,9 +50,9 @@
</licenses>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/tags/...</developerConnection>
- <url>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/ta...</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</developerConnection>
+ <url>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk</url>
</scm>
<distributionManagement>
15 years, 1 month