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

PreviousButton isEnabled() should bo logical conjunction of getWizardModel().isPreviousAvailable() and super.isEnabled()

    XMLWordPrintableJSON

Details

    Description

      The implementation of isEnabled in PreviousButton breaks the implicit contract of setEnabled(false) -> isEnabled() returning false.

      Implementation should be
      return super.isEnabled() && getWizardModel().isPreviousAvailable();

      Attachments

        Activity

          People

            bitstorm Andrea Del Bene
            bjorertz Mikael Björertz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified