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).
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 1624 times.

All times above are in ranch (not your local) time.
The current ranch time is
Mar 20, 2018 12:12:58.