You need to sign in to do that
Don't have an account?
Ola Bamidele
How Many Page Reference Can an Apex Page Have
Hi Gurus,
I have a visualforce page that has four links to others VF pages via an apex code page. All three links works and redirects when clicked however when I add the fourth link, they all do not work.
So I was wondering, is their a maxixmum amount of page reference that can be on one apex page?
If so how can i overcome this issue has I need to have at least 10 page References.
Thanks very much!
I have a visualforce page that has four links to others VF pages via an apex code page. All three links works and redirects when clicked however when I add the fourth link, they all do not work.
So I was wondering, is their a maxixmum amount of page reference that can be on one apex page?
If so how can i overcome this issue has I need to have at least 10 page References.
Thanks very much!
There are several standard parameters like setRedirect which can be used for hard "reset" of controller state. If you make it false then state of variables in controller is maitained across many VF pages.
If you want to add any custom parameters then you can add them like below
Quick Answers to your questions:
1. Why we use pagereference as a return type?
- We normally set return type to a PAgeReference when we need user to other VF page. We return "null" if we want user on same page and we normally return "null" in catch blocks.
2. What is the situation to use the pagereference?
- When you want to jump to other VF page when something is clicked and method takes you to new VF page or refreshing current page by doing "return null;"
I Think There is no such limits Page Reference Can an Apex Page .
It will work as expected :)
Please let us know if this will help you.
Thanks,
Parag Bhatt