hrbaer wrote: > > > ... > protected void populateItem( ListItem<Entity> item ) { > > final Entity e = item.getModelObject(); > item.add( new Label( "text", e.getName() ) ); e not null? > item.add( new Link( "Details_Link" ) { > > @Override public void onClick() { > label.setVisible( true ); > selectedEntity = e; // but e is null How > is that possible if e not null before? > selectedEntity = item.getModelObject(); > (though I doubt if this is good practice. > I prefer to use Models where possible) > } > > }); > > } > }); > > } > --------------------------- >
----- -- Regards, Hans http://www.cantaa.de http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-do-I-get-the-selected-entity-of-a-table-tp3306749p3308481.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org