just pass the reference of the old page into the new page

Page page=new ViewUserDetailsPage(this, user); // this==current page
setResponsePage(page);


then in ViewUserDetailsPage

ViewUserDetailsPage(Page back, User user) {
        add(new PageLink("back-link", back));
}


-Igor



On 9/3/06, wicketmarsh < [EMAIL PROTECTED]> wrote:

hi everdody .. i need help..
i have a form on a page, when i submit the page and go to next page, now i
want to add back button on my second page to go back to first page. as i
understand wicket store pages. in session, is it possible that i on click of
back button i can get my previous page with it's latest state from session
instead of creating previous page with latest model.

has anybody implemented this behaviour? pls. let me know.
thanks in advanace..

marsh
--
View this message in context: http://www.nabble.com/previous-page-tf2213157.html#a6129574
Sent from the Wicket - User forum at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to