Re: [Wicket-user] User Friendly Validation Messages

2006-10-12 Thread Erik van Oosten
You don't even need to do that when you have a resource with the name formid.firstName of just firstName Erik. craigdd schreef: Sorry, should have read a few more posts...here is the solution to the different message. new RequiredTextField(firstName).setLabel(new

Re: [Wicket-user] User Friendly Validation Messages

2006-10-12 Thread craigdd
So you are saying as long as you have the following in the .properties of the page formid.firstName=My Label, I don't even need to set the label in the form code? Very Nice. Erik van Oosten wrote: You don't even need to do that when you have a resource with the name formid.firstName of

Re: [Wicket-user] User Friendly Validation Messages

2006-10-12 Thread Erik van Oosten
Correct. Well, unless you also use FormComponentLabel. Erik. craigdd schreef: So you are saying as long as you have the following in the .properties of the page formid.firstName=My Label, I don't even need to set the label in the form code? Very Nice. -- Erik van Oosten

[Wicket-user] User Friendly Validation Messages

2006-10-11 Thread craigdd
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

Re: [Wicket-user] User Friendly Validation Messages

2006-10-11 Thread craigdd
Or maybe another option would be to show the message The Following Fields are Required and then show something like a red astrick by the fields that are required. \ craigdd wrote: I noticed that when using a RequiredTextField that the validation message that comes up if no value was added

Re: [Wicket-user] User Friendly Validation Messages

2006-10-11 Thread craigdd
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