フリー問題

Salesforce Certified Platform Developer II のフリー問題 10 / 20 問目

問題文

An airline maintenance team uses a Visualforce page where a technician picks a part number and the page shows its stock. Today the whole page reloads on each click and the technician loses the scroll position in a long list. What should the developer change?

選択肢

  1. Move the list into a static resource and rebuild it with JavaScript after the first load, because a Visualforce form always posts the whole page and cannot redraw a subset of its components.
  2. Set the immediate attribute on the button to true, because that keeps the page from being reloaded when the action runs, and the list stays where it was on the screen.
  3. Wrap the panel in an actionRegion so that the whole page is submitted but only that region is redrawn on the way back, and the scroll position survives.
  4. Give the command button a reRender attribute that names the output panel holding the stock figures, so only that panel is redrawn.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。