You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gregooo <gr...@hotmail.com> on 2007/11/20 15:33:54 UTC

Wizard - Setting error messages for feedback panel

Is there anyway to change the default feedback error messages?
For example, now, I have the following error message: 

Field 'user.userName' is required.

And I would like to change it by: Please enter your Name.

Thank you,

Greg.
-- 
View this message in context: http://www.nabble.com/Wizard---Setting-error-messages-for-feedback-panel-tf4843734.html#a13857697
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wizard - Setting error messages for feedback panel

Posted by Gregooo <gr...@hotmail.com>.
Thanks to all of you for your clear and quick reply.
Greg,
-- 
View this message in context: http://www.nabble.com/Wizard---Setting-error-messages-for-feedback-panel-tf4843734.html#a13858915
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wizard - Setting error messages for feedback panel

Posted by Pills <pi...@hmcrecord.ch>.


Gregooo wrote:
> 
> Is there anyway to change the default feedback error messages?
> For example, now, I have the following error message: 
> 
> Field 'user.userName' is required.
> 
> And I would like to change it by: Please enter your Name.
> 
> Thank you,
> 
> Greg.
> 

Yes, you just have to provide the required text in a properties file, like
this:

<code>
[fieldname].Required=Please enter your Name
</code>

-- 
View this message in context: http://www.nabble.com/Wizard---Setting-error-messages-for-feedback-panel-tf4843734.html#a13858013
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wizard - Setting error messages for feedback panel

Posted by Al Maw <wi...@almaw.com>.
Gregooo wrote:
> Is there anyway to change the default feedback error messages?
> For example, now, I have the following error message: 
> 
> Field 'user.userName' is required.
> 
> And I would like to change it by: Please enter your Name.

http://cwiki.apache.org/WICKET/form-validation-messages.html

See also the Localization section of 
http://cwiki.apache.org/WICKET/newuserguide.html

Regards,

Al

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