Multiple choice technology web technology

What is the result when commandLink/commandButton action method returns null for the navigation string.

  1. Throws an exception.

  2. Executes the action method and throws an exception.

  3. Executes the action method and renders current view.

  4. Controller will be in the same page

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The claimed answer is C. When a commandLink or commandButton action method returns null, JSF executes the action method but then re-renders the current view instead of navigating to a different page. Option A and B are incorrect because no exception is thrown. Option D is misleading - it's not just 'same page', it's explicitly re-rendering the current view after action execution.