I need to create one textfield custom components which accepts only credit card number like following format xxxx-xxxx-xxxx-xxxx and it should accept only number. so how can i do that i know the simple steps of how to create a custom components. and i am using jsf 1.2 version
I need to create one textfield custom components which accepts only credit card number
Share
Here are several tutorials:
Take your pick. The first and the last ones seems very useful for your particular purpose. I however agree that a simple
Validatoris more than sufficient for this.