2. What is a Visualforce Page ?
Visualforce page
Visualforce page consists of Visualforce tags, HTML, JavaScript, or any other
Web-enabled code embedded within a single <apex:page> tag. The markup defines the
user interface components that should be included on the page, and the way they should
appear.
3. Visualforce Controllers
Visualforce Controllers
A Visualforce controller is a set of instructions that specify what happens
when a user interacts with the components specified in associated Visualforce
markup, such as when a user clicks a button or link. Controllers also provide access to
the data that should be displayed in a page, and can modify component behavior.
A developer can either use a standard controller provided by the Force.com
platform, or add custom controller logic with a class written in Apex.
4. What are Custom Components?
Similar to the way you can encapsulate a piece of code in a method and then reuse
that method several times in a program, you can encapsulate a common design pattern
in a custom component and then reuse that component several times in one or
more Visualforce pages.
All markup for a custom component is defined within an <apex:component> tag. This tag
must be the top-level tag in a custom component definition.
5. Ключевые моменты Force.com Sites:
• The Force.com Sites technology utilizes Visualforce, the platform framework for
building and deploying custom user interfaces
• The URL for each site can use your unique Force.com domain or your own branded
domain
• Force.com Sites can easily generate Atom syndication feeds based on SOQL queries
• Public access settings control which database objects and fields are accessible to
visitors
• You can easily use the built in content distribution network integration to cache
pages
6. Для чего вы можете использовать
Force.com Sites?
• Corporate and Intranet web sites: You can run your entire public corporate web site on
Force.com Sites, or create intranet sites by IP restricting the sites.
• Microsites – Do you want only portions of your website to be accessible to external
audiences? No problem! Using Force.com Sites, we create dynamic pages that can be
used to obtain key information from end-users.
• Web Applications – Have a need for an application accessible through a browser?
Force.com Sites is the ideal solution for everything from ecommerce vending to
automating complex business flows.
• Custom Business Applications – Utilizing the Force.com cloud platform, you can have
tailored business applications built without the need for costly investment in
infrastructure. Our experienced and certified team delivers the specific know-how to
develop the applications and processes using this secure, reliable, and fast platform to
meet your business needs.
7. Authenticated Sites and Custom Portals
You may want to authenticate visitors to the site though. For example, if you want to
permit someone to submit a resume against one of the listed Job Openings, you may
want to authenticate them. This essentially becomes a "portal.”
In general, there are 3 general categories of Salesforce.com Portals:
• Customer Portals
• Authenticated Sites
• Salesforce.com Sites
In each of these you are giving access to your salesforce.com data to people who are
not users of your salesforce system.
8. Creating a Force.com site
To create a basic Force.com Site, you need to follow the following four steps:
1) Register a domain name
2) Create a Force.com Site using the domain name
3) Assign Visualforce pages to the Site
4) Set up the security access permissions
9. URL patch and sites
Once you register your Force.com domain name you can create up to 25 sites under this
domain name (Enterprise Edition and Unlimited Edition). Developer Edition environments
can create 1 site. Each of these sites will have a unique path in the site URL to differentiate
one site from another. The location is optional, as you saw in the tutorial. The following
figure shows the general URL path structure.
A site consists of 3 components:
The Force.com domain name that uniquely identifies your specific
organization (case insensitive)
The path identifies the specific site (case sensitive)
A Visualforce page that is associated with your site (case insensitive)