on 06-06-2007 1:55 PM
I have an application that allows the user to traverse several views (backwards and forwards) during a session. When they leave a view after providing information and then return to the view -- their information is still there -- this is the desired result for my application. Is this always the case or should session data which spans multiple views be maintained in a custom controller?
I guess my question would be ...what is the lifecycle of a viewController context?
Much thanks,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Depends on how the "lifespan" property of view is defined.
Go to your view - > Properties -> Lifespan.
If you make it "When visible " then each time you navigate out , the values would be lost. In this case , you have to put the data in the component controller.. Otherwise , the view exists for the lifetime of the application.
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.