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
SFDC_BigDogSFDC_BigDog 

Render and rerender

Hello,

I have gone through various discussion forums and salesforce blogs. All of them have explained these terms. But my technical knowledge is bad and i could not understand those.
It would be grateful If any of you can take your time and explain these terms in a detailed way with any example. 

Thank you.
Best Answer chosen by SFDC_BigDog
Jerome LusinchiJerome Lusinchi
Hi Varun,
Here is the difference :
Rendered is used to display or not a section of a page. If rendered = false then you will not see the section.

Rerender is used to refresh a section after an action.

one exemple :
You have a Visualforce with a section with the id = "MySection" and the parameter rendered is function of a boolean in you controller named "DisplaySection".
When you load your page the deflault value of DisplaySection is set to false. 
So you will not see your section.

in your visualforce you have a bouton that change the value of your variable DisplaySection to true and with rerender="MySection".
if you click that button :
1) the variable DisplaySection will be set to True
2) the section with id="MySection" will be refresh
3) the section will be visible

Regards,
Jerome