| Interface | Description |
|---|---|
| AjaxMethodTemplate |
This interface must be used in combination to the
AjaxMethodExecutorIt simply templatize the proceeding of a ajax method call : a service execution that can produce a result a redirection that can depend on the result of the execution |
| Class | Description |
|---|---|
| AjaxMethodAspect |
This aspect executes around a method annotated with
AjaxMethod
It should be used in any method that binds an ajax action where no redirection should be done In that case : we log the method call we execute the method If no exception is thrown, we log and display a successful result Else we log and display an error The treatment of the error depends if it is an ApplicationException
The way we display a message is delegated to the MessageHandler |
| AjaxMethodExecutor |
when
AjaxMethodAspect is impossible due to redirectionIt is possible to templatize your controller calls whith a AjaxMethodTemplatethe treatment is similar to what is done in the aspect but we handle a redirection that can depend on the result of the execution |
Copyright © 2018. All rights reserved.