How to get appropriate item model inside populateItem method? Why ListView cannot do it automatically?
2008/11/21 Igor Vaynberg <[EMAIL PROTECTED]>: > item's model needs to be compound, not listview's > > -igor > > On Fri, Nov 21, 2008 at 9:45 AM, kan <[EMAIL PROTECTED]> wrote: >> ListView model is CompoundPropertyModel<List<MyObject>> >> And when I populate items such what: >> >> protected void populateItem(final ListItem<SaleTransfer> item) >> { >> item.add(new Label("fullName")); >> } >> >> I getting error: >> WicketMessage: The expression 'fullName' is neither an index nor is >> it a method or field for the list class java.util.ArrayList >> >> Why ListView doesn't set appropriate item's model to items? >> >> -- >> WBR, kan. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- WBR, kan. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]