You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Brian Pontarelli (JIRA)" <ji...@apache.org> on 2008/01/20 17:55:08 UTC

[jira] Created: (WW-2449) Support convention based action chaining

Support convention based action chaining
----------------------------------------

                 Key: WW-2449
                 URL: https://issues.apache.org/struts/browse/WW-2449
             Project: Struts 2
          Issue Type: New Feature
          Components: Plugin - Convention
    Affects Versions: 2.1.1
            Reporter: Brian Pontarelli
            Priority: Minor


Automatically chain actions together based on the return values and the current actions name and namespace. For example, 

package com.example.actions;

public class FooAction {
  public String execute() {
    return "bar";
  }
}

This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2449) Support convention based action chaining

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2449.
---------------------------------

    Resolution: Fixed

Action chaining implemented on the convention plugin in the sandbox

> Support convention based action chaining
> ----------------------------------------
>
>                 Key: WW-2449
>                 URL: https://issues.apache.org/struts/browse/WW-2449
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.1
>            Reporter: Brian Pontarelli
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> Automatically chain actions together based on the return values and the current actions name and namespace. For example, 
> package com.example.actions;
> public class FooAction {
>   public String execute() {
>     return "bar";
>   }
> }
> This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2449) Support convention based action chaining

Posted by "Brian Pontarelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43298#action_43298 ] 

Brian Pontarelli commented on WW-2449:
--------------------------------------

I could probably get that done. I'll email the group and see what the timelines look like. If I know the 2.1.1 deadlines for milestones and release candidates, I could definitely get it done. Or we could just bump it since it isn't vital.

> Support convention based action chaining
> ----------------------------------------
>
>                 Key: WW-2449
>                 URL: https://issues.apache.org/struts/browse/WW-2449
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.1
>            Reporter: Brian Pontarelli
>            Priority: Minor
>             Fix For: 2.1.x
>
>
> Automatically chain actions together based on the return values and the current actions name and namespace. For example, 
> package com.example.actions;
> public class FooAction {
>   public String execute() {
>     return "bar";
>   }
> }
> This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2449) Support convention based action chaining

Posted by "Brian Pontarelli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45027#action_45027 ] 

Brian Pontarelli commented on WW-2449:
--------------------------------------

This was an old request logged in the Smart URLs issue tracker. I just copied it over. I also try to avoid chaining whenever possible so I don't find it a particularly useful addition and is just more behavior that might impact overall usability for a plugin that is supposed to reduce complexity.

> Support convention based action chaining
> ----------------------------------------
>
>                 Key: WW-2449
>                 URL: https://issues.apache.org/struts/browse/WW-2449
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.1
>            Reporter: Brian Pontarelli
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> Automatically chain actions together based on the return values and the current actions name and namespace. For example, 
> package com.example.actions;
> public class FooAction {
>   public String execute() {
>     return "bar";
>   }
> }
> This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2449) Support convention based action chaining

Posted by "Jeromy Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45026#action_45026 ] 

Jeromy Evans commented on WW-2449:
----------------------------------

Musachy asked me to do a review.  'll have a proper look, but I don't think I'd ever use this.  What the main rationale or use-case?

In my apps, albeit mainly based on the rest plugin's paradigm, I've never encountered a need to chain. Default and unknown result handlers suit my circumstances.  In cases where I have chained actions in the past I've ended up regretting the coupling later and having to remove it.

I expect there's no harm if its useful though.




> Support convention based action chaining
> ----------------------------------------
>
>                 Key: WW-2449
>                 URL: https://issues.apache.org/struts/browse/WW-2449
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.1
>            Reporter: Brian Pontarelli
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> Automatically chain actions together based on the return values and the current actions name and namespace. For example, 
> package com.example.actions;
> public class FooAction {
>   public String execute() {
>     return "bar";
>   }
> }
> This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2449) Support convention based action chaining

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2449:
--------------------------

    Fix Version/s:     (was: 2.1.x)
                   2.2.x

> Support convention based action chaining
> ----------------------------------------
>
>                 Key: WW-2449
>                 URL: https://issues.apache.org/struts/browse/WW-2449
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.1
>            Reporter: Brian Pontarelli
>            Priority: Minor
>             Fix For: 2.2.x
>
>
> Automatically chain actions together based on the return values and the current actions name and namespace. For example, 
> package com.example.actions;
> public class FooAction {
>   public String execute() {
>     return "bar";
>   }
> }
> This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2449) Support convention based action chaining

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2449:
--------------------------

    Fix Version/s:     (was: 2.1.1)
                   2.1.x

> Support convention based action chaining
> ----------------------------------------
>
>                 Key: WW-2449
>                 URL: https://issues.apache.org/struts/browse/WW-2449
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.1
>            Reporter: Brian Pontarelli
>            Priority: Minor
>             Fix For: 2.1.x
>
>
> Automatically chain actions together based on the return values and the current actions name and namespace. For example, 
> package com.example.actions;
> public class FooAction {
>   public String execute() {
>     return "bar";
>   }
> }
> This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2449) Support convention based action chaining

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43258#action_43258 ] 

Don Brown commented on WW-2449:
-------------------------------

Soo, are you still thinking to have this done for 2.1.1?  I'm hoping to roll this pretty quick, so I'll move it to 2.1.x if I don't hear different

> Support convention based action chaining
> ----------------------------------------
>
>                 Key: WW-2449
>                 URL: https://issues.apache.org/struts/browse/WW-2449
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Convention
>    Affects Versions: 2.1.1
>            Reporter: Brian Pontarelli
>            Priority: Minor
>             Fix For: 2.1.1
>
>
> Automatically chain actions together based on the return values and the current actions name and namespace. For example, 
> package com.example.actions;
> public class FooAction {
>   public String execute() {
>     return "bar";
>   }
> }
> This would look for the results foo-bar first and if they don't exist it would chain to an action named foo-bar.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.