On Tue, 07 Oct 2008, Steve Thompson wrote:
> I'm attempting to create a custom validator for social security number
> strings.  I've got the following code for this:
...
>       public final IConverter<String> getConverter(Class type)

Are you overriding getConverter? 

For custom validation, your better off using validators
rather than converter for that. Check out the form 
validation examples.

Basically your approach should work as well, it's just 
weird design to do validation in conversion, especially as
your IConverter returns Strings and not ready-made 
SocialSecurityNumbers. But we'd need to see more code to be
able to help debugging it. Make sure that your form 
component gets submitted.

Best wishes,
Timo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to