This feels like a basic question but i am not able to get my head around it.
- have a vf page->controller.
- Controller has a search functionality
- VFpage needs token as parameter
Once a user clicks on the search
button on the vf page, the page should be redirected to the same page showing the same search results and should have the token parameter that was passed to the vf page.
I have put the parameters and redirected in the search method, but the issue is that since it is a redirect of the page, it is executing the constructor and trying to query the results again.
I do not want to query the db again on refresh, i just want to keep the parameters as is.
Feels like i have come across this issue umpteen number of times but for now, i have gone blank :(. Please help.