You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Sami Dalouche (JIRA)" <ji...@apache.org> on 2008/02/17 10:41:40 UTC

[jira] Updated: (WW-2495) Workflow Interceptor should allow the action to determine the input view name

     [ https://issues.apache.org/struts/browse/WW-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sami Dalouche updated WW-2495:
------------------------------

    Attachment: CustomWorkflowInterceptor.java

licensed to ASF under the temrs of the apache license

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