O'Reilly logo

JavaServer® Faces 2.0: Essential Guide for Developers by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8CLIENT BEHAVIORS

Behaviors are objects that are attached to user interface components to enhance a component’s functionality. They are not explicitly defined by the component implementation. JSF 2.0 defines a component behavior model with Behavior as the root interface. Different types of behavior contracts and interactions between behaviors and components are supported by the behavior API.

Client behaviors are one implementation of behaviors. They define a mechanism for script-producing behaviors to attach scripts to components to be run on the client from client-side events. Client behaviors are a new feature in JSF 2.0, with which additional client-side functionality can be added to components using scripts. A component obtains the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required