title: Wicket 6 DefaultNestedTree not expanding on folder click
body: <p>I'm displaying some folders and files in a DefaultNestedTree using Wicket 6 but when clicking on a folder nothing happens... The folder should expand ofcourse.</p>
  
  <p>I've build the three using this <a href="http://www.wicket-library.com/wicket-examples-6.0.x/tree/?0" rel="nofollow noreferrer">example</a> page and <a href="http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?0&amp;SourcesPage" rel="nofollow noreferrer">source</a> from Wicket.</p>
  
  <p>The code to be exact; </p>
  
  <p><em>HTML:</em></p>
  
  <pre><code>&lt;div id="treeClass"&gt;
      &lt;span wicket:id="dirTree"&gt;directory tree&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><em>JAVA:</em></p>
  
  <pre><code>tree = new DefaultNestedTree&lt;Product&gt;("dirTree", provider)
  {
      private static final long serialVersionUID = 1L;
  
      @Override
      protected Component newContentComponent(String id, IModel&lt;Product&gt; node)
      {
          return super.newContentComponent(id, node);
      }
  };
  </code></pre>
  
  <p>The tree gets filled correctly with folders (and subfolder/files) but when clicking on it it doesn't expand. MouseHover shows a clickable link, but could just be styling. In the example page at Wicket <a href="http://www.wicket-library.com/wicket-examples-6.0.x/tree/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?0&amp;SourcesPage" rel="nofollow noreferrer">1</a> I'm not seeing anything to hanlde a click/expand though. And it works well there.</p>
  
  <p>Using a button and AJAX i'm able to expand the tree via java code but after that when clicking on a folder/file I get an 'Access Denied' error page.</p>
  
  <p><img src="https://i.stack.imgur.com/jX56p.png" alt="Tree with content normal and expanded"></p>
  
  <p><strong>What am I missing or doing wrong..?</strong></p>