+ Start a Discussion
U JayU Jay 

I have tw pages.Using the value in pageA i set a list.I can see the exact list in debug too.Redirectiong from pageA to pageB.After load it the list shows null.Why?

I have tw pages.Using the value in pageA i set a list.I can see the exact list in debug too.Redirectiong from pageA to pageB.After load it the list shows null.Why?

Code part...
Both pages using same controller.
if((contList.size() != 0 )&& (healthForm==true)){
               pageReferenceHealthForm=  new pageReference('/apex/pageB');
               pageReferenceHealthForm.setRedirect(true);
               return pageReferenceHealthForm;
      }
Ashish_SFDCAshish_SFDC
Hi , 


View state will contain the values of the previous page, see the blogs below for more information, 

https://gist.github.com/pchittum/7929944

http://blog.jeffdouglas.com/2008/11/14/redirecting-users-to-different-visualforce-pages/


Regards,
Ashish