Following code in your <af:inputText tag
will estrict the values entered by user as per your requirement.
Validating a InputTextBox for String Value Only
<af:validateRegExp pattern="^[a-zA-Z]+$" messageDetailNoMatch="Number Not allowed" />
allowing only string with space -->
<af:validateRegExp pattern="^[a-zA-Z a-zA-Z]+$" messageDetailNoMatch="Number Not allowed" />
it will allow only charecters and not numbers.
Comments
Post a Comment