Thanks Martin, I ended up with doing something like this, but then using
events so the components don't need to know each other.
On Oct 28, 2016 14:40, "Martin Grigorov" wrote:
> Hi,
>
> You can do: DetailsComponent#onConfigure() {dataTable.configure();
> configureMyself();}
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Oct 28, 2016 at 1:33 PM, Rob Audenaerde
> wrote:
>
> > Hi all,
> >
> > I have a DataTable which, in onConfigure(), sets a selected item. I want
> > another (detail) panel, outside of this component, to react on that
> > selection i.e. set it's visibility and render details of the selected
> item.
> >
> > What I see is that the onConfigure() of the detail component is called
> > BEFORE the DataTable, so I figure it renders before the DataTable is
> > rendered, so the detail.setVisible() in the onConfigure() in the
> DataTable
> > is called too late.
> >
> > How should I solve this? The only component that know which item is going
> > to be selected is the DataTable.
> >
> > Thanks,
> > Rob
> >
>