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

beforeRender not called for behaviour added to ComponentTag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.5
    • 1.4-RC3
    • wicket
    • None

    Description

      When adding a IMarkupFilter and adding a behaviour to the ComponentTag, the beforeRender method is never called, only onComponentTag will be called, but by then it is too late to modify the component.

      Usecase: I would like to make components hidden if the markup contains wicket:hidden="hidden". For this i need to modify the components visiblitiy depending on if the markup contains that attribute.

      The attached quickstart will never reach the System.out.println("beforeRender: should hide component"); in HiddenComponentMarkupFilter

      Attachments

        1. HiddenComponentsMarkupFilter.java
          2 kB
          Juegen Donnerstag
        2. ComponentTagAddBehaviourBug.zip
          17 kB
          David

        Activity

          People

            jdonnerstag Juegen Donnerstag
            medavid David
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: