Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-673

synchronize AbstractBehavior#isEnabled(Component component) with Component#isEnabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0-beta2
    • None
    • None

    Description

      AbstractBehavior#isEnabled(Component component) currently returns true
      by default. Better would be:

      public boolean isEnabled(Component component)

      { return component.isEnabled(); }

      Behaviors should be ignored when a component is not visible, but some
      components like TextFields for instance, can be disabled but still
      visible. A concrete case I have here is a disabled textfield with a
      datapicker attached, and the datepicker is still visible and worse,
      when you use it, you can change the value in the textfield.

      See also http://www.nabble.com/AbstractBehavior-isEnabled%28Component-component%29-tf3949139.html

      Attachments

        Activity

          People

            ehillenius Eelco Hillenius
            ehillenius Eelco Hillenius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: