THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
If you examine class EditAction in the example application (see above) you'll see that it implements the Preparable Interface. In the prepare method is this code:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
carModelsAvailable = carModelsService.getCarModels() ; setPersonBean( editService.getPerson() ); |
The above statements get the car model values used to populate the car model check boxes displayed in the form and also get the information about the Person object being edited.
...