Forums Register Login
Can we add restrictions to input text control in JSF

JSF inputtext control will allow alphanumeric values, if we dont want numbers to be entered into text box, we can restrict using javascript.
but is there any way to restrict user from entering numbers into text box?
You may like to use a4j onkeyup/onblur event and do customized validations.
I didn't quite understand this, but you can use the same javascript to block entry of non-numeric characters into a JSF inputText control as you would in a traditional HTML 'input type="text"' control. Even the event attribute name is the same (I think it's onkeyup).
Space pants. Tiny ad:
Rocket Oven Kickstarter - from the trailboss

This thread has been viewed 1670 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 21, 2018 03:56:39.