Simple Validation question...

2010-05-18 Thread Victor_Trapiello

Hello guys; as I told you in previous post, I´m a new wicket developer, I
like it, but some times like everybody I find some dificulties, like this
stupid thing.

I´m trying to validate and IBAN number (Bank account number) it is too bing
to store it like an integer value so I have stored this IBAN like a string (
it cointains from 1 to 32 characters); I´m validating this data like:

Model ibanModel= new ibanModel();
TextField iban=new TextField(iban, ibanModel);
iban.StringValidator.minimum(1);
iban.StrinvValidator.maximun(32);

so with that I´m sure that my IBAN is an string from 1 to 32 characters,
fantastic! but... I do not want characters in my string only number...and as
I told you before the number is too big to store it and validate with the
integer class...

Discuss!!

Thank you very much guys!!

Victor Trapiello
www.trapiello.net




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221798.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Simple Validation question...

2010-05-18 Thread Martin Makundi
Hmm.. iban is not only numbers.


**
Martin

2010/5/18 Victor_Trapiello vic...@trapiello.net:

 Hello guys; as I told you in previous post, I´m a new wicket developer, I
 like it, but some times like everybody I find some dificulties, like this
 stupid thing.

 I´m trying to validate and IBAN number (Bank account number) it is too bing
 to store it like an integer value so I have stored this IBAN like a string (
 it cointains from 1 to 32 characters); I´m validating this data like:

 Model ibanModel= new ibanModel();
 TextField iban=new TextField(iban, ibanModel);
 iban.StringValidator.minimum(1);
 iban.StrinvValidator.maximun(32);

 so with that I´m sure that my IBAN is an string from 1 to 32 characters,
 fantastic! but... I do not want characters in my string only number...and as
 I told you before the number is too big to store it and validate with the
 integer class...

 Discuss!!

 Thank you very much guys!!

 Victor Trapiello
 www.trapiello.net




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221798.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Simple Validation question...

2010-05-18 Thread Victor_Trapiello

True my friend, 

IBAN example: CY1700200128001200527600

but still I have the same doubt imagen it has only numbers, should I do a
custom validation saying that in this string I do not want find A or B or
C. WHAT A WASTE OF TIME ISN´T IT¿?

Thank you very much for your cooperation;

Victor Trapiello
www.trapiello.net


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221921.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Simple Validation question...

2010-05-18 Thread Igor Vaynberg
use patternvalidator that can check based on a regex

-igor

On Tue, May 18, 2010 at 2:14 PM, Victor_Trapiello vic...@trapiello.net wrote:

 True my friend,

 IBAN example: CY1700200128001200527600

 but still I have the same doubt imagen it has only numbers, should I do a
 custom validation saying that in this string I do not want find A or B or
 C. WHAT A WASTE OF TIME ISN´T IT¿?

 Thank you very much for your cooperation;

 Victor Trapiello
 www.trapiello.net


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221921.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Simple Validation question...

2010-05-18 Thread Martin Makundi
Why not use accurate iban validator?
http://www.google.fi/search?q=iban+validation+formula

**
Martin

2010/5/19 Victor_Trapiello vic...@trapiello.net:

 True my friend,

 IBAN example: CY1700200128001200527600

 but still I have the same doubt imagen it has only numbers, should I do a
 custom validation saying that in this string I do not want find A or B or
 C. WHAT A WASTE OF TIME ISN´T IT¿?

 Thank you very much for your cooperation;

 Victor Trapiello
 www.trapiello.net


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221921.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Simple Validation question...

2010-05-18 Thread Victor_Trapiello

thank you very much igor

I´m a little bit confuse about the regular expresion that I need to put:

I have found this: 

mobile.add(new PatternValidator(^[1-9]([0-9]{8,14}))); 

where can I get more information about htis¿? I.e patter for 32 digits...

Thank you for your collaboration!


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221939.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Simple Validation question...

2010-05-18 Thread Victor_Trapiello

GB  29  NWBK601613  31926819
Country code (2a)   Check Digit (2n)

Bank Name Code (4a)
Bank Branch code (6n)   Account No (8n)


we have all the ingredients, but what is the shape of our regular
expresion¿?  any help¿?

Thank you very much!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Simple-Validation-question-tp2221798p2221979.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org