Workflow Interceptor should allow the action to determine the input view name
-----------------------------------------------------------------------------
Key: WW-2495
URL: https://issues.apache.org/struts/browse/WW-2495
Project: Struts 2
Issue Type: Improvement
Components: Core Interceptors
Affects Versions: 2.1.0
Reporter: Sami Dalouche
Attachments: CustomWorkflowInterceptor.java,
ValidationWorkflowAware.java
If a validation error happens (validation interceptor), the workflow
interceptor redirects the user to the statically configured 'inputResultName'.
This is fine most of the time.
However, when using the conversation scope interceptor (WW-1514), for instance,
the 'inputResultName' cannot be determined statically. Let's say you have an
action, with
@SomeValidations
submit1()
@SomeOtherValidations
submit2()
@AnotherSetOfValidations
submit3()
If you're currently submitting the step 2, and @SomeOtherValidations report an
error, you certainly do not want to go back to step 1.
So, the attached files are a modified DefaultWorkflowInterceptor that will ask
the action to determine the input name if it implements a given interface;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.