title: How to update a Wicket-Listview with an AjaxLink?
body: <p>i want to update my ListView with NewsEntries via an Ajax-Link. I have a link for each month and on click, i want to show the news from the specific month.</p>
  
  <p>I tried this tutorial but it does not work: 
  <a href="http://blog.xebia.com/2008/06/04/wicket-updating-listviews-using-an-ajaxlink/" rel="nofollow">http://blog.xebia.com/2008/06/04/wicket-updating-listviews-using-an-ajaxlink/</a></p>
  
  <p>Here is a sample of my code:</p>
  
  <pre><code>    add(new Label("title", "News Archive"));
  
      List&lt;NewsEntry&gt; newsEntries = new ArrayList&lt;NewsEntry&gt;();
  
      final ListView&lt;NewsEntry&gt; listview = new ListView&lt;NewsEntry&gt;(
              "newsItem", newsEntries)
      {
          private static final long serialVersionUID = -4294698878214798680L;
  
          @Override
          protected void populateItem(final ListItem&lt;NewsEntry&gt; item)
          {
              Link&lt;Void&gt; link = new Link&lt;Void&gt;("newsItemLinkID")
              {
                  private static final long serialVersionUID = 6176760893378172041L;
  
                  @Override
                  public void onClick()
                  {
                      setResponsePage(getPage());
                  }
              };
  
              link.add(new Label("newsItemLinkName", item.getModelObject()
                      .getHeadline()));
              link.setOutputMarkupId(true);
              item.add(link);
          }
      };
      listview.setOutputMarkupId(true);
      add(listview);
  
      add(new AjaxLink&lt;Object&gt;("march")
      {
          private static final long serialVersionUID = 974013580329804810L;
  
          @Override
          public void onClick(AjaxRequestTarget target)
          {
              NewsDAO news = new NewsDAO();
              listview.setList(news.getNewsFromMonth(MONTH.MARCH));
              target.addChildren(listview, Link.class);
          }
      });
  </code></pre>
  
  <p>At the moment, nothing will be displayed. I got no error, neither in the ajax-debug window, nor in the my eclipse console. I'm kinda stuck right now and don't know whats been wrong.</p>