Tapestry
  1. Tapestry
  2. TAPESTRY-2214

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

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major 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.

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.11 [ 12312968 ]
        Mark Thomas made changes -
        Workflow jira [ 12424858 ] Default workflow, editable Closed status [ 12568626 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568626 ] jira [ 12591660 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development