Re: Displaying labels instead of field keynames in error messages

2010-07-06 Thread Sigmar Muuga
Thanks, it works. On Tue, Jul 6, 2010 at 8:25 AM, Jeremy Thomerson jer...@wickettraining.comwrote: No, don't rename. Call setLabel on the component. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors On Jul 6, 2010 12:11 AM, Martin Makundi

Displaying labels instead of field keynames in error messages

2010-07-05 Thread Sigmar Muuga
Hello, when I validate my form, wicket gives me errors like this: 'someFieldCode is mandatory' etc. But how to use it like 'Some field is mandatory'? Is it only the default behaviour of replacing placeholders in wicket-messages and can be customized? Or I have to rename all my forms fields to

Re: Displaying labels instead of field keynames in error messages

2010-07-05 Thread Martin Makundi
Or I have to rename all my forms fields to the same values as their labels are? Yes, rename. ** Martin 2010/7/6 Sigmar Muuga meedi...@gmail.com: Hello, when I validate my form, wicket gives me errors like this: 'someFieldCode is mandatory' etc. But how to use it like 'Some field is

Re: Displaying labels instead of field keynames in error messages

2010-07-05 Thread Jeremy Thomerson
No, don't rename. Call setLabel on the component. Jeremy Thomerson -- sent from my smartphone - please excuse formatting and spelling errors On Jul 6, 2010 12:11 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Or I have to rename all my forms fields to the same values as their