public class Captcha extends CaptchaBase
CaptchaBase.CaptchaPropertyKeys
COMPONENT_TYPE, RENDERER_TYPE
COMPONENT_FAMILY, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
Constructor and Description |
---|
Captcha() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRequired()
required attribute description: |
protected void |
validateValue(javax.faces.context.FacesContext facesContext,
Object value) |
getLabel, getStyle, getStyleClass, getUrl, setLabel, setRequired, setStyle, setStyleClass, setUrl
addValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getFamily, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate
getConverter, getLocalValue, setConverter
addClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public boolean isRequired()
CaptchaBase
required
attribute description:
true
, when running in Liferay Portal 7.0 (and above) the Captcha.isRequired() method can return false
when an authenticated user has achieved a level of trust by correctly entering a maximum number of challenges. The maximum is defined by the captcha.max.challenges
property in the portal-ext.properties file, which is '1' by default. When an authenticated user has gained the necessary level of trust, the captcha will no longer be rendered (or required) for the remainder of the session. Non-authenticated users will never be considered trustworthy, and will always be required enter a correct value for the captcha, provided that the value of the required
property is true
. For more information, see the default values in the "Captcha" section of Liferay Portal's portal.properties file and LPS-40401.isRequired
in interface javax.faces.component.EditableValueHolder
isRequired
in class CaptchaBase
protected void validateValue(javax.faces.context.FacesContext facesContext, Object value)
validateValue
in class javax.faces.component.UIInput
Copyright © 2022 Liferay, Inc.. All rights reserved.