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

User registration

We have to let the user register into the platform using a registration page. This page might ask for user information and might have a captcha to avoid automatic registrations.

The fields we are going to ask the user to complete are:

  • Username
  • Password
  • Name
  • Surname
  • Email
  • Company

Creating the page structure

Let's start creating the registration page create a folder called /user inside the /view/ directory. Create a blank page (use home.xhtml as a model page) called register.xhtml inside it and open it for editing.

Let's put a form and a panel inside the body definition using this code:

<ui:define name="body"> <h:form id="login"> <rich:panel> <f:facet name="header"> <h:outputText value="#{messages['registration']}" /> </f:facet> <!-- code ...

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