You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Rob Audenaerde <ro...@gmail.com> on 2016/10/28 11:13:28 UTC
wicket datatable, row selection, update another component
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
Re: wicket datatable, row selection, update another component
Posted by Rob Audenaerde <ro...@gmail.com>.
Whoops! You are correct! Sorry 'bout that.
On Fri, Oct 28, 2016 at 1:26 PM, Alan Woodward <al...@flax.co.uk> wrote:
> Hi Rob, I think you posted this to the wrong mailing list?
>
> Alan Woodward
> www.flax.co.uk
>
>
> > On 28 Oct 2016, at 12:13, Rob Audenaerde <ro...@gmail.com>
> 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
>
>
Re: wicket datatable, row selection, update another component
Posted by Alan Woodward <al...@flax.co.uk>.
Hi Rob, I think you posted this to the wrong mailing list?
Alan Woodward
www.flax.co.uk
> On 28 Oct 2016, at 12:13, Rob Audenaerde <ro...@gmail.com> 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