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

Input Style

Themes

PrimeUIX
Aura Light Emerald Aura Light Emerald
Aura Dark Emerald Aura Dark Emerald
PrimeOne
Saga Blue Saga Blue
Vela Blue Vela Blue
Arya Blue Arya Blue
Bootstrap
Bootstrap Blue Light Bootstrap Blue Light
Bootstrap Purple Light Bootstrap Purple Light
Bootstrap Blue Dark Bootstrap Blue Dark
Bootstrap Purple Dark Bootstrap Purple Dark
Material Design
Material Indigo Light Material Indigo Light
Material Deep Purple Light Material Deep Purple Light
Material Indigo Dark Material Indigo Dark
Material Deep Purple Dark Material Deep Purple Dark
Material Design Compact
Material Compact Indigo Light Material Compact Indigo Light
Material Compact Deep Purple Light Material Compact Deep Purple Light
Material Compact Indigo Dark Material Compact Indigo Dark
Material Compact Deep Purple Dark Material Compact Deep Purple Dark
Legacy
Nova Light Nova Light
Nova Dark Nova Dark
Nova Colored Nova Colored
Luna Amber Luna Amber
Luna Blue Luna Blue
Luna Green Luna Green
Luna Pink Luna Pink

Captcha

Captcha is based on reCAPTCHA API or hCaptcha API.

Captcha Tag Documentation

Captcha is a form validation component based on Recaptcha/hCaptcha API.

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.
callback String false Callback executed when the user submits a successful captcha response.
converter Converter false EL expression resolves to a converter instance or literal converter ID defining a component converter.
converterMessage String false
executor String false grecaptcha JavaScript global executor for the captcha.
expired String false Callback executed when the captcha response expires and the user needs to solve a new captcha.
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.
language String false en Key of the supported languages.
required boolean false false Marks component as required.
requiredMessage String false
size String false The size of the widget.
sourceUrl String false URL for the ReCaptcha JavaScript file. Some countries do not have access to Google.
submittedValue Object false
tabindex int false 0 Position of the input element in the tabbing order.
theme String false auto Theme of the captcha either 'light', 'dark', or 'auto'.
type String false g-recaptcha Which captcha to use, either 'g-recaptcha' for Google reCaptcha or 'h-captcha` for hCaptcha.
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.
verifyUrl String false URL for the verification of the captcha.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc

reCAPTCHA (API key is valid)


hCaptcha (API key is invalid)


Usage


<div class="card">
    <p:messages showDetail="true"/>

    <h2>reCAPTCHA (API key is valid)</h2>
    <h:form>
        <p:captcha label="reCaptcha" type="g-recaptcha"/>
        <br/>
        <p:commandButton value="Check reCaptcha" action="#{captchaView.submit}" ajax="false" icon="pi pi-check"/>
    </h:form>
    
    <h2>hCaptcha (API key is invalid)</h2>
    <h:form>
        <p:captcha label="hCaptcha" type="h-captcha"/>
        <br/>
        <p:commandButton value="Check hCaptcha" action="#{captchaView.submit}" ajax="false" icon="pi pi-check"/>
    </h:form>
</div>