java - Does wicket tree work for "not direct" children? -
hey have following situation:
class foo has list of foos,
every foo contains 1 or more objects of class bar , has therefore list bars.
every bar has 1 or more objects of qux, class , because of safed in list named quxs.
is possible loop through these lists / sets wicket tabletree, treetable, defaulttreetable or whatever else.
right i'm trying solve 3 nested listviews, seems not best solution. because if have use listview, whitin listview of listview, difficult object refering to.
the decision whether use listviews or 1 of tree components should made based on desired look&feel (ie. possible user interactions opening/closing nodes in tree). possible present nested list 3 different classes in tree (though may not able take advantage of java generics in case, unless classes have suitable common interface).
the itreeprovider interface place start, if want build own tree structure (https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/extensions/markup/html/repeater/tree/itreeprovider.html).
Comments
Post a Comment