ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
Few pages of this site are under construction and we are constantly trying to improve it. If you have any suggestions or ideas about how to improve the site, please Let us know.
Tomahawk ValidateCreditCard

 t:updateActionListener Tomahawk Tag Home t:validateEmail 

<t:validateCreditCard>


Contents

  1. Introduction
  2. Tag Attributes
  3. Example

Introduction

The t:validateCreditCard tag allows you to validate various credit cards using the Jakarta Commons validation library



Tag Attributes


AttributeDescription   Type    
amex The amex attribute expects a boolean value that, when true, indicates that this validator can be applied to American Express credit cards. The default value is true.String
discover The discover attribute expects a boolean value that, when true, indicates that this validator can be applied to Discover credit cards. The default value is true.String
mastercard The mastercard attribute expects a boolean value that, when true, indicates that this validator can be applied to Mastercard credit cards. The default value is true.String
message The message attribute defines an alternate validation message for this tag.String
none he none attribute expects a boolean value that, when true, indicates that no credit cards are supported by this validator. The default value is false.String
visa The visa attribute expects a boolean value that, when true, indicates that this validator can be applied to Visa credit cards. The default value is true.String


Example


<h:outputLabel for="creditCard" value="Credit Card"/>
<t:inputText value="#{orderBean.creditCard}" id="creditCard">
  <t:validateCreditCard message="Invalid credit card number/>
</t:inputText>
 t:validateCreditCard Tomahawk Tag Home t:validateEqual 
Test

  ALSO SEE :

About Us | Our Mission | Terms of use | Author Terms |    Search        | Contact Us | Advertise With Us | Link to Us | Sitemap
Copyright © 2016 developersBOOK.COM. All rights reserved.