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

Field.getRequestValue optional value trim()

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: