Uploaded image for project: 'Click'
  1. Click
  2. CLK-627

Field.getRequestValue optional value trim()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • core
    • None

    Description

      Field class contains method:

      protected String getRequestValue() {
      String value = getContext().getRequestParameter(getName());
      if (value != null)

      { return value.trim(); //<--- here }

      else

      { return ""; }

      }

      Most of the time - trim is very nice feature (I like trim .

      But sometimes I need field "as is" with all its spaces.

      Can You add option for optional trim?

      It should be enabled by default (current behavior), but if somebody need spaces, he can disable trim (for specific field).

      Attachments

        Activity

          People

            Unassigned Unassigned
            andreyrybin Andrew Fink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: