Link to last version of stateful page

2013-08-28 Thread junixar
I have a number of stateful pages with some state for each page. For example
each page has already submitted form.

How can I organize a menu with links to last versions of these stateful
pages? Should I store anywhere (may be in the session) reference to
appropriate object for each page? If I use

onClick() { setResponsePage(MyPage.class); }

than I lose the previous state of the page. I want to link to last state of
the page.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-last-version-of-stateful-page-tp4661116.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Link to last version of stateful page

2013-08-28 Thread Wolfgang

Hi Junixar!

You have to give the Page Object to the new Class like:
onClick() { setResponsePage(new MyPage(Frontpage.this))}

This should help.

Greetings

On 2013-08-28 15:21, junixar wrote:

I have a number of stateful pages with some state for each page. For example
each page has already submitted form.

How can I organize a menu with links to last versions of these stateful
pages? Should I store anywhere (may be in the session) reference to
appropriate object for each page? If I use

onClick() { setResponsePage(MyPage.class); }

than I lose the previous state of the page. I want to link to last state of
the page.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-last-version-of-stateful-page-tp4661116.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Link to last version of stateful page

2013-08-28 Thread Sven Meier

You can use a PageReference:

   PageReference reference = page.getPageReference();

   Page page = reference.getPage();

Regards
Sven

On 08/28/2013 03:21 PM, junixar wrote:

I have a number of stateful pages with some state for each page. For example
each page has already submitted form.

How can I organize a menu with links to last versions of these stateful
pages? Should I store anywhere (may be in the session) reference to
appropriate object for each page? If I use

onClick() { setResponsePage(MyPage.class); }

than I lose the previous state of the page. I want to link to last state of
the page.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-last-version-of-stateful-page-tp4661116.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org