* Johan Compagner: > But i think a converter itself should be even simpler like we have now in > 2.0 > > IConverter: > Object convertToObject(String value, Locale locale);
That's interesting. In Cocoon it is called convertFromString() instead of convertToObject(), because a [1]ConversionResult is returned instead of Object. Basically a ConversionResult contains the actual result, but also stores any possible conversion problem: public class ConversionResult { private ValidationError validationError; private boolean successful; private Object result; } Does Wicket 2.0 already handle conversion errors? Does it even catch exceptions at all? -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ [1] http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/datatype/convertor/Convertor.java?revision=392574&view=markup ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop