User Interface20% of the exam

Visualforce partial page refresh and remoting

Which Visualforce tag calls a controller action from an event, a JavaScript callback or a timer; how reRender, actionStatus, actionRegion and immediate change what is processed and redrawn; the postback order behind setters and getters; and when JavaScript remoting beats actionFunction.

Official exam objective
Identify the techniques for using Visualforce to perform actions, partial page refreshes, and asynchronous operations.

~7 min read · 9 practice questions ·

What the exam expects

  • Pick the Visualforce component that calls a controller action from a DOM event, from JavaScript code or on a timer, and the one that limits what the server processes.
  • Use reRender and <apex:actionStatus> for partial refreshes with visible progress, and apply the <apex:actionPoller> rules.
  • Tell <apex:actionRegion> from immediate="true" when required fields block an AJAX action.
  • Predict controller behaviour during a postback: setters before actions, getters in no defined order.
  • Choose between JavaScript remoting and <apex:actionFunction>, and fix a broken @RemoteAction method.

Key terms: action method (controller logic called from page markup), reRender (the IDs redrawn when an AJAX request returns), action region (the part of the page the server processes), postback (a request back to the same page that runs setters, then the action), JavaScript remoting (calling a static @RemoteAction method from JavaScript with a callback).

Controller types and standard actions are in the Platform Developer guide's Apex for page components: controllers and wire adapters and Placing Lightning components, flows and Visualforce; this unit covers the AJAX layer.

Key facts

<apex:actionSupport>
Detail
Adds AJAX to another Visualforce component's DOM event
<apex:actionFunction>
Detail
Defines a JavaScript function; must be inside <apex:form>; params bound by order
Poller interval
Detail
Seconds; 5 or more; default 60; no controller expression
Poller sessions
Detail
Keeps login sessions alive; page won't time out from inactivity
<apex:actionRegion>
Detail
Limits what the server processes, not what is redrawn
immediate="true"
Detail
Skips validation, doesn't update the data model; recommended for cancellation only
Setters
Detail
Run before any action method
Getters
Detail
No defined order or call count; keep idempotent
@RemoteAction
Detail
Static, public or global; no overloads
Remoting timeout
Detail
30 seconds default, up to 120 seconds
Visualforce continuation
Detail
Action method returns the Continuation object
Sources for this section (9)
  • Why does `immediate="true"` break an action that needs the value the user just entered?
  • When should you use `<apex:actionFunction>` rather than `<apex:actionSupport>`?
  • What are the interval rules for `<apex:actionPoller>`?
  • Why should a Visualforce getter have no side effects?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the Platform Developer II pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 28 lessons of the Platform Developer II guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Inline practice questions and one-click topic practice (9 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Unlimited timed practice exams

Practice for the Platform Developer II exam