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

Reload leads to unexpected RuntimeException 'Unable to find component with id'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.3.0
    • 8.0.0-M1, 7.4.0
    • None
    • None

    Description

      The problem is related with component queuing in header.

      Steps to reproduce:
      1. render page
      2. do some ajax
      3. reload

      HomePage.java
      queue(new Label("title", "test"));
      add(new AjaxLink("link") {
        @Override
        public void onClick(AjaxRequestTarget ajaxRequestTarget) {
          ajaxRequestTarget.add(this);
        }
      }.setOutputMarkupId(true));
      
      HomePage.html
      <head>
      <title wicket:id="title">test</title>
      </head>
      <body>
      <ol>
        <li><a wicket:id="link">ajax</a></li>
        <li><a href="#" onclick="location.reload();">reload</a></li>
      </ol>
      </body>
      

      Attachments

        1. wicket-queuing.zip
          12 kB
          Fridolin Jackstadt

        Issue Links

          Activity

            People

              bitstorm Andrea Del Bene
              frido-lbm Fridolin Jackstadt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: