Hi, Why don't you update the table itself ? This will update all its children components too.
Otherwise I'd use Wicket's Event system to send a notification to all interested parties. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 9, 2014 at 7:01 PM, Ephraim Rosenfeld <erosenf...@knoa.com> wrote: > Hello All, > > I am creating a table with a DropDownChoice component in the header of one > of the columns. When a selection is made in the drop down in the column > header, I want to update all of the rows in the table. > > Would the following snippet be the best approach to reference each row > Item component from the column header, or is there an alternative to using > the get() method? > > Thank you in advance, > > - Ephraim > > WebMarkupContainer container = > ((WebMarkupContainer)dropDownChoice.findParent(DataTable.class).get(1)); > DataGridView gridView = > (DataGridView)container.get(0); > for(int i = 0; i < NUM_OF_ROWS; i++) { > Item item = (Item)gridView.get(i); > // do row updates > } >