• Settings
    • Locale
    • Change the locale of the datepicker, schedule and client side validation messages.

      Language
      English
      English
      English
      French
      German
      German
      German
      Italian
      Korean
      Spanish
      Catalan
      Dutch
      Portuguese
      Portuguese
      Arabic
      Arabic
      Bulgarian
      Bangla
      Bosnian
      Czech
      Greek
      Estonian
      Persian
      Finnish
      Danish
      Hindi
      Indonesian
      Icelandic
      Croatian
      Japanese
      Hungarian
      Hebrew
      Georgian
      Central Kurdish
      Khmer
      Kyrgyz
      Kazakh
      Lithuanian
      Latvian
      Malay
      Norwegian
      Polish
      Romanian
      Russian
      Slovak
      Slovenian
      Serbian
      Serbian
      Swedish
      Thai
      Turkish
      Ukrainian
      Uzbek
      Vietnamese
      Chinese
      Chinese
  • Resources

FuzzySearch

Fuzzy Search is a fast SublimeText-like fuzzy search for JavaScript.

FuzzySearch Tag Documentation

FuzzySearch is a select-one input with fuzzy search and autocomplete.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
ariaDescribedBy String false The aria-describedby attribute is used to define a component id that describes the current element for accessibility.
ariaLabelledBy String false
converter Converter false EL expression resolves to a converter instance or literal converter ID defining a component converter.
converterMessage String false
disabled boolean false false When true, component is disabled.
group String false
hideNoSelectionOption boolean false false Flag indicating that, if this component is activated by the user, The "no selection option", if any, must be hidden.
highlight boolean false true When true, matching text is highlighted.
immediate boolean false false When set true, process validations logic is executed at apply request values phase for this component.
label String false A localized user presentable name.
listItemsAtTheBeginning boolean false false When true, list items are shown before search.
onchange String false Client-side callback when selection changes.
placeholder String false Placeholder text for the search input.
required boolean false false Marks component as required.
requiredMessage String false
resultStyle String false Inline style for result items.
resultStyleClass String false Style class for result items.
style String false Inline style of the component.
styleClass String false Style class of the component.
submittedValue Object false
tabindex String false Tab index for accessibility.
unselectable boolean false true When true, selection can be cleared.
validator Validator false A method expression referring to a method validating the input.
validatorMessage String false
value Object false Value of the component.
valueChangeListener ValueChangeListener false A method binding expression referring to a method for handling a valuchangeevent.
Tag Documentation Widget Source
Basic Usage

Type in the fields to search the themes and time zones. The first search uses a converter and fires an AJAX change event.

aura
glass
lara
metal
nora

Usage


<style>
    .p-fuzzysearch-item b {
        color: red;
    }
</style>

<div class="card">
    <h5>Basic Usage</h5>
    <p>Type in the fields to search the themes and time zones. The first search uses a converter and fires an AJAX <i>change</i> event.</p>
    <h:form id="formBasicUsage">
        <p:growl id="messages"/>

        <h:panelGrid columns="2" cellpadding="4">
            <p:outputLabel value="Themes" for="@next"/>
            <pe:fuzzySearch id="txtTheme"
                            value="#{fuzzySearchController.selectedTheme}"
                            label="Theme"
                            placeholder="Search theme" listItemsAtTheBeginning="true"
                            converter="themeConverter">
                <p:ajax event="change" listener="#{fuzzySearchController.onChange}" update="messages"/>
                <f:selectItems value="#{fuzzySearchController.themes}" var="theme" itemLabel="#{theme.name}" itemValue="#{theme}"/>
            </pe:fuzzySearch>
            <p:spacer/>
            <p:spacer/>
            <p:outputLabel value="TimeZones" for="@next"/>
            <pe:fuzzySearch id="txtTimeZone" value="#{fuzzySearchController.selectedTimezone}"
                            placeholder="Search timezones">
                <f:selectItems value="#{fuzzySearchController.timezones}" var="timezone" itemLabel="#{timezone}" itemValue="#{timezone}"/>
            </pe:fuzzySearch>
            <p:spacer/>
            <p:commandButton value="Submit" actionListener="#{fuzzySearchController.onSubmit}" update="messages" process="@form" icon="pi pi-check"/>
        </h:panelGrid>
    </h:form>
</div>