Re: [Wicket-user] User Friendly Validation Messages
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 http://www.day-to-day-stuff.blogspot.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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] User Friendly Validation Messages
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 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 >> ResourceModel("resource.key")); >> >> > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.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 > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/User-Friendly-Validation-Messages-tf2427094.html#a6776477 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] User Friendly Validation Messages
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 > ResourceModel("resource.key")); > > -- Erik van Oosten http://www.day-to-day-stuff.blogspot.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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] User Friendly Validation Messages
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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] User Friendly Validation Messages
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 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#a6767537 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] User Friendly Validation Messages
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#a6767510 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user