Type Validator in 1.4??

2010-02-24 Thread Thierry Leveque
In versio 1.3, I used to use form.integer.TypeValidator in my property file
to personalized error messages when a user enter a non numerical value in a
integer field.

How does this work now in 1.4?

I always have a generic message like yy is not a valid int...


Thanks

Thierry


Re: Type Validator in 1.4??

2010-02-24 Thread Igor Vaynberg
i believe it is ConversionException.type so
ConversionException.Integer=bla blah

-igor

On Wed, Feb 24, 2010 at 8:37 AM, Thierry Leveque tleve...@gmail.com wrote:
 In versio 1.3, I used to use form.integer.TypeValidator in my property file
 to personalized error messages when a user enter a non numerical value in a
 integer field.

 How does this work now in 1.4?

 I always have a generic message like yy is not a valid int...


 Thanks

 Thierry


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



Re: Type Validator in 1.4??

2010-02-24 Thread Thierry Leveque
It does not seems to work.

I tried with
[form name].ConversionException.Integer
[field name].ConversionException.Integer
ConversionException.Integer

And all of them without the Integer at the end.

And I cannot find any documentation about that

Thierry


On Wed, Feb 24, 2010 at 11:46, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 i believe it is ConversionException.type so
 ConversionException.Integer=bla blah

 -igor

 On Wed, Feb 24, 2010 at 8:37 AM, Thierry Leveque tleve...@gmail.com
 wrote:
  In versio 1.3, I used to use form.integer.TypeValidator in my property
 file
  to personalized error messages when a user enter a non numerical value in
 a
  integer field.
 
  How does this work now in 1.4?
 
  I always have a generic message like yy is not a valid int...
 
 
  Thanks
 
  Thierry
 

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




Re: Type Validator in 1.4??

2010-02-24 Thread Major Péter
Try IConverter, see:
https://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Application.properties

Regards,
Peter

2010-02-24 18:58 keltezéssel, Thierry Leveque írta:
 It does not seems to work.
 
 I tried with
 [form name].ConversionException.Integer
 [field name].ConversionException.Integer
 ConversionException.Integer
 
 And all of them without the Integer at the end.
 
 And I cannot find any documentation about that
 
 Thierry
 
 
 On Wed, Feb 24, 2010 at 11:46, Igor Vaynberg igor.vaynb...@gmail.comwrote:
 
 i believe it is ConversionException.type so
 ConversionException.Integer=bla blah

 -igor

 On Wed, Feb 24, 2010 at 8:37 AM, Thierry Leveque tleve...@gmail.com
 wrote:
 In versio 1.3, I used to use form.integer.TypeValidator in my property
 file
 to personalized error messages when a user enter a non numerical value in
 a
 integer field.

 How does this work now in 1.4?

 I always have a generic message like yy is not a valid int...


 Thanks

 Thierry

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



Re: Type Validator in 1.4??

2010-02-24 Thread Thierry Leveque
Great!!! It is working!!!

I used:
[filed Id].IConverter=Label: ${label}, Input: ${input}, Type: ${type}

Thierry


2010/2/24 Major Péter majorpe...@sch.bme.hu

 Try IConverter, see:

 https://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/Application.properties

 Regards,
 Peter

 2010-02-24 18:58 keltezéssel, Thierry Leveque írta:
  It does not seems to work.
 
  I tried with
  [form name].ConversionException.Integer
  [field name].ConversionException.Integer
  ConversionException.Integer
 
  And all of them without the Integer at the end.
 
  And I cannot find any documentation about that
 
  Thierry
 
 
  On Wed, Feb 24, 2010 at 11:46, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  i believe it is ConversionException.type so
  ConversionException.Integer=bla blah
 
  -igor
 
  On Wed, Feb 24, 2010 at 8:37 AM, Thierry Leveque tleve...@gmail.com
  wrote:
  In versio 1.3, I used to use form.integer.TypeValidator in my property
  file
  to personalized error messages when a user enter a non numerical value
 in
  a
  integer field.
 
  How does this work now in 1.4?
 
  I always have a generic message like yy is not a valid int...
 
 
  Thanks
 
  Thierry

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