Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Salesforce Certified Platform Developer II (PDII) · Salesforce
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
B. Use the @RemoteAction annotation on the method definition with JavaScript Remoting. JavaScript Remoting: By using the @RemoteAction annotation, a static controller method can be invoked directly from JavaScript. This allows the integration of third-party JavaScript libraries with Visualforce. Asynchronous Calls: JavaScript Remoting supports asynchronous calls with callback functions, providing a responsive user experience when the controller method is called in response to user actions. Simplicity: This approach avoids the need to wrap the controller method in an <apex:actionFunction> or <apex:actionSupport>, which are more tightly coupled to Visualforce components.
Answer B Javascript remoting is correct as actionSupport does not provide javascript support. It calls the controller method directly for the selected user action.
it should be D as involves a user action