org.apache.wicket.markup.html.tree.WicketTreeModel should have a constructor 
taking a TreeModel
-----------------------------------------------------------------------------------------------

                 Key: WICKET-2403
                 URL: https://issues.apache.org/jira/browse/WICKET-2403
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.4-RC6
            Reporter: Florent Legendre


org.apache.wicket.markup.html.tree.WicketTreeModel has no constructor yet. It 
forces the user to do the job a constructor should typically take care of 
consisting of:

<code>
private static IModel getModelForTreeModel(final TreeModel treeModel){
        final WicketTreeModel wicketTreeModel = new WicketTreeModel();
        wicketTreeModel.setObject(treeModel);
        return wicketTreeModel;
}
</code>

Nice if such a constructor could make it in 1.4 final.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to