function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alex SashaAlex Sasha 

How to save view state

I would like to know are any ways to save my current page state when refreshing this page

In my particular  case i have bucket which refreshing every time when add new product to it via rerendered attribute. I would like to save this bucket state when page will be refreshed

User-added image

Vasani ParthVasani Parth
Alex,

You can use outputpanel or pageblocksection to render the particular section. Or may be you can store latest values in any object or in JSON format like an attachment.Hence, after page refreshes, latest values will appear on the page.
Alex SashaAlex Sasha

ou can use outputpanel or pageblocksection to render the particular section.

When I'm refreshing the page via f5 controller is created once more again as I assume, and values are not saved from the controller. So, rerender will not help.

 

Or may be you can store latest values in any object or in JSON format like an attachment.Hence, after page refreshes, latest values will appear on the page.

You mean I can store json in cookies?