Saturday, 3 November 2012

  1. Can I pass a list of object from one vf page to another vf page

You cannot pass list of object from one vf page to another as parameter passing. But there is a workaround for your requirement. You can share the controller for both vf pages. Use same controller class for both vf pages. Then you can redirect the page as follows


public PageReference nextPage()
{
   
 PageReference np = new PageReference('/apex/nextPage');
 np.setRedirect(false);
 return np;
}
 setRedirect(false) will keep your records in manipulated list. Then you can access that list of object from second page.

No comments:

Post a Comment

Why to use Database.Stateful()?

Database Stateful is interface. It is used in batch classes to maintain the state of the class across transactions i.e. if you want to use ...