...  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
<jweekend_for...@cabouge.com> 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
> <jweekend_for...@cabouge.com> 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 <fachh...@gmail.com> 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

Reply via email to