You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/10/04 16:15:46 UTC

[jira] [Created] (WICKET-5384) Allow form components to trim the input themselves

Martin Grigorov created WICKET-5384:
---------------------------------------

             Summary: Allow form components to trim the input themselves
                 Key: WICKET-5384
                 URL: https://issues.apache.org/jira/browse/WICKET-5384
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 6.11.0
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov
            Priority: Minor


Make org.apache.wicket.markup.html.form.FormComponent#trim non-final so they can trim the input with more sophisticated ways.

String#trim() removes only the breaking whitespaces. 
To trim non-breaking ones the application can use Guava's CharMatcher.WHITESPACE.trimFrom(str) for example.



--
This message was sent by Atlassian JIRA
(v6.1#6144)