Re: bigdecimal validation

2010-09-18 Thread James Carman
A good wiki page would be very helpful with some concrete examples
like this BigDecimal case for instance.  Again, I don't mind helping
out.  I just wanted to make sure I wasn't duplicating something that
was already out there.

And, your ears aren't *that* big. :)

On Sat, Sep 18, 2010 at 3:47 AM, Igor Vaynberg  wrote:
> im all ears...
>
> -igor
>
> On Fri, Sep 17, 2010 at 11:48 PM, James Carman
>  wrote:
>> Well, that helps, but it's not quite obvious that that's where you
>> should go to look for it.  At least it isn't to me.
>>
>>
>> On Sat, Sep 18, 2010 at 12:37 AM, Igor Vaynberg  
>> wrote:
>>> from the javadoc of FormComponent
>>>
>>>  * 
>>>  * If this component is required and that fails, the error key that is
>>> used is the "Required"; if
>>>  * the type conversion fails, it will use the key "IConverter" if the
>>> conversion failed in a
>>>  * converter, or "ConversionError" if type was explicitly specified
>>> via {...@link #setType(Class)} or a
>>>  * {...@link IPropertyReflectionAwareModel} was used. Notice that both
>>> "IConverter" and
>>>  * "ConversionError" have a more specific variant of "key.classname"
>>> where classname is the type
>>>  * that we failed to convert to. Classname is not full qualified, so
>>> only the actual name of the
>>>  * class is used.
>>>
>>> :)
>>>
>>> -igor
>>>
>>> On Fri, Sep 17, 2010 at 5:42 PM, James Carman
>>>  wrote:
>>>> Isn't this stuff documented somewhere?  This has always been one of
>>>> those areas of Wicket where I feel completely lost every time I have
>>>> to do some customization.  Cemal does Wicket training and he didn't
>>>> know this stuff!  I don't mind helping put together a wiki, but I
>>>> don't understand it enough to know where to begin. :)
>>>>
>>>>
>>>>
>>>> On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg  
>>>> wrote:
>>>>> IConverter.BigDecimal=
>>>>>
>>>>> -igor
>>>>>
>>>>> On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
>>>>>  wrote:
>>>>>> See
>>>>>> IConverter='${input}' is not a valid ${type}.
>>>>>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>>>>>> Make a similar properties file for your own application, and in the
>>>>>> same package as your application class with your own IConverter
>>>>>> property.
>>>>>>
>>>>>> Regards - Cemal
>>>>>> jWeekend
>>>>>> Training, Consulting, Development
>>>>>> http://jWeekend.com
>>>>>>
>>>>>>
>>>>>> On 17 September 2010 22:21, fachhoch  wrote:
>>>>>>>
>>>>>>> input text   of   type bigdecimal  validates user entered value to 
>>>>>>> check if
>>>>>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>>>>>> bigddecimal, can I customize this message
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context: 
>>>>>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>>>>>> Sent from the Users forum 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
>>>>>>
>>>>>>
>>>>>
>>>>> -
>>>>> 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
>>>>
>>>>
>>>
>>> -
>>> 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
>>
>>
>
> -
> 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: bigdecimal validation

2010-09-18 Thread Cemal Bayramoglu
James,

We have just never before had to do this for specific type conversions
 (as opposed to for validation message which we specify and
internationalize on almost every system we build), and I solved
fachoch's problem by looking through the Wicket source code first
rather than at its Javadoc (should be the other way round!), when in
this case it turns out the Javadoc would have given me the most
elegant answer.

I actually think that this Javadoc is in the right place (on the
FormComponent class) but still not the first place someone might think
to look - where else do you think it could be that would make it more
easily accessible/findable?

Regards - Cemal
jWeekend
Training, Consulting, Development
http://jWeekend.com



On 18 September 2010 01:42, James Carman  wrote:
> Isn't this stuff documented somewhere?  This has always been one of
> those areas of Wicket where I feel completely lost every time I have
> to do some customization.  Cemal does Wicket training and he didn't
> know this stuff!  I don't mind helping put together a wiki, but I
> don't understand it enough to know where to begin. :)
>
>
>
> On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg  
> wrote:
>> IConverter.BigDecimal=
>>
>> -igor
>>
>> On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
>>  wrote:
>>> See
>>> IConverter='${input}' is not a valid ${type}.
>>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>>> Make a similar properties file for your own application, and in the
>>> same package as your application class with your own IConverter
>>> property.
>>>
>>> Regards - Cemal
>>> jWeekend
>>> Training, Consulting, Development
>>> http://jWeekend.com
>>>
>>>
>>> On 17 September 2010 22:21, fachhoch  wrote:
>>>>
>>>> input text   of   type bigdecimal  validates user entered value to check if
>>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>>> bigddecimal, can I customize this message
>>>>
>>>> --
>>>> View this message in context: 
>>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>>> Sent from the Users forum 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
>>>
>>>
>>
>> -
>> 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
>
>

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



Re: bigdecimal validation

2010-09-18 Thread Cemal Bayramoglu
Yes, slightly more elegant than my 2 offerings! Thanks Igor .
And as you say, the answer was in the Javadoc [1] all the time - I
just didn't look because I didn't think it would be for something like
this.
So the moral of the story is ... the Wicket Javadoc is quite good,
constantly improving and always worth a quick read if you think your
solution to a apparently common problem is too convoluted. Wicket
usually makes everyday stuff as easy as possible!

Regards - Cemal
jWeekend
Training, Consulting, Development
http://jWeekend.com

[1]
 * "ConversionError" have a more specific variant of "key.classname"
where classname is the type
 * that we failed to convert to. Classname is not full qualified, so
only the actual name of the


On 18 September 2010 01:19, Igor Vaynberg  wrote:
> IConverter.BigDecimal=
>
> -igor
>
> On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
>  wrote:
>> See
>> IConverter='${input}' is not a valid ${type}.
>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>> Make a similar properties file for your own application, and in the
>> same package as your application class with your own IConverter
>> property.
>>
>> Regards - Cemal
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>>
>> On 17 September 2010 22:21, fachhoch  wrote:
>>>
>>> input text   of   type bigdecimal  validates user entered value to check if
>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>> bigddecimal, can I customize this message
>>>
>>> --
>>> View this message in context: 
>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>> Sent from the Users forum 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
>>
>>
>

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



Re: bigdecimal validation

2010-09-18 Thread Igor Vaynberg
im all ears...

-igor

On Fri, Sep 17, 2010 at 11:48 PM, James Carman
 wrote:
> Well, that helps, but it's not quite obvious that that's where you
> should go to look for it.  At least it isn't to me.
>
>
> On Sat, Sep 18, 2010 at 12:37 AM, Igor Vaynberg  
> wrote:
>> from the javadoc of FormComponent
>>
>>  * 
>>  * If this component is required and that fails, the error key that is
>> used is the "Required"; if
>>  * the type conversion fails, it will use the key "IConverter" if the
>> conversion failed in a
>>  * converter, or "ConversionError" if type was explicitly specified
>> via {...@link #setType(Class)} or a
>>  * {...@link IPropertyReflectionAwareModel} was used. Notice that both
>> "IConverter" and
>>  * "ConversionError" have a more specific variant of "key.classname"
>> where classname is the type
>>  * that we failed to convert to. Classname is not full qualified, so
>> only the actual name of the
>>  * class is used.
>>
>> :)
>>
>> -igor
>>
>> On Fri, Sep 17, 2010 at 5:42 PM, James Carman
>>  wrote:
>>> Isn't this stuff documented somewhere?  This has always been one of
>>> those areas of Wicket where I feel completely lost every time I have
>>> to do some customization.  Cemal does Wicket training and he didn't
>>> know this stuff!  I don't mind helping put together a wiki, but I
>>> don't understand it enough to know where to begin. :)
>>>
>>>
>>>
>>> On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg  
>>> wrote:
>>>> IConverter.BigDecimal=
>>>>
>>>> -igor
>>>>
>>>> On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
>>>>  wrote:
>>>>> See
>>>>> IConverter='${input}' is not a valid ${type}.
>>>>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>>>>> Make a similar properties file for your own application, and in the
>>>>> same package as your application class with your own IConverter
>>>>> property.
>>>>>
>>>>> Regards - Cemal
>>>>> jWeekend
>>>>> Training, Consulting, Development
>>>>> http://jWeekend.com
>>>>>
>>>>>
>>>>> On 17 September 2010 22:21, fachhoch  wrote:
>>>>>>
>>>>>> input text   of   type bigdecimal  validates user entered value to check 
>>>>>> if
>>>>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>>>>> bigddecimal, can I customize this message
>>>>>>
>>>>>> --
>>>>>> View this message in context: 
>>>>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>>>>> Sent from the Users forum 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
>>>>>
>>>>>
>>>>
>>>> -
>>>> 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
>>>
>>>
>>
>> -
>> 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
>
>

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



Re: bigdecimal validation

2010-09-17 Thread James Carman
Well, that helps, but it's not quite obvious that that's where you
should go to look for it.  At least it isn't to me.


On Sat, Sep 18, 2010 at 12:37 AM, Igor Vaynberg  wrote:
> from the javadoc of FormComponent
>
>  * 
>  * If this component is required and that fails, the error key that is
> used is the "Required"; if
>  * the type conversion fails, it will use the key "IConverter" if the
> conversion failed in a
>  * converter, or "ConversionError" if type was explicitly specified
> via {...@link #setType(Class)} or a
>  * {...@link IPropertyReflectionAwareModel} was used. Notice that both
> "IConverter" and
>  * "ConversionError" have a more specific variant of "key.classname"
> where classname is the type
>  * that we failed to convert to. Classname is not full qualified, so
> only the actual name of the
>  * class is used.
>
> :)
>
> -igor
>
> On Fri, Sep 17, 2010 at 5:42 PM, James Carman
>  wrote:
>> Isn't this stuff documented somewhere?  This has always been one of
>> those areas of Wicket where I feel completely lost every time I have
>> to do some customization.  Cemal does Wicket training and he didn't
>> know this stuff!  I don't mind helping put together a wiki, but I
>> don't understand it enough to know where to begin. :)
>>
>>
>>
>> On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg  
>> wrote:
>>> IConverter.BigDecimal=
>>>
>>> -igor
>>>
>>> On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
>>>  wrote:
>>>> See
>>>> IConverter='${input}' is not a valid ${type}.
>>>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>>>> Make a similar properties file for your own application, and in the
>>>> same package as your application class with your own IConverter
>>>> property.
>>>>
>>>> Regards - Cemal
>>>> jWeekend
>>>> Training, Consulting, Development
>>>> http://jWeekend.com
>>>>
>>>>
>>>> On 17 September 2010 22:21, fachhoch  wrote:
>>>>>
>>>>> input text   of   type bigdecimal  validates user entered value to check 
>>>>> if
>>>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>>>> bigddecimal, can I customize this message
>>>>>
>>>>> --
>>>>> View this message in context: 
>>>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>>>> Sent from the Users forum 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
>>>>
>>>>
>>>
>>> -
>>> 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
>>
>>
>
> -
> 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: bigdecimal validation

2010-09-17 Thread Igor Vaynberg
from the javadoc of FormComponent

 * 
 * If this component is required and that fails, the error key that is
used is the "Required"; if
 * the type conversion fails, it will use the key "IConverter" if the
conversion failed in a
 * converter, or "ConversionError" if type was explicitly specified
via {...@link #setType(Class)} or a
 * {...@link IPropertyReflectionAwareModel} was used. Notice that both
"IConverter" and
 * "ConversionError" have a more specific variant of "key.classname"
where classname is the type
 * that we failed to convert to. Classname is not full qualified, so
only the actual name of the
 * class is used.

:)

-igor

On Fri, Sep 17, 2010 at 5:42 PM, James Carman
 wrote:
> Isn't this stuff documented somewhere?  This has always been one of
> those areas of Wicket where I feel completely lost every time I have
> to do some customization.  Cemal does Wicket training and he didn't
> know this stuff!  I don't mind helping put together a wiki, but I
> don't understand it enough to know where to begin. :)
>
>
>
> On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg  
> wrote:
>> IConverter.BigDecimal=
>>
>> -igor
>>
>> On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
>>  wrote:
>>> See
>>> IConverter='${input}' is not a valid ${type}.
>>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>>> Make a similar properties file for your own application, and in the
>>> same package as your application class with your own IConverter
>>> property.
>>>
>>> Regards - Cemal
>>> jWeekend
>>> Training, Consulting, Development
>>> http://jWeekend.com
>>>
>>>
>>> On 17 September 2010 22:21, fachhoch  wrote:
>>>>
>>>> input text   of   type bigdecimal  validates user entered value to check if
>>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>>> bigddecimal, can I customize this message
>>>>
>>>> --
>>>> View this message in context: 
>>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>>> Sent from the Users forum 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
>>>
>>>
>>
>> -
>> 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
>
>

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



Re: bigdecimal validation

2010-09-17 Thread James Carman
Isn't this stuff documented somewhere?  This has always been one of
those areas of Wicket where I feel completely lost every time I have
to do some customization.  Cemal does Wicket training and he didn't
know this stuff!  I don't mind helping put together a wiki, but I
don't understand it enough to know where to begin. :)



On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg  wrote:
> IConverter.BigDecimal=
>
> -igor
>
> On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
>  wrote:
>> See
>> IConverter='${input}' is not a valid ${type}.
>> in Application.properties in the Wicket jar (in /org/apache/wicket).
>> Make a similar properties file for your own application, and in the
>> same package as your application class with your own IConverter
>> property.
>>
>> Regards - Cemal
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>>
>> On 17 September 2010 22:21, fachhoch  wrote:
>>>
>>> input text   of   type bigdecimal  validates user entered value to check if
>>> it is bigdecimal and it gives error message 'xxx' is not a valid
>>> bigddecimal, can I customize this message
>>>
>>> --
>>> View this message in context: 
>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>>> Sent from the Users forum 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
>>
>>
>
> -
> 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: bigdecimal validation

2010-09-17 Thread Igor Vaynberg
IConverter.BigDecimal=

-igor

On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu
 wrote:
> See
> IConverter='${input}' is not a valid ${type}.
> in Application.properties in the Wicket jar (in /org/apache/wicket).
> Make a similar properties file for your own application, and in the
> same package as your application class with your own IConverter
> property.
>
> Regards - Cemal
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
>
> On 17 September 2010 22:21, fachhoch  wrote:
>>
>> input text   of   type bigdecimal  validates user entered value to check if
>> it is bigdecimal and it gives error message 'xxx' is not a valid
>> bigddecimal, can I customize this message
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
>> Sent from the Users forum 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
>
>

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



Re: bigdecimal validation

2010-09-17 Thread Cemal Bayramoglu
...  if you want to create your own BigDecimalTextField, for example,
you can just override convertInput and pass in the resourceKey you
want to use if convertValue throws an exception since you know at that
point you have a conversion problem precisely because the entered text
is not convertible to a BigDecimal.
Make sense?

Regards - Cemal
jWeekend
Training, Consulting, Development
http://jWeekend.com



On 18 September 2010 00:09, Cemal Bayramoglu
 wrote:
> ... in case you don't spot the typo either, for "resourceMessage" read
> "resourceKey" in the previous post.
>
> Regards - Cemal
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
>
> On 18 September 2010 00:05, Cemal Bayramoglu
>  wrote:
>> ... if you need to limit this custom message to a particular type
>> conversion, like BigDecimal's, you may have to override
>> newConversionException in your own BigDecimal converter (which you can
>> register at application level or by overriding getConverter on your
>> component), and setting the resourceMessage on the ConversionException
>> (in newConversionException ) - but I'd be surprised if there is not a
>> more elegant way to achieve this?!
>>
>> Regards - Cemal
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>>
>> On 17 September 2010 23:22, fachhoch  wrote:
>>>
>>> this change will apply only for bigdecimal ?
>>> I want customized only for bigdecimal
>>> --
>>> View this message in context: 
>>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html
>>> Sent from the Users forum 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: bigdecimal validation

2010-09-17 Thread Cemal Bayramoglu
... in case you don't spot the typo either, for "resourceMessage" read
"resourceKey" in the previous post.

Regards - Cemal
jWeekend
Training, Consulting, Development
http://jWeekend.com


On 18 September 2010 00:05, Cemal Bayramoglu
 wrote:
> ... if you need to limit this custom message to a particular type
> conversion, like BigDecimal's, you may have to override
> newConversionException in your own BigDecimal converter (which you can
> register at application level or by overriding getConverter on your
> component), and setting the resourceMessage on the ConversionException
> (in newConversionException ) - but I'd be surprised if there is not a
> more elegant way to achieve this?!
>
> Regards - Cemal
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
>
> On 17 September 2010 23:22, fachhoch  wrote:
>>
>> this change will apply only for bigdecimal ?
>> I want customized only for bigdecimal
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html
>> Sent from the Users forum 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: bigdecimal validation

2010-09-17 Thread Cemal Bayramoglu
... if you need to limit this custom message to a particular type
conversion, like BigDecimal's, you may have to override
newConversionException in your own BigDecimal converter (which you can
register at application level or by overriding getConverter on your
component), and setting the resourceMessage on the ConversionException
(in newConversionException ) - but I'd be surprised if there is not a
more elegant way to achieve this?!

Regards - Cemal
jWeekend
Training, Consulting, Development
http://jWeekend.com


On 17 September 2010 23:22, fachhoch  wrote:
>
> this change will apply only for bigdecimal ?
> I want customized only for bigdecimal
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html
> Sent from the Users forum 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: bigdecimal validation

2010-09-17 Thread fachhoch

this change will apply only for bigdecimal ?
I want customized only for bigdecimal
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544526.html
Sent from the Users forum 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: bigdecimal validation

2010-09-17 Thread Cemal Bayramoglu
See
IConverter='${input}' is not a valid ${type}.
in Application.properties in the Wicket jar (in /org/apache/wicket).
Make a similar properties file for your own application, and in the
same package as your application class with your own IConverter
property.

Regards - Cemal
jWeekend
Training, Consulting, Development
http://jWeekend.com


On 17 September 2010 22:21, fachhoch  wrote:
>
> input text   of   type bigdecimal  validates user entered value to check if
> it is bigdecimal and it gives error message 'xxx' is not a valid
> bigddecimal, can I customize this message
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
> Sent from the Users forum 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



bigdecimal validation

2010-09-17 Thread fachhoch

input text   of   type bigdecimal  validates user entered value to check if
it is bigdecimal and it gives error message 'xxx' is not a valid
bigddecimal, can I customize this message

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/bigdecimal-validation-tp2544469p2544469.html
Sent from the Users forum 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