Saturday, September 15, 2012

How to set default character type for af:inputText ?

Make Default Character case in af:inputText

Here I am going to explain a simple way to force application to take input in specific char case like upper case, lower case, capitalize (all words first latter will display as capital). 

Developer can apply same technique while displaying data on page.

af:inputText has property contentStyle, in this sample I am playing around the contentStyle property of inputText.

Find the possible values for different case:

  • Uppercase Character : text-transform:uppercase;
  • Lowercase Character : text-transform:lowercase;
  • Capital Character : text-transform:capitalize;
 After using those property page will looks like:

Please found sample application here Sample Application



















No comments:

Post a Comment

Thanks for your valuable comment. You comment will go live soon.