ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
Tomahawk ValidateRegExpr

 t:validateEqual Tomahawk Tag Home             Next  

<t:validateRegExpr>


Contents

  1. Introduction
  2. Tag Attributes
  3. Example

Introduction

The t:validateRegExpr tag adds a custom validator to your JSF page based on the Jakarta Commons validation library. This allows you to validate user input using powerful regular expressions.



Tag Attributes


AttributeDescription   Type    
message The message attribute defines an alternate validation message for this tag.String
pattern(required)pattern: the regular expression pattern. which is the base of the validation.String
summaryMessageAlternate validation error summary message format string.String


Example


<h:outputLabel for="zip1" value="Zip"/>
<t:inputText value="#{order.zipCode}" id="zip1">
  <t:validateRegExpr  pattern="\d{5}"
      message ="ZIP Code must be 5 digits"
/>
</t:inputText>
 t:validateEqual Tomahawk Tag Home             Next  
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.