Wicket
  1. Wicket
  2. WICKET-1172

FormComponentFeedbackIndicator and FormComponentFeedbackBorder is broken

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-rc1
    • Fix Version/s: 1.3.0-rc2
    • Component/s: wicket
    • Labels:
      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 .

      1. IndicatorTest.java
        3 kB
        Marat Radchenko

        Activity

          People

          • Assignee:
            Johan Compagner
            Reporter:
            Dmitry Rzhevskiy
          • Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development