A standard input control for filtering a specified select or table control. You can only use this control in a Form control.
Select Filtering
The following select controls are filterable:
Because the Combobox
and the Auto-complete Text Input
controls enable users to type in an auto-completed value, you should not use these controls with a Filter Input
control. However, you could use an IFilterableSelectItemGroupProvider
provider with these controls.
If a select control has a single Option Group bound to a provider that implements com.webmethods.caf.faces.data.IFilterableSelectItemGroupProvider
, and the provider's isFilterable()
method returns a value of true, then the filtering is done on the server, by the provider, using the provider's filter
property value to filter the collection of items returned by its getSelectItemContentProviders()
method.
The default ISelectItemGroupProvider
, which is com.webmethods.caf.faces.data.object.DefaultSelectItemContentProvider
, implements IFilterableSelectItemGroupProvider
, but by default returns a value of false for the isFilterable()
method.
If a select control is not bound to a provider that implements IFilterableSelectItemGroupProvider
, the filtering is done on the client, using the standard common search keyword rules such as * = wildcard, space = and, quotes = exact phrase.
Table Filtering
If a table control is bound to com.webmethods.caf.faces.data.IFilterableTableContentProvider
, and the provider's isFilterable()
method returns a value of true, the filtering is done on the server, by the
provider, using the provider's filter
property value to filter the rows over which the
provider can iterate.
With the default IFilterableTableContentProvider
implementations (com.webmethods.caf.faces.data.object.FilterableListTableContentProvider
and com.webmethods.caf.faces.data.object.FilterableSelectableListTableContentProvider
), you must initialize the provider with a binding expression to use to calculate the value to filter on for each row. For example, you might use a filter value binding of #{row.title} #{row.description}
to filter on the title and description fields of each row.
If a table control is not bound to an IFilterableTableContentProvider
that is filterable, then filtering is done on the client, over the entire textual content of the row, using the standard common search keyword rules such as * = wildcard, space = and, quotes = exact phrase.
Select and Table Filtering
You can set the default filter for a table or select control by means of the select control's filter
property value.
Children
javax.faces.SelectItem
(JSF Option control) and javax.faces.SelectItems
(JSF Option Group control).
Info | Value |
---|---|
Component Type | com.webmethods.caf.faces.select.FilterInput |
Handler Class | None |
Renderer Type | com.webmethods.caf.faces.select.FilterInput |
Description | Standard input control for filtering a select or table control |
Palette Location | CAF Html/Control/Input/Filter Input |
Client-Side Model | CAF.FilterInput.Model |
Name | Required | Type | Description |
---|---|---|---|
accesskey | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Keyboard shortcut letter |
dir | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
Specifies the directionality of the flow of the content for the current element
Valid values are:
|
disabled | false | javax.el.ValueExpression
(must evaluate to boolean )
|
True if control is grayed-out and un-modifiable
If not specified, the default value is "false". |
for | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Id of select or table control to filter |
id | false | java.lang.String | Control identifier |
labelText | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Text for the label |
lang | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Specifies the language of the enclosed content |
readonly | false | javax.el.ValueExpression
(must evaluate to boolean )
|
True if control is un-modifiable
If not specified, the default value is "false". |
rendered | false | javax.el.ValueExpression
(must evaluate to boolean )
|
True to render control; false to ignore it
If not specified, the default value is "true". |
showGoButton | false | javax.el.ValueExpression
(must evaluate to boolean )
|
True to show "Go" button
If not specified, the default value is "false". |
style | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML "style" attribute value |
styleClass | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
HTML "class" attribute value
Valid values are:
|
tabindex | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Order in tab (key) sequence, from 1 to n. Zero adds control to tab sequence, negative integer removes control. |
title | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| HTML "title" attribute value (often displayed as a tooltip) |
width | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
|
Pre-defined input width
Valid values are:
|
Output generated by Vdldoc View Declaration Language Documentation Generator.