It is referenced by the superclass (LoadableDetachableModel in this case). It will "cache" the list until after the request cycle is complete. Upon subsequent request cycles, the load() method will be called to re-load the list.
On Tue, Mar 1, 2011 at 12:51 PM, Juansoft <[email protected]> wrote: > Thank for the replies! > > > MZemeck wrote: >> >> Here's a start, please anyone correct me if I've made any mistakes... >> >> public class ListLDM extends LoadableDetachableModel<List> { >> >> private String id; >> >> public ListLDM(List l, String id) { >> //constructor with primed model >> super(l); >> this.id = id; >> } >> >> public ListLDM(String id) { >> //constructor with empty model >> this.id = id; >> } >> >> @Override >> protected List load() { >> return service.getList(id); >> } >> >> } >> >> >> > > In this example , the object that you're wrap in the inner model ("List l" > that you are send in super() constructor) is not used anywhere... ¿i'm > wrong? in this case , ¿why should be using this (in reference a List l in > constructor)? > > > > > ----- > Another "wicket" newbie programmer > ******************************** > Wicket en Español - > > http://aprendiendowicket.wordpress.com > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Perfomance-of-IDataProvider-tp3325777p3330259.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > 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]
