Multiple choice technology web technology

How do you integrate JSF components with custom JavaScript?

  1. Write a new renderer

  2. hrough faces-config.xml

  3. With HTML pass-through attributes

  4. No specific integration is necessary

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

JSF supports integration with custom JavaScript through HTML pass-through attributes, which allow you to add standard HTML attributes (like onclick, onchange) directly to JSF components. These attributes are passed through to the rendered HTML, enabling JavaScript event handlers and custom behavior. You don't need to write a custom renderer (A), configure it in faces-config.xml (B), or assume no integration is needed (D) - pass-through attributes provide built-in support.