Activity Forums Salesforce® Discussions What Is Difference In Render, Rerender And Renderas Attributes Of Visualforce? Reply To: What Is Difference In Render, Rerender And Renderas Attributes Of Visualforce?

  • Parul

    Member
    September 20, 2018 at 5:59 pm

    Render: – Is used to show/hide the particular block, output panel or input/output fields based on the condition.

    rendered= “true or flase”

    Rerender Attribute:–

    Rerender Attribute is used to refresh particular section on page to update latest data received from salesforce after action method call is done. You need to give the id of page section in attribute as shown below

    rerender = “pageblockId”

    Renderas Attribute:–

    If you want to render your page as PDF, so this is the right option to go ahead with it and most importantly only PDF is the supported content converter. Setting this Renderas attribute to “pdf” renders the page as a PDF.

    Renderas= “pdf”

     

    Thanks