+ Start a Discussion
dev401hasdev401has 

how to pass List values from one extension to other?

Hi

 

I am having two extensions for two different visualforce pages.

In extension class 1 i am having a list which I want to use in extnsion class 2.

How can i retrieve the values of that List in extension class 2?

 

I declared that list as global in extension 1 and tried to use it but it always comes null.

In what other ways can i get that values in extension 2?

 

Looking forward to your expert solutions.

Best Answer chosen by Admin (Salesforce Developers) 
kprkpr

Why don't you use the same controller for the two visualforce pages? That way, you don't have to worry about the lists being passed between pages