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

Not all IComponentConfigurationBehavior methods are called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.4.17
    • None
    • wicket
    • Windows XP Professional 2002 SP3 German

    Description

      I implemented a subclass of IComponentConfigurationBehavior and added this behavior to a component in my application. Unfortunately not all of the callbacks provided by the interface are called during building and rendering the component.

      When adding the behavior to a subclass of the Link component only the following methods are called: isTemporary, bind, isEnabled and detach

      When adding the behavior to a Label instance getStatelessHint is also called.

      But callbacks like beforeRender, afterRender, onConfigure etc are never called.

      I created a quickstart to show this effect, when running the example Start class and accessing the page with a browser the default quickstart page gets shown. The label has a behavior attached that writes a line to System.out for each invocation of one of it's method simply showing the methods name.

      Attachments

        1. behavior.zip
          17 kB
          Christian Huber

        Activity

          People

            ivaynberg Igor Vaynberg
            candlejack Christian Huber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: