Apex/VF Functions Flashcards
Describe apex:pageMessage
This component should be used for presenting custom messages in the page using the Salesforce pattern for errors, warnings and other types of messages for a given severity.
Used without rendering it will always display
Describe apex:pageMessages
This component displays all messages that were generated for all components on the current page, presented using the Salesforce styling.
It is only displayed when errors/validation messages were generated when saving
Describe apex:inputField
HTML input element that corresponds to a field on an object. It respects the attributes of the associated field, including whether it is unique, required etc.
Which apex annotation enables client-and-server-side access to an Apex controller method?
@AuraEnabled
Providing this annotation makes your methods available to your Lightning components
Which apex annotation is used to identify methods, classes, exceptions, enums, interfaces, or variables that can no longer be referenced in subsequent releases of the managed package in which they reside
@deprecated
Which apex annotation is used to identify methods that are executed asynchronously
@future
When you specify future, the method executes
when Salesforce has available resources
Which apex annotation is used to define classes and methods that only contain code used for testing your application.
@isTest
Which apex annotation is used to allow you to perform unrestricted queries against the Force.com database (available for Web services and the Scedulable Interface)
@ReadOnly
Which apex annotation provides support for Apex methods used in Visualforce to be called via JavaScript?
@RemoteAction
This process is often referred to as JavaScript remoting
Which apex annotation is used for creating common test records that are available for all test methods
in the class
@testSetup
Which apex annotation is used to access private or protected members of another class outside the test class
@TestVisible
Which Visualforce tag do you use to include your own style sheet or styles on a VF page?
apex:stylesheet
<apex:stylesheet></apex:stylesheet>