June 2014
Intermediate to advanced
578 pages
12h 2m
English
JSF 2 comes with the ability to define specific client-side behavior to a component in a reusable approach. The client-side behavior is actually a piece of JavaScript code that can be executed in a browser.
For example, when the user has access to buttons that perform irreversible changes; for example, deletion, copy, and move is a good practice to inform the user about consequences and ask for a confirmation before the action is performed.
For implementing a client behavior functionality, we perform the following steps:
ClientBehaviorBase class.getScript method.@FacesBehavior (value="developer_id") annotation where developer_id is used to refer ...