wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Referencing DataTable rows within the table column header
Date Tue, 09 Sep 2014 16:10:27 GMT
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 <erosenfeld@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
>                 }
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message