Skip to Main Content
Mastering JavaServer Faces 2.2
book

Mastering JavaServer Faces 2.2

by Anghel Leonard
June 2014
Intermediate to advanced content levelIntermediate to advanced
578 pages
12h 2m
English
Packt Publishing
Content preview from Mastering JavaServer Faces 2.2

The JSF-AJAX attributes

In this section, you will see what the main attributes supported by <f:ajax> are. We start with execute and render, continue with listener and event, and finish with onevent and onerror.

The execute and render attributes

In the previous example, the execute and render attributes affect a single component indicated by its ID. When multiple components are affected, we can specify a list of IDs separated by space, or we can use the following keywords:

  • @form: This keyword refers to all component IDs in the form that contains the AJAX component. If it is present in the execute attribute, then the entire <h:form> is submitted and processed. In case of the render attribute, the entire <h:form> is rendered.
  • @this: This keyword refers ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JavaServer Faces

JavaServer Faces

Hans Bergsten

Publisher Resources

ISBN: 9781782176466Supplemental Content