Multiple choice technology web technology

What will you to reload the page after ValueChangeListener is invoked

  1. FacesContext.getCurrentInstance().getViewRoot()

  2. FacesContext.getCurrentInstance().responseComplete()

  3. FacesContext.getCurrentInstance().renderResponse()

  4. FacesContext.getCurrentInstance().release()

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

To reload the page after a ValueChangeListener is invoked, call renderResponse() on FacesContext. This method instructs JSF to skip to the Render Response phase, effectively reloading the current view. responseComplete() ends processing without rendering, and getViewRoot() just retrieves the view root without triggering a reload.