beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julie Zhuo (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Closed: (BEEHIVE-233) page flow actions can't use generic type-variables as arguments
Date Sat, 14 May 2005 00:02:05 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-233?page=all ]
     
Julie Zhuo closed BEEHIVE-233:
------------------------------


Verified working at rev170022. BEEHIVE-460 is one case of this usage.

> page flow actions can't use generic type-variables as arguments
> ---------------------------------------------------------------
>
>          Key: BEEHIVE-233
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-233
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Rich Feit
>     Assignee: Julie Zhuo
>     Priority: Minor
>      Fix For: V1Beta

>
> The following class gives an error for the 'T' argument to the submit action:
>     @Jpf.Controller(
>         simpleActions={@Jpf.SimpleAction(name="begin", path="index.jsp")}
>     )
>     public class Controller< T extends Controller.BaseFormBean > extends PageFlowController
>     {
>         @Jpf.Action(
>             forwards={
>                @Jpf.Forward(name="index", path="index.jsp")
>             }
>         ) 
>         protected Forward submit( T form )
>         {
>             return new Forward("index");
>         }
>         public static class BaseFormBean implements Serializable
>         {
>             private String _foo;
>             public void setFoo( String foo ) { _foo = foo; }
>             public String getFoo() { return _foo; }
>         }
>     }
> We should support this -- as far as the annotation processor is concerned, T is a BaseFormBean.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message