Sorry, should have read a few more posts...here is the solution to the
different message.
new RequiredTextField("firstName").setLabel(new
ResourceModel("resource.key"));
craigdd wrote:
>
> I noticed that when using a RequiredTextField that the validation message
> that comes up if no value was added to the textfield is the name of the
> component. In other words I have a page backed my a model object that has
> a property called "firstName". The message that comes up is firstName is
> required.
>
> Is there a better way to handle this? I'd rather see something like First
> Name is required.
>
> Can this be done or do you have to write your own custom validator?
>
--
View this message in context:
http://www.nabble.com/User-Friendly-Validation-Messages-tf2427094.html#a6767581
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user