From richfaces-svn-commits at lists.jboss.org Mon Oct 18 02:53:35 2010 Content-Type: multipart/mixed; boundary="===============2003364710099227777==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r19591 - in modules/docs/branches/m4: Migration_Guide/src/main/docbook/en-US and 1 other directory. Date: Mon, 18 Oct 2010 02:53:35 -0400 Message-ID: <201010180653.o9I6rZ0F018784@svn01.web.mwc.hst.phx2.redhat.com> --===============2003364710099227777== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: SeanRogers Date: 2010-10-18 02:53:34 -0400 (Mon, 18 Oct 2010) New Revision: 19591 Modified: modules/docs/branches/m4/Component_Reference/src/main/docbook/en-US/chap= -Component_Reference-Rich_inputs.xml modules/docs/branches/m4/Migration_Guide/src/main/docbook/en-US/Changes_= and_new_features.xml Log: Started rich:selectOne and rich:calendar Modified: modules/docs/branches/m4/Component_Reference/src/main/docbook/en-= US/chap-Component_Reference-Rich_inputs.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/docs/branches/m4/Component_Reference/src/main/docbook/en-US/cha= p-Component_Reference-Rich_inputs.xml 2010-10-18 01:36:56 UTC (rev 19590) +++ modules/docs/branches/m4/Component_Reference/src/main/docbook/en-US/cha= p-Component_Reference-Rich_inputs.xml 2010-10-18 06:53:34 UTC (rev 19591) @@ -11,89 +11,143 @@ - This chapter details those components which act as panels and containers= to hold groups of other components. + This chapter details rich components for user input and interaction. = - - + = @@ -725,32 +779,55 @@ - = - - - +
+ <sgmltag><rich:selectOne></sgmltag> - The <rich:suggestionBox> component adds a feat= ure-rich drop-down list of suggestions to any text input component. + The <rich:selectOne> component provides a drop= -down list box for selecting a single value from multiple options. The comp= onent supports keyboard navigation and can optionally accept typed input as= a combo-box. - - The <rich:suggestionBox> component needs the a= ttributes defined for basic use: for, which identifies t= he component to attach the suggestion box to; suggestionAction, which defines the method for getting the collection of suggestion d= ata; and var, which defines a collection name for access= to the currently highlighted row. Typically the suggestions are presented = as a list with one or more columns of suggestion data; the layout of these = columns is defined inside the <rich:suggestionBox>= tags using <h:column> and other JSF components. - - - For suggestion lists with multiple columns, the fetchValue attribute can be used to specify which column is used when selecting= the value for the input component. - - - The tokens attribute can be used to define separator= characters, which are used when multiple values need to be entered and a n= ew suggestion made for each value. For example, tokens=3D"," (= a comma) will begin a new suggestion query each time a comma is typed. Mult= iple separators can be defined with spaces in between (tokens=3D", . = ; [ ]") or linking to a bean property that holds the collection of s= eparator tokens. - - - The minChars attribute can be used to limit sending = the Ajax request until a certain amount of characters has been entered. If = the query returns no results, an appropriate message to display can be set = with the nothingLabel attribute. - - - Instead of returning just one value from an object, the entire object c= an be returned to the client and handled appropriately. This is done by spe= cifying usingSuggestObjects=3D"true" and setting the = onobjectchange attribute to a JavaScript method to handle the obj= ect, passing the suggestion object as a parameter. - + +
+ Basic usage + + Simple usage of the <rich:selectOne> componen= t does not need any attributes declared, but child tags to manage the list = of selections are required. An <f:selectItem> tag = manages the currently selected value, while an <f:selectItems&g= t; tag points to the list of selection items. + +
+ + + = +
+ Reference data + + + + component-type: org.richfaces.sele= ctOne + + + + + component-class: org.richfaces.com= ponent.html.HtmlSelectOne + + + + + component-family: org.richfaces.se= lectOne + + + + + renderer-type: org.richfaces.rende= rkit.selectOneRenderer + + + + + tag-class: org.richfaces.taglib.se= lectOneTag + + + +
+ =
- --> = = Modified: modules/docs/branches/m4/Migration_Guide/src/main/docbook/en-US/C= hanges_and_new_features.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/docs/branches/m4/Migration_Guide/src/main/docbook/en-US/Changes= _and_new_features.xml 2010-10-18 01:36:56 UTC (rev 19590) +++ modules/docs/branches/m4/Migration_Guide/src/main/docbook/en-US/Changes= _and_new_features.xml 2010-10-18 06:53:34 UTC (rev 19591) @@ -949,7 +949,7 @@
<sgmltag><rich:autocomplete></sgmltag> - The <rich:autocomplete> component combines an= d replaces the old <rich:comboBox> and &l= t;rich:suggestionBox> components. + The <rich:autocomplete> component replaces th= e old <rich:suggestionBox> component.
= @@ -993,6 +993,13 @@ The <rich:popupPanel> component replaces the = old <rich:modalPanel> component. + +
+ <sgmltag><rich:selectOne></sgmltag> + + The <rich:selectOne> component replaces the o= ld <rich:comboBox> component. + +
=
<sgmltag><rich:togglePanel></sgmltag> and <sgmltag><ric= h:togglePanelItem></sgmltag> @@ -1037,10 +1044,10 @@
= -
- <sgmltag><rich:comboBox></sgmltag> and <sgmltag><rich:s= uggestionBox></sgmltag> +
+ <sgmltag><rich:comboBox></sgmltag> - The functionality of the old <rich:comboBox> = and <rich:suggestionBox> components is now availab= le through the <rich:autocomplete> component. + The functionality of the old <rich:comboBox> = component is now available through the <rich:selectOne> component.
= @@ -1079,6 +1086,13 @@
= +
+ <sgmltag><rich:suggestionBox></sgmltag> + + The functionality of the old <rich:suggestionBox> component is now available through the <rich:autocomplete&= gt; component. + +
+ = = --===============2003364710099227777==--