[Wicket-user] populateItem

2005-11-02 Thread Paulo Sérgio Medeiros
Hi all, im new to Wicket, and a bit in java (have experience in other oo languages).I dont understand the populateItem construction. Who calls it? When? add(new ListView(rows, listData) { public void populateItem(final ListItem item) { final UserDetails user =

Re: [Wicket-user] populateItem

2005-11-02 Thread Igor Vaynberg
it is a callback that is used by the listview itself. It calls it for every object in the model list. Its there so you can inject your own functionality into the listview, in this case it is used so that you can populate each item with your own hierarchy of components. -Igor On 11/2/05, Paulo