Re: Weird feedback message formats

2010-03-28 Thread ayman elwany
is this solution could be used for feedback messages in feedback panels
instead of the componenet/field path as resource key ??

On Thu, Mar 25, 2010 at 8:18 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Use same label localization property name as wicket component id:
>
> Application.properties:
> mysecret=My password
>
> :  type="password" wicket:id="mysecret"/>
>
>
>
> Ofcourse there are other ways too, but the above is way simplest.
>
>
> http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html
>
> **
> Martin
>
> 2010/3/25 Sigmar Muuga :
> > Hello,
> > how to customize error / feedback messages in wicket?
> > At the moment wicket displays quite stupidly password errors:
> > "mysecret" is too short and so on.
> >
> > I would like to use translated field labels in feedback messages instead
> of
> > field names, that are not so user friendly.
> >
> > Sigmar
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Weird feedback message formats

2010-03-25 Thread Xavier López
Hi  Sigmar,

I went fine just setting the component's Label with setLabel().
This method sets a Model which will be used instead of the wicket:id in the
built-in validator's error messages.

Cheers,
Xavier

2010/3/25 Sigmar Muuga 

> Hello,
> how to customize error / feedback messages in wicket?
> At the moment wicket displays quite stupidly password errors:
> "mysecret" is too short and so on.
>
> I would like to use translated field labels in feedback messages instead of
> field names, that are not so user friendly.
>
> Sigmar
>



-- 
"Klein bottle for rent--inquire within."


Re: Weird feedback message formats

2010-03-24 Thread Martin Makundi
Use same label localization property name as wicket component id:

Application.properties:
mysecret=My password

: 



Ofcourse there are other ways too, but the above is way simplest.

http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html

**
Martin

2010/3/25 Sigmar Muuga :
> Hello,
> how to customize error / feedback messages in wicket?
> At the moment wicket displays quite stupidly password errors:
> "mysecret" is too short and so on.
>
> I would like to use translated field labels in feedback messages instead of
> field names, that are not so user friendly.
>
> Sigmar
>

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



Weird feedback message formats

2010-03-24 Thread Sigmar Muuga
Hello,
how to customize error / feedback messages in wicket?
At the moment wicket displays quite stupidly password errors:
"mysecret" is too short and so on.

I would like to use translated field labels in feedback messages instead of
field names, that are not so user friendly.

Sigmar