Contents
- 1 What is an apex component?
- 2 What is the purpose of component in Salesforce?
- 3 What is visual force component?
- 4 How do I use a component in a VF page?
- 5 How do I use Apex repeat?
- 6 What is difference between Visualforce Components and lightning components?
- 7 What is the name of the apex controller?
- 8 What do you need to know about apex attribute?
What is an apex component?
The Apex component allows us to use custom components with attributes that can be passed to a Visualforce page by using tag. Introduction. The Apex component allows us to use custom components with attributes that can be passed to a Visualforce page by using tag.
What is the purpose of component in Salesforce?
A custom component encapsulates a common design pattern that can be reused in one or more Visualforce pages. It consists of: A set of Visualforce markup demarcated by the tag.
How do you use Apex components?
Go to Setup -> Develop -> Components -> then write component name. In our case component name is ‘myComponent’. This component is creating two attributes using tag. First attribute is deciding what text text should be displayed and second attribute is deciding color of text.
What is visual force component?
Visualforce is a component-based user interface (UI) framework that enables the creation of dynamic, reusable interfaces. The Visualforce framework is part of Salesforce’s Force.com Platform as a Service (PaaS) offering, which is designed to simplify the development and deployment of cloud applications and websites.
How do I use a component in a VF page?
There are three steps to add Aura components to a Visualforce page.
- Add the Lightning Components for Visualforce JavaScript library to your Visualforce page using the component.
- Create and reference a Lightning app that declares your component dependencies.
Why do we use Aura components?
It’s a modern framework for building single-page applications with dynamic, responsive user interfaces for Lightning Platform apps. An app framework is a collection of code and services that make it easier for you to create your own custom apps, without having to write all the code yourself.
How do I use Apex repeat?
apex:repeat is an iteration component that allows you to output the contents of a collection according to a structure that you specify. The collection can include up to 1,000 items….Using apex:repeat in Visualforce Page
What is difference between Visualforce Components and lightning components?
A: Visualforce components are page-centric and most of the work is done on the server. Lightning is designed from the component up, rather than having the concept of a page as its fundamental unit. Lightning Components are client-side centric, which makes them more dynamic and mobile friendly.
How to create a custom component in apex?
All custom component definitions must be wrapped inside a single tag. This component supports HTML pass-through attributes using the “html-” prefix. Pass-through attributes are attached to the generated container tag, or , depending on the layout attribute.
What is the name of the apex controller?
The name of the Apex controller used to control the behavior of this custom component. The name of one or more controller extensions that add additional logic to this custom component. An identifier that allows the component to be referenced by other tags in the component definition.
What do you need to know about apex attribute?
Required? Indicates whether the attribute can be used outside of any page in the same namespace as the attribute. Possible values are “public” (default) and “global”.
What do you need to know about caching sites in apex?
For details on caching Sites pages, see “Caching Force.com Sites Pages” in the Salesforce online help. The name of one or more custom controller extensions written in Apex that add additional logic to this page. An identifier for the page that allows it to be referenced by other components in the page.