Ofcourse I forgot the getter... public class MyListItem extends ListItem<MyData> { private TextField myTextField;
public MyListItem(MyData myData) { myTextField = TextField(...); } /** * @return the myTextField */ public TextField getMyTextField() { return myTextField; } } 2009/5/9 Martin Makundi <martin.maku...@koodaripalvelut.com>: > Hi! > > What about if the MarkupContainer was used in a more bean-like manner: > > public abstract class ListItem<T> extends WebMarkupContainer ... > > new ListView<MyData>("id", ..., MyListItem.class); > > public class MyListItem extends ListItem<MyData> { > private TextField myTextField; > > public MyListItem(MyData myData) { > myTextField = TextField(...); > } > } > > > This way we would have type safety and you could navigate the > components via the getters. > > The question remains how this fits into the rendering and element > reuse etc. logic. > > ** > Martin > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org