Hi,

I know this is quite old but since I do migration to Wicket8 now I think if
there is any "nice" way to do this.

The thing is we have this "mighty" checkbox in the header of a checkbox
column.
For now we use jQuery but for sure there has to be better way.

>From what I have found the best way seems to use HeaderlessColumn and put
this mighty checkbox into a panel that goes into getHeader(final String
componentId).
And of course checkbox for each row into  populateItem(Item cellItem,
String componentId, IModel rowModel).

The thing is, using CheckBoxGroup and CheckBoxGroupSelector these two are
quite separated so not even wrapping whole DataTable in CheckBoxGroup
doesn't really seem to do the trick.

Anyone figured out a better way or is jquery the thing for this?

Zbynek

Reply via email to