Skip to end of banner
Go to start of banner

AutocompleteWithIcon

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

AutocompleteWithIcon composite component is used to provides a list of suggestions while an input is being typed.

The component itself is accessed through the <crm:autocompleteWithIcon> tag and is defined in the xmlns namespace with the declaration xmlns:em="http://java.sun.com/jsf/composite/crm"


Attributes

NameRequiredTypeDefaultDescription
classNamefalseStringnullThe class name of the value of the component

columnClasses

falseStringui-grid-col-12Comma separated list of column style classes of the gird layout that will be used to display the component.
completeMethodfalseBooleanfalseThe name of the client side method to provide suggestions.
columnsfalseInteger1Number of columns of the gird layout that will be used to display the component.
dropdownfalseBooleanfalseEnables dropdown mode when set true.
filterfalseBooleannullRenders an input field as a filter
forceSelectionfalseBooleantrueWhen enabled, autoComplete only accepts input from the selection list.
iconfalseStringnullThe icon class.
idfalseStringnullUnique identifier of the component.
itemLabelfalseStringnullLabel of the suggestion item.
labelKeyfalseStringnullLabel key that is defined in translation properties file and its translation will be used as the presentable name of the component.
managedBeanfalseStringnullThe name of the managed bean that will be used for retrieving the component values.
maxResultsfalseInteger20Maximum number of results to be displayed.
minQueryLengthfalseInteger1Number of characters to be typed before starting to query.
modefalseStringThe mode of the managed bean.The mode of the component. Allowed values are VIEW and EDIT.
multiplefalseBooleanfalse

Flag indicating that multiple selection is enabled or not.

 

onChangeFunctionfalseStringnull

The name of the client side callback to execute when input element loses focus and its value has been modified since gaining focus.

parametersfalseStringnullThe parameter of the client side callback.
placeholderfalseStringkey_type_to_searchLabel key that is defined in translation properties file and its translation will be used as a short hint that describes the expected value of this input element.
processfalseString@this and the value of the refresh attributeComponent(s) to process in partial request.
readonlyfalseBooleanFlag indicating that this component will prevent changes by the user.Flag indicating that this component will prevent changes by the user.
refreshfalseString@thisComponent(s) to update with ajax.
tipfalseStringnullLabel key that is defined in translation properties file and its translation will be used as an advisory tooltip information.
valuefalseObjectnullThe value of the component.
visiblefalseBooleantrueControls the visibility of the component.


Examples

 JSF Page

 

 

 

 

 

 

Managed Bean

 

 

 


  • No labels