Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
JavajavaJava
java
titleEditAction.java prepare Method

		
   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.

...