DefaultTreeModel and Wicket Tree: setAsksAllowsChildren doesn't work
问题 I'm using Wicket's Tree component in a web app. But empty folders are shown in a file-way. Just like this: Bellow is where I use the DefaultTreeModel and Tree: PDMinterface pdmI = new PDMinterface(); DefaultMutabletreeNode rootTreeNode = pdmI.getDocTree(); //文档树根结点,由PDM接口提供 DefaultTreeModel treeModel = new DefaultTreeModel(rootTreeNode); treeModel.setAsksAllowsChildren(true); and I'm sure that folder5 is set to allow children: public DefaultMutableTreeNode getDocTree(){ DefaultMutableTreeNode