You need to sign in to do that
Don't have an account?
eswari
URGENT: Store and retrieve from session and sorting
Hi,
I want to store a list of valueobjects in a session and retrieve the values from session whenever required.
For this, one way I found is, using the same controller for all the pages wherever I require the data.
Is there any other way to achieve this?
Also Can I sort the valueobjects based on name in apex class?
You don't have access to the session in Visualforce, so you can't store and retrieve data from that.
If you use the same visualforce custom/extension controller for multiple pages, then these pages will be able to share information that is stored in the controller. Aside from that, you can store information in custom sobjects that are related to a user record and retrieve these from any page.
You can sort lists as long as they are composed of primitives (e.g. strings).
All Answers
You don't have access to the session in Visualforce, so you can't store and retrieve data from that.
If you use the same visualforce custom/extension controller for multiple pages, then these pages will be able to share information that is stored in the controller. Aside from that, you can store information in custom sobjects that are related to a user record and retrieve these from any page.
You can sort lists as long as they are composed of primitives (e.g. strings).
Thank you... :)