Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5384

Allow form components to trim the input themselves

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.11.0
    • 6.12.0, 7.0.0-M1
    • wicket
    • None

    Description

      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.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: