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

Page constructed twice when a BookmarkableLink has PopupSettings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.5
    • 1.3.0-beta2
    • wicket
    • None

    Description

      If PopupSettings are set on a BookmarkableLink the target Class of the BookmarkableLink is constructed twice if the Link is from a super class. Here is an example of how to reproduce with the examples.

      wicket.examples.WicketExamplePage add after line 53...

      BookmarkablePageLink link = new BookmarkablePageLink("link", HelloWorld.class);
      link.setPopupSettings(new PopupSettings());
      add(link);

      wicket.examples.helloworld.HelloWorld.html add...

      <a wicket:id="link">popup link</a>

      Then in HelloWorld's constructor set a breakpoint and you will see it being called twice.

      Attachments

        Activity

          People

            almaw Alastair Maw
            weazelb0y Joseph Toth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: