wicket - Link to last version of stateful page -
i have number of stateful pages state each page. example each page has form submitted.
how can organize menu links last versions of these stateful pages? should store anywhere (may in session) reference appropriate object each page? if use
onclick() { setresponsepage(mypage.class); }
than lose previous state of page. want link last state of page.
each time page rendered store page's id in session.
int pageid = pageinstance.getpageid();
a list or stack data structure used hold identifiers.
you can implement navigation menu using repeater (repeatingview or such) creates new link each page id in session.
in link's click handler can redirect user follows:
page pageinstance = (page) new pageprovider(pageid, null).getpageinstance(); setresponsepage(pageinstance);
Comments
Post a Comment