> Let me create a test. Good idea.
Sven Gonzalo Aguilar Delgado <gagui...@aguilardelgado.com> schrieb: >Hello Sven, > >Because I'm using this validator in a production application and users >complained about system asking to put the homeland line phone number >because it was fixed to 9 chars. > >But it's really just a validator with a exact string validator with size >9 test. It forces to put something of size 9 inside the textbox. > >Let me create a test. > > > >El sáb, 06-10-2012 a las 21:03 +0200, Sven Meier escribió: > >> > ... when the field is not required ... it should let go the field if empty >> > but should run >> > the validator if the field has something in it. >> >> This is exactly how it works. The following test shows it: >> >> >> https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commitdiff;h=d3f3b43e >> >> Why to you think the actual behavior is different? >> >> Sven >> >> >> On 10/06/2012 02:15 PM, Gonzalo Aguilar Delgado wrote: >> > Hello, >> > >> > I've found a little issue with validators. >> > >> > When you set an StringValidator.ExactLengthValidator(9) into a TextField >> > it requires you to enter exactly 9 chars. >> > >> > This seems to be okay. But what happens when the field is not required. >> > setRequired(false). What's the correct behavior?! >> > >> > >> > It should let go the field if empty but should run the validator if the >> > field has something in it. >> > >> > This is not the actual behavior. Should I open a bug report? >> > >> > Best regards... >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >>