Book Image

Visualforce Developer's guide

By : Chamil Madusanka
Book Image

Visualforce Developer's guide

By: Chamil Madusanka

Overview of this book

<p>Visualforce allows you to build sophisticated, custom user interfaces that can be hosted natively on the Force.com platform. Visualforce achieves this with the help of a tag-based language which is similar to HTML. This book aims to introduce you to Visualforce development tools to develop a better perspective towards UI development with Visualforce, and take your expertise in UI development to the next level.</p> <p>"Visualforce Developer's Guide" is a hands-on guide aimed towards developing a custom UI interface. As you read through the content, you will notice that this book focuses on a single real-world example. This book builds upon this example to help you understand and use Visualforce development tools in your custom UI interfaces.</p> <p>"Visualforce Developer's Guide" begins with an introduction to Visualforce to give you an understanding of the MVC model and the Visualforce architecture. Special emphasis is given to building a rich user interface by leveraging JavaScript, jQuery, CSS, and HTML with Visualforce. Through the course of the book, you will learn how to reuse the code with the help of custom components, and minimize the Visualforce and Apex code through Visualforce dynamic binding. The later sections of the book focus on building Visualforce pages for mobile devices. By the end of the book, you will learn the best practices and security tips for Apex and Visualforce development.</p>
Table of Contents (17 chapters)
Visualforce Developer's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Rendering PDFs


When we use components in a Visualforce page and the page is rendered as a PDF, these components do not always work. We must not use components that depend on JavaScript actions and Salesforce standard stylesheets.

  • The following components are safe to use in PDF rendering:

    • <apex:composition> (as long as the page contains PDF-safe components)

    • <apex:facet>

    • <apex:dataList>

    • <apex:define>

    • <apex:include> (as long as the page contains PDF-safe components)

    • <apex:insert>

    • <apex:image>

    • <apex:repeat>

    • <apex:outputLabel>

    • <apex:outputLink>

    • <apex:outputPanel>

    • <apex:outputText>

    • <apex:page>

    • <apex:panelGrid>

    • <apex:panelGroup>

    • <apex:param>

    • <apex:stylesheet> (as long as the URL isn't directly referencing Salesforce stylesheets)

    • <apex:variable>

  • The following components can be used with caution in rendering PDF (others are not safe to be used in PDF rendering):

    • <apex:attribute...