AbstractConverter checks the ParsePosition to ensure that the complete value is 

>if (position.getIndex() != stringValue.length())
>  throw newConversionException("Cannot parse '" + value + "' using format " + 
> format,
>        value, null).setFormat(format);

Thus trailing whitespace will prevent the build-in convertes to parse dates, 
integers, doubles ...
Interestingly leading whitespace doesn't matter, since most format objects seem 
to skip them.

Is this the intended behaviour? Wouldn't it be easier if this check didn't 
happen? What's this check good for?


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
Wicket-user mailing list

Reply via email to