O'Reilly logo

JSF 2.0 Cookbook by Anghel Leonard

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

PrimeFaces, CommandLink, and CommandButton

As you probably saw in the previous chapters, PrimeFaces provides a set of amazing components with great design and functionality. AJAX got a special treatment from PrimeFaces and the result is reflected in some great AJAX components. In this recipe, we will present two of them that extend standard JSF components with AJAX, partial processing, and confirmation features. These are: p:commandLink (extends h:commandLink) and p:commandButton (extends h:commandButton).

Getting ready

We developed this recipe with NetBeans 6.8, JSF 2.0, and GlassFish v3. The JSF 2.0 classes were obtained from the NetBeans JSF 2.0 bundled library. In addition, we have used PrimeFaces 2.0, which provides support for JSF 2.0. You ...

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