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

LabeledPropertySelectionModel.isDisabled ignores underlying model

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1, 4.1.1, 4.1.2, 4.1.3, 4.1.5
    • 4.1.6
    • Core Components
    • None

    Description

      LabeledPropertySelectionModel.isDisabled only looks at the label, but not the underlying model.

      public boolean isDisabled(int index) {
      return index == 0 && _option == null;
      }

      should be replaced with:

      public boolean isDisabled(int index) {
      return index == 0 ? _option == null : _model.isDisabled(index - 1);
      }

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            dcalde Daniel Caldeweyher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: