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 ValidateEqual

 t:validateEmail Tomahawk Tag Home t:validateRegExpr 

<t:validateEqual>


Contents

  1. Introduction
  2. Tag Attributes
  3. Example

Introduction

The t:validateEqual tag allows you to validate user input by comparing it with another backing bean property. This is useful, for example, when validating a password or an e-mail address twice.



Tag Attributes


AttributeDescription   Type    
message The message attribute defines an alternate validation message for this tag.String
for(required)The for attribute is the id of the component this component extends or is part of. The id of the component that must match.String
summaryMessageAlternate validation error summary message format string.String


Example


<h:outputLabel for="password1" value="Password"/>
<t:inputSecret> value="#{login.password}" id="password1">
</t:inputSecret>

<h:outputLabel for="password2" value="Confirm Password"/>
<t:inputSecret id="password2">  
<t:validateEqual for="password1"
        message="The two password entries do not match"
/>
</t:inputSecret>
 t:validateEmail Tomahawk Tag Home t:validateRegExpr 
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.