Has anyone written about the way ListView works in Wicket -- i.e. the roles played by ListView, ListItem and the models belonging to these components? I've looked at the JavaDoc in the hope of gaining some intuition as to what is going on, but I'm having "a difficult time seeing the forest because of all the trees."
For example, I'm looking at the Component Reference examples, specifically the RadioGroupPage. The RadioGroup object is constructed with "new Model()" -- which leads me to ask myself "What kind of a silly model is that? Looking at the API documentation for RadioGroup, is says that the group's model is "set to the model of the selected Radio component." So I'm guessing that "new Model()" is just a filler to tell the RadioGroup NOT to search for a ComponentModel further up the hierarchy -- this time, the model comes from down lower in the hierarch. (If that's true, perhaps this usage of a trivial model ought to be described somewhere in the RadioGroup JavaDoc. Or is it a more general pattern followed by a variety of selection components? Does the JavaDoc for the most general abstract selection component explain this usage?) So I look further down for the Radio objects themselves, and see that they are created within the populateItem() method of an anonymous subclass of ListView. Perhaps the relationship between RadioGroup and Radio would be more easily understood via a simpler (though less practical) example in which the set of Radio components were hardcoded -- my vague understanding of working with Listview is getting in the way. As it stands, we give each Radio component the same model as one of the ListItem components of the ListView. I presume the ListItem is built from one of the items of the java.util.List from which the ListView was contructed -- but how??? I suppose my next step is to look at the Wicket implementation of ListView and ListItem to figure out what is going on. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user