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

FormComponentFeedbackIndicator and FormComponentFeedbackBorder is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.3.0-rc1
    • 1.3.0-rc2
    • wicket
    • None

    Description

      FormComponentFeedbackIndicator is not work. FormComponentFeedbackIndicator always invisible because:
      first render forms contain no errors,
      method FormComponentFeedbackIndicator.onBeforeRender (line 78) sets component invisible.
      onBeforeRender() not call for invisible components.

      workaround: override isVisible method :

      @Override
      public boolean isVisible()

      { return Session.get().getFeedbackMessages().hasMessage(this.getFeedbackMessageFilter()); }

      method onBeforeRender don't need override in org.apache.wicket.markup.html.form.validation.FormComponentFeedbackIndicator

      same situation with FormComponentFeedbackBorder .

      Attachments

        1. IndicatorTest.java
          3 kB
          Marat Radchenko

        Activity

          People

            jcompagner Johan Compagner
            dmrzh Dmitry Rzhevskiy
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: