GWTiger - Mask Widget Demo

This small example demonstrates a couple of features of GWTiger Framework while demonstrating how little code is required to get these features in your application.

Mask Widgets

Try to enter some numbers in the SSN or phone field below. You will notice that the numbers follow a mask. The Mask for SSN is ###-##-#### (see code below)

Validation Framework

Notice the method txtSSN.setRequired(true); in the source code below. That is all what is required to make the SSN field a required field. An * appears next to the field to indicate that this is a required field. If you click the save button without entering any value in the fields, an error message will appear.

Internationalization

The masks and formats can be localized as shown by the example below. Click on the links and try out for yourself.
The US(default) Version of this page has the date format of MM/DD/YYYY and the SSN format of ###-##-####
The en_CA localized version has the date format of DD/MM/YYYY and the SIN format of ### ### ###