Apache MyFaces
Documentation
Project Documentation
Foundation

Summary

Tag name: <mcv:validateCreditCard>
Validator class: org.apache.myfaces.commons.validator.CreditCardValidator
Tag class: org.apache.myfaces.commons.validator.ValidateCreditCardTag
Facelet Tag Handler: org.apache.myfaces.commons.validator.ValidatorBaseTagHandler
validator id: org.apache.myfaces.commons.validator.CreditCard
A custom validator for creditCards, based upon Jakarta Commons. Unless otherwise specified, all attributes accept static values or EL expressions

Attributes

Name Type Supports EL? Description
amex boolean Yes american express cards
detailMessage String Yes alternate validation error detail message format string (use 'message' and 'detailMessage' alternatively)
discover boolean Yes validation for discover
mastercard boolean Yes validation for mastercard
message String Yes alternate validation error detail message format string (use 'message' and 'detailMessage' alternatively)
none boolean Yes none of the given cardtypes is allowed.
summaryMessage String Yes alternate validation error summary message format string
visa boolean Yes validation for visa

Facelets Attributes

Name Type Required Description
for String false {@inheritDoc}