O'Reilly logo

JBoss RichFaces 3.3 by Demetrio Filocamo

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

Attaching files

We would like to attach one or more files to each contact. For example, we can attach some image, or the CV, or other useful information about the contact.

By implementing this feature, we are going to introduce three new components and explain how to use them in a productive way.

Creating the wizard

Let's start creating the upload file wizard this is a simple two-page wizard that enables the user to upload and then review files, eventually adding a note to each one.

Let's create the /view/main/uploadFiles/ directory and, inside it, an empty file called wizardFirstStepUploadFiles.xhtml (that will be the first step page of our wizard) with the following content:

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...

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