Core Java| JSP| Servlets| XML| EJB| JEE5| Web Services| J2ME| Glossary| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Flex Validator example 
 

Code below shows Flex Validator component example. With these components different types of data are get validated with appropriate validators.

 

Flex Validator example

                         

Code below shows Flex validator component example. With these components different types of data are get validated with appropriate validators. The provided flex feature is mostly used in validating the user ids,  email addresses and passwords. 

In the example validator for email and phone numbers are made. When the user writes, data validator checks the syntax and type of data entered and if the data entered is found to be wrong,  the corresponding validator generates error message  in red text format.
Similarly many different types of validators can be created and that you will be going to learn soon.  

 

 

 

 

 

validator.mxml

<?xml version = '1.0' encoding = 'ISO-8859-1'?>
<mx:Application xmlns:mx = 'http://www.adobe.com/2006/mxml'>

    <mx:PhoneNumberValidator source = '{phoneNumber}
                     property = 'text'/>
    <mx:EmailValidator source = '{EmailId}
                     property = 'text'/>

    <mx:Panel title = 'Flex Validator Control'>
    
      <mx:TextInput id = 'phoneNumber
          text = 'Your valid phone number.'/>
      <mx:TextInput id = 'EmailId
          text = 'baadshah@newstrackindia.com'/>
    
    </mx:Panel>

</mx:Application>

validator.swf

Download the code

                         

» View all related tutorials
Related Tags: c gui com class controls ui select button style control io components sed implementation component definition tag name using this

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

Hi,

Actually, the information what you have given about Flex is only, just basic knowledge. But people are looking for some thing different, like they need for real time developement scenario level. As i was worked on Flex , this provided information is not going to help the people those who knows the basic concepts of Flex. I think this is only for candidates those who dont have any kind of knowledge on Flex. But my suggession is please provide extra session for Flex candidates with some real time scenarios.

Thanks & Regards
Pradeep K Simhadri

Posted by Pradeep K Simhadri on Thursday, 12.18.08 @ 23:05pm | #82945

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.