> How can I attach my own custom validator? Right now, I am getting > a stack trace, which is thrown when my custom converter does not > like the input. > > Yeah you need to validate the input first before passing it > through Converter.
Thanks for the advice! The problem is that it is only during the conversion that I know if the string was valid or not. It's a bit complicated to explain here because it is part of the problem domain. The pseudocode is like this: recieve input parse input if exception is thrown input was invalid else input was valid So, I cannot pre-validate the string as you suggest unless I run the same procedure above twice, which is not something I want to do. The problem I am facing with IConverter is that the converter throws an exception rather than signaling an invalid state. I could return some kind of "invalid" value or "null" or something, but I would lose all the benefits of validation (feedback messages and so on). Any ideas about how I could get around this problem, or at least something better than return null from IConverter? Thanks! Dave ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user