How to implement validation on input text field for Capitalize

You developers need to restrict end-user for its input into the field based on some client requirements. The developer wishes to restrict input to Initial Letter in capital or complete input text in UPPERCASE or in lowercase.

Fortuitously, ADF faces enrich itself with very easy to implement functionality on Input Text Component by setting its Content Style attributes.

For Capitalize:

Set  contentStyle=”text-transform:capitalize;” as it is in your code.

For Lowercase:

Set contentStyle=”text-transform:lowercase;” as it is in your code.

For UPPERCASE:

And so do for this case :  contentStyle=”text-transform:uppercase;”

 

The sample application can be downloaded fromCapitalizeInput

— Email us to get the Application Zip

Leave a Comment