You are previewing Visualforce Developer's Guide.
O'Reilly logo
Visualforce Developer's Guide

Book Description

Learn the latest developments in Salesforce with this hands-on pocket guide

  • Build Visualforce pages for mobile applications

  • Learn the best practices and security tips for Visualforce and Apex development

  • Build custom controllers with controller extensions

  • In Detail

    Visualforce allows you to build sophisticated, custom user interfaces that can be hosted natively on the 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.

    "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.

    "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.

    Table of Contents

    1. Visualforce Developer's Guide
      1. Table of Contents
      2. Visualforce Developer's Guide
      3. Credits
      4. About the Author
      5. Acknowledgments
      6. About the Reviewers
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
          3. Instant Updates on New Packt Books
      8. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      9. 1. Getting Started with Visualforce
        1. The MVC model
        2. Understanding Visualforce
        3. The Visualforce architecture
        4. Advantages of Visualforce
        5. Visualforce development tools
        6. Summary
      10. 2. Controllers and Extensions
        1. Standard controllers
          1. How to use a standard controller with a Visualforce page
          2. Standard controller actions
        2. Standard list controllers
          1. How to use a standard list controller with Visualforce
          2. Standard list controller actions
        3. Custom controllers and controller extensions
          1. Understanding custom controllers
          2. Building a custom controller
          3. Understanding controller extension
          4. Building a controller extension
          5. Controller methods
            1. Getter methods
            2. Setter methods
            3. Action methods
        4. Working with large sets of data on the Visualforce page
        5. Order of execution of a Visualforce page
          1. Order of execution for a Visualforce page's get requests
          2. Order of execution for a Visualforce page's postback requests
        6. Validation rules and standard controllers/custom controllers
        7. Using the transient keyword
        8. Considerations for creating custom controllers and controller extensions
        9. Summary
      11. 3. Visualforce and Standard Web Development Technologies
        1. Styling Visualforce pages
          1. Salesforce styles
          2. Custom styles
        2. Using JavaScript in Visualforce pages
          1. Accessing Visualforce components in JavaScript
          2. JavaScript remoting for Apex controllers
        3. Using jQuery in Visualforce pages
        4. HTML5 and Visualforce pages
        5. Summary
      12. 4. Visualforce Custom Components
        1. Understanding Visualforce custom components
        2. Creating and using a custom component
        3. Custom attributes and custom controllers
        4. Summary
      13. 5. Dynamic Visualforce Bindings
        1. Using dynamic references with standard objects and custom objects
        2. Referencing Apex Maps and Lists
        3. Working with field sets
        4. Summary
      14. 6. Visualforce Charting
        1. Limitations and considerations of Visualforce charting
        2. How does Visualforce charting work
          1. Providing chart data
            1. Using the controller method
            2. Using a JavaScript function
            3. Using a JavaScript array
        3. A complex chart with Visualforce charting
        4. Summary
      15. 7. Visualforce for Mobile
        1. Understanding Salesforce Mobile
          1. Salesforce Mobile and Visualforce Mobile supporting devices
          2. Capabilities and limitations of the mobile application
          3. Using Visualforce Mobile
        2. Developing and mobilizing Visualforce pages
          1. Best practices for building Visualforce Mobile pages for iPhone and BlackBerry
          2. iPhone considerations
          3. BlackBerry considerations
          4. Developing cross-platform compatible pages
          5. Using the JavaScript library
          6. Building a mobile-ready Visualforce tab
          7. Creating the mobile configuration
        3. Summary
      16. 8. Best Practices for Visualforce Developments
        1. Accessing component IDs
        2. Page block components
        3. Controllers and controller extensions
        4. Improving Visualforce's performance
        5. Static resources
        6. Rendering PDFs
        7. Using component facets
        8. Summary
      17. A. Security Tips for Apex and Visualforce Development
        1. Security scanning tools
          1. Security Source Scanner
        2. Cross-site scripting (XSS)
        3. Cross-site request forgery (CSRF)
        4. SOQL injection
        5. Data access control
        6. Summary
      18. Index