+ Start a Discussion
Abhilash Mishra 13Abhilash Mishra 13 

Share a common List between two pages.

I want to share a common list between two pages.


Scenario. : My first visualforce pages is saving some records and a proper list  of results is  being maintained. (i.e. i am adding the success and error messages to a list) .  Now where i redirect to the other page. I have use the data saved in this list. how can i be able to share list in between two pages.


Hello Abhilash,

Try using, single Apex controller for both pages and redirect the page2 with return PageReference.redirecting_PageName  in your redirecting method.

I hope this helps you,if its please mark it solved.