Class Exanpe.PasswordStrengthChecker
Represents a PasswordStrengthChecker.
Defined in: exanpe-t5-lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Exanpe.PasswordStrengthChecker(id, ajax, javascriptChecker, min, url, messages)
Constructor
|
Field Attributes | Field Name and Description |
---|---|
Is ajax mode or not
|
|
<static> |
Exanpe.PasswordStrengthChecker.Complexity
Enum for password complexity
|
Password field id
|
|
The function used client-side for checking the user password.
|
|
The messages used for this component
|
|
The number of caracters before triggering ajax request
|
|
Current request
|
|
url to submit to
|
Method Attributes | Method Name and Description |
---|---|
Called on Ajax update failure.
|
|
Called on Ajax update success.
|
|
Get the unique id of the Tapestry mixin
|
|
Get the Password field element the mixin is attached to
|
Class Detail
Exanpe.PasswordStrengthChecker(id, ajax, javascriptChecker, min, url, messages)
Constructor
- Parameters:
- {String} id
- the id of the password field to bind on
- {Boolean} ajax
- whether the password is checked in Ajax mode, or not
- {String} javascriptChecker
- the javascript function provided by user to check the password client-side
- {int} min
- the number of caracters before triggering Ajax request (used only within ajax parameter set to true)
- {String} url
- the url to submit the selected value
-
{Object.
} messages - the messages used to display visual feedback
Field Detail
ajax
Is ajax mode or not
<static>
Exanpe.PasswordStrengthChecker.Complexity
Enum for password complexity
id
Password field id
javascriptChecker
The function used client-side for checking the user password.
MUST return an element of Exanpe.PasswordStrengthChecker.Complexity enum
messages
The messages used for this component
min
The number of caracters before triggering ajax request
request
Current request
url
url to submit to
Method Detail
afterAjaxCheckerFailure()
Called on Ajax update failure.
Does nothing by default, override to define your own action.
afterAjaxCheckerSuccess()
Called on Ajax update success.
Does nothing by default, override to define your own action.
{String}
getMixinId()
Get the unique id of the Tapestry mixin
- Returns:
- {String} the id of the mixin
{HTMLElement}
getPasswordFieldEl(id)
Get the Password field element the mixin is attached to
- Parameters:
- {String} id
- the id of the password field
- Returns:
- {HTMLElement} the DOM element corresponding to the password field