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

tree.Node calls virtual methods from constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0-M4
    • 8.0.0-M5
    • wicket-extensions
    • None

    Description

      Class org.apache.wicket.extensions.markup.html.repeater.tree.Node calls pure virtual method createContent() from constructor.

      Because of this call a class that implements Node has no chance to initilalize itself before createContent() method is called.

      I believe the whole constructor of Node class can be safely moved to onInitialize method.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            mfursov Mikhail Fursov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: