You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

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

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

  • No labels