rich
Tag suggestionbox


This element adds "on-keypress" suggestions capabilites to any input text component (like <h:inputText>). It creates a pop-up window for a input field component pointed to by the "for" attribute. For an ordinary request, render a hidden HTML <div> element and the necessary JavaScript code. When input to the target field exceeds the "minChars" property (default is 1), perform an AJAX request with the value current entered. If the AJAX request is detected and the request parameters map contains the client ID of this component, call a method defined by suggestionAction, and use it to return a value as data for render table, same as <h:dataTable>. In this case, the component then works the same as an ordinary dataTable. The rendered table is inserted in the pop-up area and is used for suggestion prompts for input element. If a user clicks on such a table row, its text (or value defined by fetchValue) is inserted as the value of the input field.


Tag Information
Tag Classorg.richfaces.taglib.SuggestionBoxTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
widthtruefalsejava.lang.StringWidth of the pop-up window in pixels
idfalsefalsejava.lang.StringEvery component may have a unique id that is automatically created if omitted
dirfalsefalsejava.lang.StringAlternate textual description of the element rendered by this component
bypassUpdatesfalsefalsejava.lang.StringIf true, after process validations phase it skips updates of model beans on a force render response. It can be used for validating components input
popupClassfalsefalsejava.lang.StringHTML CSS class attribute of element for pop-up suggestion content
limitToListfalsefalsejava.lang.StringIf "true", updates on client side ONLY elements from this 'reRender' property. If "false" (default) updates all rendered by ajax region components.
stylefalsefalsejava.lang.StringCSS style(s) is/are to be applied when this component is rendered
shadowOpacityfalsefalsejava.lang.StringHTML CSS class attribute of element for pop-up suggestion content
forfalsefalsejava.lang.Stringid (or full path of id's) of target components, for which this element must provide support. If a target component inside of the same <code>NamingContainer</code> (UIForm, UIData in base implementstions), can be simple value of the "id" attribute. For other cases must include id's of <code>NamingContainer</code> components, separated by ':'. For search from the root of components, must be started with ':'.
varfalsefalsejava.lang.StringA request-scope attribute under which the data object for the current row is exposed when iterating
summaryfalsefalsejava.lang.StringThis attribute provides a summary of the table's purpose and structure for user agents rendering to non-visual media such as speech and Braille
timeoutfalsefalsejava.lang.Stringresponse waiting time on a particular request. If a response is not received during this time, the request is aborted
rowsfalsefalsejava.lang.StringA number of rows to display, or zero for all remaining rows in the table
converterfalsefalsejava.lang.StringId of Converter to be used or reference to a Converter
langfalsefalsejava.lang.StringCode describing the language used in the generated markup for this component
firstfalsefalsejava.lang.StringA zero-relative row number of the first row to display
cellspacingfalsefalsejava.lang.StringThis attribute specifies how much space the user agent should leave between the table and the column on all four sides. The attribute also specifies the amount of space to leave between cells
shadowDepthfalsefalsejava.lang.StringPop-up shadow depth for suggestion content
fetchValuefalsefalsejava.lang.StringA value to set in the target input element on a choice suggestion that isn't shown in the suggestion table. It can be used for descriptive output comments for suggestions. If not set, all text in the suggestion row is set as a value
entryClassfalsefalsejava.lang.StringName of the CSS class for a suggestion entry element (table row)
onselectfalsefalsejava.lang.StringJavaScript code for call on select suggestion, after update value of target element
bindingfalsefalsejava.lang.StringThe attribute takes a value-binding expression for a component property of a backing bean
selfRenderedfalsefalsejava.lang.StringIf true, forces active Ajax region render response directly from stored components tree, bypasses page processing. Can be used for increase performance. Also, must be set to 'true' inside iteration components, such as dataTable
cellpaddingfalsefalsejava.lang.StringThis attribute specifies the amount of space between the border of the cell and its contents. If the value of this attribute is a pixel length, all four margins should be this distance from the contents. If the value of the attribute is percentage length, the top and bottom margins should be equally separated from the content based on percentage of the available vertical space, and the left and right margins should be equally separated from the content based on percentage of the available horizontal space
rowClassesfalsefalsejava.lang.StringrowClasses
titlefalsefalsejava.lang.StringAdvisory title information about markup elements generated for this component
oncompletefalsefalsejava.lang.StringJavaScript code for call after request completed on client side
rulesfalsefalsejava.lang.StringThis attribute specifies which rules will appear between cells within a table. The rendering of rules is user agent dependent. Possible values: * none: No rules. This is the default value. * groups: Rules will appear between row groups (see THEAD, TFOOT, and TBODY) and column groups (see COLGROUP and COL) only. * rows: Rules will appear between rows only. * cols: Rules will appear between columns only. * all: Rules will appear between all rows and columns.
popupStylefalsefalsejava.lang.StringHTML CSS style attribute of element for pop-up suggestion content
suggestionActionfalsefalsejava.lang.StringMethod call expression to get a collection of suggestion data on request. It must have one parameter with a type of Object vith content of input component and must return any type allowed for <h:datatable>
renderedfalsefalsejava.lang.StringIf "false", this component is rendered.
reRenderfalsefalsejava.lang.StringId['s] (in format of call UIComopnent.findComponent()) of components, rendered in case of AjaxRequest caused by this component. Can be single id, comma-separated list of Id's, or EL Expression with array or Collection
styleClassfalsefalsejava.lang.StringCorresponds to the HTML class attribute
heighttruefalsejava.lang.StringHeight of the pop-up window in pixels
selectedClassfalsefalsejava.lang.StringName of the CSS class for a selected suggestion entry element (table row)
borderfalsefalsejava.lang.StringThis attributes specifies the width (in pixels only) of the frame around a table
bgcolorfalsefalsejava.lang.StringDeprecated. This attribute sets the background color for the document body or table cells. This attribute sets the background color of the canvas for the document body (the BODY element) or for tables (the TABLE, TR, TH, and TD elements). Additional attributes for specifying text color can be used with the BODY element. This attribute has been deprecated in favor of style sheets for specifying background color information
selectValueClassfalsefalsejava.lang.StringName of the CSS class for a hidden suggestion entry element (table cell)
valuefalsefalsejava.lang.StringThe initial value to set when rendered for the first time
frequencyfalsefalsejava.lang.StringDelay (in seconds) before activating the suggestion pop-up
tokensfalsefalsejava.lang.StringThe list (or single value) of symbols which can be used for division chosen of suggestion pop-up values in a target element. After input of a symbol from the list suggestion pop-up it is caused again
statusfalsefalsejava.lang.StringID (in format of call UIComopnent.findComponent()) of Request status component.
requestDelayfalsefalsejava.lang.StringDelay (in ms.) for send ajax request on JavaScript event. In conjunction with events queue can reduce number of requests on keyboard or mouse move events.
eventsQueuefalsefalsejava.lang.StringName of requests queue to avoid send next request before complete other from same event. Can be used to reduce number of requests of frequently events (key press, mouse move etc.).
framefalsefalsejava.lang.Stringvoid|above|below|hsides|lhs|rhs|vsides|box|border [CI] This attribute specifies which sides of the frame surrounding a table will be visible. Possible values: * void: No sides. This is the default value. * above: The top side only. * below: The bottom side only. * hsides: The top and bottom sides only. * vsides: The right and left sides only. * lhs: The left-hand side only. * rhs: The right-hand side only. * box: All four sides. * border: All four sides.
immediatefalsefalsejava.lang.Stringimmediate
datafalsefalsejava.lang.StringSerialized (on default with JSON) data passed on the client by a developer on AJAX request. It's accessible via this.data
paramfalsefalsejava.lang.StringName the HTTP request parameter with the value of input element token. If not set, it be will sent as an input element name. In this case, input will perform validation and update the value
minCharsfalsefalsejava.lang.StringMinimal number of chars in input to activate suggestion pop-up
ignoreDupResponsesfalsefalsejava.lang.StringIf true, unfinished request will be aborted on new event

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.