February 2014
Beginner
1248 pages
62h 25m
English
Class ValidationBean (Fig. 30.14) provides the read/write properties name, email and phone, and the read-only property result. Each read/write property has an instance variable (lines 11–13) and corresponding set/get methods (lines 16–25, 28–37 and 40–49) for manipulating the instance variables. The read-only property response has only a getResult method (lines 52–60), which returns a paragraph (p) element containing the validated data. (You can create the ValidationBean managed bean class by using the steps presented in Fig. 30.4.3.)
Read now
Unlock full access