Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1412

Add support for a @IgnoreBlanks hint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Servlets Post 2.1.0
    • Servlets
    • None

    Description

      Given these post parameters:

      ./stringProperty@TypeHint=String[]
      ./stringProperty@IgnoreBlanks=true
      ./stringProperty=foo
      ./stringProperty=bar
      ./stringProperty=

      stringProperty will be set to an array of two values

      ALSO...
      ./stringProperty@IgnoreBlanks=true
      ./stringProperty=

      makes the post sevlet behave as if neither param had been passed. Same thing is true for a mutli-value property if all params are blank:
      ./stringProperty@TypeHint=String[]
      ./stringProperty@IgnoreBlanks=true
      ./stringProperty=
      ./stringProperty=
      ./stringProperty=

      As I mentioned on the dev list, this is really a UI issue, but it seems like something Sling can easily handle.

      Attachments

        Activity

          People

            justinedelson Justin Edelson
            justinedelson Justin Edelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: