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

  • What Is Difference In Render, Rerender And Renderas Attributes Of Visualforce?

    Posted by Aman on September 20, 2018 at 3:04 pm

    What Is Difference In Render, Rerender And Renderas Attributes Of Visualforce?

    Parul replied 5 years, 7 months ago 3 Members · 2 Replies
  • 2 Replies
  • shariq

    Member
    September 20, 2018 at 3:07 pm

    Hi,

    render – It works like “display” property of CSS. Used to show or hide element.

    rerender – After Ajax which component should be refreshed – available on commandlink, commandbutton, actionsupport etc.

    renderas – render page as pdf, doc and excel.

    Thanks

  • 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

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos