What Wicket version?

The key should be "myField.StringValidator.range", see StringValidator's javadoc.

Sven


On 04/23/2013 12:12 PM, madmax108 wrote:
Hi,
I'm validating a field with StringValidator.lengthBetween, but somehow, it
only displays the default error message rather than one I've defined in a
properties file.

My validator checks length of input between 8 and 20, and I've defined it as    
myField.add(StringValidator.lengthBetween(8,20));

In my properties, I have "myField.StringValidator.lengthBetween= myField is
of invalid length"

But this still shows the error message as "The value of 'myField' is not
between 8 and 20 characters long.

How do I fix this?
I know it's a simple fix, but it's just not working for me

Help much appreciated
Thanks!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Custom-Error-Message-with-StringValidator-length-Between-tp4658184.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to