You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Carlin Rogers (JIRA)" <de...@beehive.apache.org> on 2006/09/15 07:03:22 UTC

[jira] Updated: (BEEHIVE-1146) Provide annotation processor warning for conditiional forwards with duplicate expressions

     [ http://issues.apache.org/jira/browse/BEEHIVE-1146?page=all ]

Carlin Rogers updated BEEHIVE-1146:
-----------------------------------

    Fix Version/s: v.next
         Assignee: Carlin Rogers

I can take a look at this one.

> Provide annotation processor warning for conditiional forwards with duplicate expressions
> -----------------------------------------------------------------------------------------
>
>                 Key: BEEHIVE-1146
>                 URL: http://issues.apache.org/jira/browse/BEEHIVE-1146
>             Project: Beehive
>          Issue Type: Improvement
>          Components: NetUI
>    Affects Versions: 1.0.1
>            Reporter: Troy Beecroft
>         Assigned To: Carlin Rogers
>            Priority: Minor
>             Fix For: v.next
>
>
> Currently if you create a simple action with more than one conditional forward, and two of these forwards have the same expression, there is no warning generated by the annotation processor.  This scenario could probably happen easily enough via cut and paste error...  and since one of the forwards is effectively dropped quietly at run time, it'd be a nice check to add.
> Here's an example of the situation:
> @Jpf.Controller
>   (simpleActions = {
>     @Jpf.SimpleAction(name = "anAction", path = "index.jsp", conditionalForwards = {
>         @Jpf.ConditionalForward(condition = "${pageFlow.myProperty}", path = "some.jsp"), 
>         @Jpf.ConditionalForward(condition = "${pageFlow.myProperty}", path = "another.jsp") }) })

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