beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Troy Beecroft (JIRA)" <...@beehive.apache.org>
Subject [jira] Created: (BEEHIVE-1146) Provide annotation processor warning for conditiional forwards with duplicate expressions
Date Tue, 12 Sep 2006 22:35:24 GMT
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
            Priority: Minor


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

        

Mime
View raw message