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
Karanbir SinghKaranbir Singh 

What are the advantages of rerendering?

Best Answer chosen by Karanbir Singh
Rupal KumarRupal Kumar
Hi,
 
The "rerender" attribute specifies a list of elements that should be dynamically updated using Visualforce's AJAX library. When a "rerender" attribute is specified, the entire page will no longer refresh, but only a portion of the page identified by the elements named in the "rerender" attribute. This may be desirable, as the entire page will no longer turn white as the page is reloading (noticable on slower connections), but will instead be updated client-side. For slower connections, it is recommended that you use the "status" attribute in addition to the "rerender" attribute so that the user will see a notification that their request is being handled.

Rerender is used to refresh a particular section of the visualforce page. We have to just mention the id of the page section (in the Rerender attribute) that needs to be refreshed.
http://www.cloudforce4u.com/2013/07/render-and-rerender-in-salesforce.html
http://gtr.net/visualforce-attributes-rendered-re-render-and-renderas



Thanks,
Rupal Kumar.
http://www.mirketa.com
 

All Answers

Abhilash Mishra 13Abhilash Mishra 13
It is best suited for AJAX Purposes. On basic and useful example is Ajax search in Visual force pages.
If u Have a table that shows records. All You need to do is rerender it every time with new filtered results depending upon the search keyword.
No need to reload whole page.
Rupal KumarRupal Kumar
Hi,
 
The "rerender" attribute specifies a list of elements that should be dynamically updated using Visualforce's AJAX library. When a "rerender" attribute is specified, the entire page will no longer refresh, but only a portion of the page identified by the elements named in the "rerender" attribute. This may be desirable, as the entire page will no longer turn white as the page is reloading (noticable on slower connections), but will instead be updated client-side. For slower connections, it is recommended that you use the "status" attribute in addition to the "rerender" attribute so that the user will see a notification that their request is being handled.

Rerender is used to refresh a particular section of the visualforce page. We have to just mention the id of the page section (in the Rerender attribute) that needs to be refreshed.
http://www.cloudforce4u.com/2013/07/render-and-rerender-in-salesforce.html
http://gtr.net/visualforce-attributes-rendered-re-render-and-renderas



Thanks,
Rupal Kumar.
http://www.mirketa.com
 
This was selected as the best answer
Karanbir SinghKaranbir Singh
Thank you Rupal and Abhilash