Title: Validation message using FormComponent.setType

I need to check that the entry in a text field is a double.  I see that NumberValidator is deprecated, and that FormComponent.setType is the replacement.  That works fine.  However, I do not know, and can not find, how to specify a custom validation message.  I have a working properties file that provides custom validation messages for other fields where I'm using string validators, but I don't know how to specify a message for the setType.

I am using a property value of MyForm.myPropertyValue.textField.CustomStringValidator for the string validation, but I do not know what to replace "CustomStringValidator" with to specify that the type is set by the form.

Any help would be much appreciated.

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
Wicket-user mailing list

Reply via email to