Yes we use LoadableDetachableModel. But we also do some times getModel().getObject() deeper in hierarchy inside the construction, to e.g. set the visibility of a panel or to create just the right panel, instead of creating e.g. ten panels and implement isVisible().
Martin Jan Kriesten schrieb: > Hi Martin, > > >> One reason for loading some data in contstructur or onBeforeRender is to >> prevent creating huge hierarchies. This is faster than override >> isVisible(), since isVisible would called more than one times. >> > > why are you loading data in the component at all? There is this nice > 'LoadableDetachableModel' which could/should wrap that... > > Best regards, --- Jan. > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org