How to override SignInPanel's error messages.

2011-08-26 Thread Florian B.
I'm using the SignInPanel on my web application and it works quite well. The only thing I want to change are the error message which got rendered to the feedback panel when no login or password is entered. The error message is not really nice at is contains the internal name of the text field

Re: How to override SignInPanel's error messages.

2011-08-26 Thread Florian B.
I finally solved my problem perhaps it's not the best way but it works for me. After digging in the sources of the SignInPanel I figured out the following. setRequired() is always called in the constructor of a PasswortTextField. setRequired() is a method of the FormComponent class which has

Re: How to override SignInPanel's error messages.

2011-08-26 Thread Martin Grigorov
enable DEBUG logging of Localizer class and you'll see what resource keys are attempted this way you'll see that you can use myFormComponentId.Required= and it will be used just for the component with id myFormComponentId, all other will still use 'Required'. On Fri, Aug 26, 2011 at 3:18 PM,

Re: How to override SignInPanel's error messages.

2011-08-26 Thread Florian B.
A great, that's even better! Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-override-SignInPanel-s-error-messages-tp3770610p3770720.html Sent from the Users forum mailing list archive at Nabble.com.