participate


JavaServer Faces - Validating several fields within the same validator class
<<   Back to Forum  |   Give us Feedback
This topic has 2 replies on 1 page.
balteo
Posts:675
Registered: 2/17/01
Validating several fields within the same validator class   
Apr 7, 2004 12:45 AM

 
Hello,

I am experimenting with java server faces and I am trying to understand better how the validation process works. My question is as follows:
Is it possible to keep the validation process in one validator class for several fields?

Say I have two fields in the duke guess number example:
One called "userNumber" (type Integer) and another called "name"(String). I want a custom validation for each of those two fields. For instance the first validation checks that userNumber does not exceed 100 and the second validation checks that the name string does not contain numbers.

Can I keep these two validations within one validator class?

Thanks in advance,

Julien Martin
 
Matthias-Wessendorf
Posts:249
Registered: 7/18/03
Re: Validating several fields within the same validator class   
Apr 7, 2004 1:10 AM (reply 1 of 2)  (In reply to original post )

 
hi, perhaps you will be happy with this thread:
http://forum.java.sun.com/thread.jsp?forum=427&thread=493937

cheers
 
balteo
Posts:675
Registered: 2/17/01
Validating several fields within the same validator class   
Apr 7, 2004 1:20 AM (reply 2 of 2)  (In reply to #1 )

 
Hello,
Thanks for the link but it doesn't really provide an answer to my question...
Julien.
 
This topic has 2 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 58
  • Guests : 111

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums