Versions Compared

Key

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

Update syntax and formatting

Say for example we have a 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
  &lt;ww<saf:checkboxlist
      name="selectedOptions"
      list="options"
      listKey="id"
      listValue="name" /&gt; 

If we like to populate options upon validation failure, we could have a prepare interceptor above the validation interceptor in the interceptor stack.

>
code
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.