• Anonymous
  • Login
  • Register
Xpages Captcha Custom Control

Owners F. Kranenburg Project Creation May 16, 2011
Contributors F. Kranenburg, Steve Pridemore Last Release May 16, 2011
Downloads 496
Rating
(0 ratings)
Description Customizable captcha custom control for Xpages


Xpages Captcha Custom Control

Customizable captcha custom control for Xpages. The screenshot below explains it all.
Check out the documentation on how to implement it in your own application. 

  

 

 

These are the properties of the custom control :

 

Property

Type

Default

Description

border

String

yes

Show a border around the captcha image.

borderColor

string

black

Color of the border.

Use a comma separated string for RGB

 

e.g. "255,168,0"

borderThickness

string

1

Thickness of the border around captcha.

imageWidth

string

300

Width in pixels of the captcha image.

imageHeight

string

75

Height in pixels of the captcha image.

characters

string

abcde2345678

gfynmnpwx

The characters that will create the captcha.

textLength

string

5

The number of characters to display.

fontFamily

string

Arial,Courier

A list of comma separated font names to use in the captcha.

fontColor

string

255,168,0

The color to use for the font.

Use a comma separated string for RGB

 

e.g. "255,168,0"

fontSize

string

40

The size of the font to use. This must be in pixels

fontSpace

string

7

The space between the characters.

noiseColor

string

black

The noise color. You may use names for the color, like 'black' or 'red'

Use a comma seperated string for RGB

backgroundColorStart

string

192,192,192

Starting background color. You may use names for the color, like 'black' or 'red'

Use a comma seperated string for RGB

backgroundColorEnd

String

white

Ending background color. You may use names for the color, like 'black' or 'red'

Use a comma seperated string for RGB

captchaReloadAlt

Localized string

Click to regenerate a new captcha image

Enter a text for the action where users may 'regenerate' the image when they can not read it.

captchaWrongInputMessage

Localized string

Invalid code! Please try again.

The validation message to the user when the input wrong.

captchaShowInputbox

boolean

true

When not showing the inputbox, you could add an inputbox elsewhere on your Xpage.

For validation use a validationExpression with the value '@LowerCase(value) == @LowerCase(sessionScope.get("ccCaptchaText"))'.

The correct Captcha anwer is stored in the sessionScope.

You could store the answer in the requestScope

captchaInputRequiredMessage

Localized string

 

The message when a user forgets to type the letters from the image into the textbox.

captchaShowInputValidationMessage

boolean

 

When also showing the inputbox, you can turn of the validation message for the input control.

You can turn this control of when you have a 'Display Errors' control anywhere else on your Xpage. Turning this off and no Display Errors control on your Xpage will result in no Captcha validation!



Projects can have short and readable URLs, e.g. http://mobilecontrols.openntf.org.

You can request a short URL to your project by sending a mail to support at openntf dot org.
Owners are the people with maximal rights. For example they can create releases and add more contributors.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
Enter the contributors or owners here who you want to receive notifications and questions by email.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
In addition to the owners additional OpenNTF contributors have to be listed here. Contributors don't have the same access rights as owners, e.g. they cannot create releases.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
Enter a short description of the project here (up to 100 characters).

The short description shows up in the project UI and in some of the views.
In this field you should enter a more detailed description of your project.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.
A Catalog Release is for projects that are production ready and that are end-user "install friendly".

This property describes whether any release of this project has been added to the catalog.

Learn more about the catalog.
GitHub can be used as source control repository for OpenNTF projects. In this case the Issues from GitHub are used instead of the Defects from OpenNTF.

Contact ip-manager@openntf if you want to have a GitHub project created in the OpenNTF space.

Learn more about OpenNTF on GitHub