Select the Open Required Projects check box and click Open Project.
The first time you open Duke’s Tutoring in NetBeans, you will see error
glyphs in the Projects tab. This is expected, as the metamodel files
used by the enterprise beans for Criteria API queries have not yet been
In the Projects tab, right-click the dukes-tutoring project and
This command creates a JDBC security realm named tutoringRealm, builds
and packages the dukes-tutoring-common and dukes-tutoring-war
projects, and deploys dukes-tutoring-war to GlassFish Server, starting
Derby and GlassFish Server if they have not already been
On the login page, enter email@example.com in the User name field,
and enter javaee in the Password field.
Use the administration interface to add or modify students, add
guardians, or add addresses.
To add a new student, click Create new student in the left menu, fill
in the fields (two are required) in the form that opens, and click
Submit. The Email, Home phone, and Mobile phone fields have formatting
requirements enforced by HTML5 pass-through or by Bean Validation
To modify a student, click Edit next to the student’s name, modify the
fields in the form that opens, and click Submit. To edit another
student, choose the student from the drop-down menu at the top of the
page and click Change student.
To remove a student, click Remove next to the student’s name, then
click Confirm in the page that appears. This action removes the student
from the tutoring session but does not remove the student from the
database. To add the student to the tutoring session again, click
Activate student in the left menu, then click Activate next to the
student’s name in the page that appears.
To add a guardian for a student, click Add guardian next to the
student’s name. The page that appears shows the student’s name, the
available guardians, and the current guardians for the student, if any.
To add an existing guardian for that student, select the guardian from
the list and click Add guardian. To create a new guardian for the
student, fill in the fields and click Submit. To remove a guardian from
a student, select one of the student’s current guardians from the list
and click Remove guardian.
To add an address for a student, click Add address next to the
student’s name. In the page that appears, fill in the appropriate fields
in the form that appears, and click Submit. Four fields are required.
The administration interface is not fully implemented. It is not
possible to edit a guardian or to view or edit an address, although
Facelets pages exist for these features. The application also makes no
use of the properties in the PersonDetails entity. Feel free to modify
the application to add these features.