Skip to Content
author's profile photo Former Member
Former Member

Backward Navigation in stateful page


I have a search page with 2 tableviews. Based on user input in some inputfields I fetch records from one table and display it in the first tableview. When the user clicks on row in the first tableview I show Item level details in the second tableview from another table. This all is working fine.

My problem is that I have declared my page as stateful to retain the values in the first tableview. So when I go to some other page from my search page and try to return to the search page by pressing the back button my page is not being displayed.

As I am new to web pages I don't have an idea on how to handle sessions. Please give me some idea of how back navigation is handled in stateful applications.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 07, 2005 at 10:58 AM

    This weblog may answer some questions:


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2005 at 11:05 AM

    Hi Tejaswini,

    in stateful MVC applications back navigation is a question of appropriate model methods. Beside to the business methods the model also holds some sort of state. Hence, when you navigate back in your application - and this back navigation corresponds work-flow/business-logic wise to 'going one step back' - you should provide additional methods in your model that allow for restoring the state of your application as it had been one work-flow/business-logic step before.

    So, after pressing your back button the application should trigger the model's restore method(s). As the model is bound via data-binding to the (old)view, this view should then (i.e. after the according controller calls the view) display the old values.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.