beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <...@beehive.apache.org>
Subject [jira] Resolved: (BEEHIVE-1043) Relax the forward action not found from an error to a warning.
Date Tue, 17 Jan 2006 18:07:43 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-1043?page=all ]
     
Carlin Rogers resolved BEEHIVE-1043:
------------------------------------

    Resolution: Fixed

This has been fixed with svn revision 369852,...
http://svn.apache.org/viewcvs?rev=369852&view=rev

To test this, create a page flow and add an action to the page flow Controller such that the
Jpf.Forward annotation of the action has an action attribute (rather than path) with the value
being a bogus, non-existant action name. Something like the following.

    @Jpf.Action(
        forwards = {
            @Jpf.Forward(
                name = "success",
                action = "aBogusAction")
        })
    public Forward testAction()
    {
        return new Forward("success");
    }

Before this change, the compiler would report an error. Now, the compiler will report only
a warning.

> Relax the forward action not found from an error to a warning.
> --------------------------------------------------------------
>
>          Key: BEEHIVE-1043
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-1043
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>     Priority: Minor
>      Fix For: 1.0.1

>
> A forward that references a non-existent action using the *action* attribute is currently
an error while referencing a
> non-existent action or page with the *path* attribute results in a compiler warning.
Note that action="..." does not support referencing an action name in a Struts module. So
rather than report an error, just report a warning.
> After a brief discussion on the dev list, I think we're in agreement that it's OK to
relax this to a warning
> See the discussion in the archive...
> http://mail-archives.apache.org/mod_mbox/beehive-dev/200601.mbox/%3cba6911de0601130801y5b949986x1f0c0f3de8e67ba9@mail.gmail.com%3e

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