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

Mixing JSF and Dojo widget for custom components

As you probably know, Dojo Toolkit is an "open-source JavaScript toolkit useful for building great web applications". In this recipe, you will see how to mix Dojo and JSF to create a custom component. JSF comes with a custom component that has a text field for entering e-mail addresses, while Dojo comes with e-mail validation and will add a few styles to our component.

Getting ready

We have 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, you have to download Dojo, which is available at the address www.dojotoolkit.org or in the book code bundle under the /JSF_libs/Dojo JSF 2.0 folder. Dojo ...

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