
|
If you were logged in you would be able to see more operations.
|
|
|
|
Problem:
If the Controller provides an @AnyAction-annotated web-method and a @Action-annotation is actually being called the expected result may be overridden depending on the alwaysRun-value of the current Controller-configuration in the bundle.xml.
Current state:
@AnyAction-annotated web-method exists and a @Action-annotated web-method is being called:
IF: @Action-annotated produces a stop-Event:
1. alwaysRun undefined:
ONLY the result of the @Action-annotated web-method will be returned
2. alwaysRun="pre"
ONLY the result of the @Action-annotated web-method will be returned
3. alwaysRun="post"
ONLY the result of the @Action-annotated web-method will be returned
ELSE:
1. alwaysRun undefined:
ONLY the result of the @Action-annotated web-method will be returned
2. alwaysRun="pre"
ONLY the result of the @Action-annotated web-method will be returned
3. alwaysRun="post"
ONLY the result of the @AnyAction-annotated web-method will be returned (if the Controller does have multiple @AnyAction-annotated web-methods only the result of the last executed web-method is being returned); the result of the @Action-annotated web-method will be overridden
Solution:
Provide an additional wrapper within the result of the Controller which wraps the the result for the actual web-method which was executed...
|
|
Description
|
Problem:
If the Controller provides an @AnyAction-annotated web-method and a @Action-annotation is actually being called the expected result may be overridden depending on the alwaysRun-value of the current Controller-configuration in the bundle.xml.
Current state:
@AnyAction-annotated web-method exists and a @Action-annotated web-method is being called:
IF: @Action-annotated produces a stop-Event:
1. alwaysRun undefined:
ONLY the result of the @Action-annotated web-method will be returned
2. alwaysRun="pre"
ONLY the result of the @Action-annotated web-method will be returned
3. alwaysRun="post"
ONLY the result of the @Action-annotated web-method will be returned
ELSE:
1. alwaysRun undefined:
ONLY the result of the @Action-annotated web-method will be returned
2. alwaysRun="pre"
ONLY the result of the @Action-annotated web-method will be returned
3. alwaysRun="post"
ONLY the result of the @AnyAction-annotated web-method will be returned (if the Controller does have multiple @AnyAction-annotated web-methods only the result of the last executed web-method is being returned); the result of the @Action-annotated web-method will be overridden
Solution:
Provide an additional wrapper within the result of the Controller which wraps the the result for the actual web-method which was executed... |
Show » |
|