Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2214

Select component should provide control over a blank option for optional selects

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.10
    • Fix Version/s: 5.0.11
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      When using the Select component, you must explicitly add a blank value to the list of possible values if the selection is optional. It would be nice if there was greater control over this.

      1) If the property is optional (as per validation via the validate parameter) then a blank value should appear.
      2) When a blank value is added, there needs to be control over the label for the blank value.
      3) It would be nice if it were possible to override the validator to "force" the Select to include a blank value even if required.

      I think it is reasonable for the blank option to appear first, before an option groups or individual options.

      This would be very useful for search forms, or forms where it is desired that the user be forced to make a selection.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              hlship Howard M. Lewis Ship
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: