Versions Compared

Key

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

Update parent page

Populating the Action properties and validation are both handled by Interceptors. To ensure that the Action properties are populated regardless of whether validation passes or fails, in the Action's Interceptor Stack, ensure that the prepare} Interceptor comes before the {{validation Interceptor.

Code Block
xml
xml
<saf:checkboxlist
 name="selectedOptions"
 list="options"
 listKey="id"
 listValue="name" />
Code Block
Java
Java
public void prepare() throws Exception {
      // populate the options property list with options
      // that are supposed to be checked.
   }
Info

The default stack does place the prepare Interceptor before the validation Inteceptor.