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.
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" ...