Transferring to users@, I did not realized I reply to you only Maxim...
---------- Forwarded message ---------- From: Maxim Solodovnik <solomax...@gmail.com> Date: Sat, Jan 14, 2017 at 5:13 PM Subject: Re: Reload TabbedPanel preserving active tab To: Sebastien <seb...@gmail.com> Thanks a lot Sebastien! Works as expected :) On Sat, Jan 14, 2017 at 8:31 PM, Sebastien <seb...@gmail.com> wrote: > Oops, forgot something in the copy paste: > > this.tabPanel = new TabbedPanel("tabs", this.newTabModel()) { >> >> private IModel<Integer> indexModel = Model.of(-1); >> >> @Override >> protected void onConfigure() >> { >> super.onConfigure(); >> >> int index = indexModel.getObject(); >> >> if (index > -1) // TODO eventually also check if the >> corresponding tab is visible >> { >> this.setActiveTab(index); >> } >> } >> >> public void onActivate(AjaxRequestTarget target, int index, >> ITab tab) >> { >> indexModel.setObject(index); >> } >> } >> > > -- WBR Maxim aka solomax