textfield strings are not trimmed when performing validation (conversion).
--------------------------------------------------------------------------

                 Key: WICKET-934
                 URL: https://issues.apache.org/jira/browse/WICKET-934
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.0-beta3
            Reporter: Alexandru Objelean


I've discovered the following issue:
When using a DateTextField in a form (with the format: dd/MM/yyyy), user by 
mistake add an extra space (for instance: "06/09/2007 ") and submit the form. 
The are two problems:

1) I would expect the convertor to convert this value correct, but the 
AbstractConverter.parse method throws a ConversionException because: 
(position.getIndex() != stringValue.length()).

2) The above exception is not reported anywhere, because validate method does 
not check if the input is valid after converting its value: 

Forum link: "http://www.nabble.com/Re%3A-Wicket-validation-flaw--p12519433.html";

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to