Hi, if you use panel replacement... just keep a copy of search panel around... and once user finish viewing details use that same panel again: that should the all the state is search panel is well designed and self contained.
On Wed, May 27, 2015 at 2:41 AM, Vignesh Palanisamy <[email protected]> wrote: > Thanks François Meillet, > > But my detail and list are not pages those are panels. And i don't > want to refresh the whole page, I just want to replace the panel with > AjaxRequestTarget. > > And i had attached a sample quickstart project in my previous mail. > > On Tue, May 26, 2015 at 4:43 PM, Francois Meillet < > [email protected]> wrote: > > > One way of doing this : > > > > > > 1) go to your detail page > > add( new Link<Void>("detail") { > > > > @Override > > public void onClick() { > > setResponsePage(new YourPage(getPage().getPageReference())); > > } > > }); > > > > public YourPage(PageReference pageReference) { > > this.pageReference = pageReference; > > } > > > > 2) back to the list > > add( new Link<Void>("list") { > > > > @Override > > public void onClick() { > > setResponsePage(pageReference.getPage()); > > } > > }); > > > > > > François Meillet > > > > > > > > Le 26 mai 2015 à 09:46, Vignesh Palanisamy <[email protected]> a > > écrit : > > > > > Hi, > > > > > > I need some help/ideas on list and search state in panel. I have > > two panels in a page, one for searching, i.e., which produces a list of > > items in a datatable which has paging. All this works well. Now, if I > > change pagination links and then select one of the items in the list, > it'll > > take me to a details panel of that item. How can I remember (store) the > > state of the previous list, so when I click a back link/button in the > > details panel, I return to the list panel where the list will have the > same > > state as when > > > I left it? > > > > > > Note: I am using the event for replacing the panel in the page. > > > > > > I had attached a quickstart project with it. > > > > > > > > > Thanks > > > Vicky > > > > > > <backNavigation.zip> > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > -- Regards - Ernesto Reinaldo Barreiro
