You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vignesh Palanisamy <vi...@mcruncher.com> on 2015/05/26 09:46:13 UTC
Stateful panel.
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
Re: Stateful panel.
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
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 <vi...@mcruncher.com>
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 <
> francois.meillet@gmail.com> 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 <vi...@mcruncher.com> 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: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
--
Regards - Ernesto Reinaldo Barreiro
Re: Stateful panel.
Posted by Vignesh Palanisamy <vi...@mcruncher.com>.
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 <
francois.meillet@gmail.com> 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 <vi...@mcruncher.com> 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: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Stateful panel.
Posted by Francois Meillet <fr...@gmail.com>.
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 <vi...@mcruncher.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org