beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers" <carlin.rog...@gmail.com>
Subject Re: [jira] Resolved: (BEEHIVE-1139) Differences in project created with apache-beehive-1.0.1\ant\beehive-runtime.xml and documentation that describes it
Date Thu, 21 Sep 2006 20:29:29 GMT
Hi Alexandr,

Thanks for the reply. In comparing the annotations in your email, the
only non-formatting difference is in the path of the new simple action
annotation. The tutorial has a path attribute value of "page2.jsp" and
you have an attribute value of "Page2.jsp". However, in the just above
in the "Create a Destination JSP" section of  this part of the
tutorial, the instructions state to create a new page with the name
"page2.jsp". The path attribute value needs to match, otherwise the
simple action forward will not get the correct page.

The only other differences are all formatting, correct? The
indentation looks to be OK in the tutorial. The other differences are
the spacing around the '=' character and the the line wrap on the
class declaration (along with the '{' placement).

Is there something else about this bug I'm missing?

The syntax and content of the annotations are correct. I gave them a
test. If others on the dev list feel strongly, I can update
formatting, otherwise I'm inclined to close the bug. Thoughts?

Thanks again for the feedback.

Kind regards,
Carlin
( Mr. Rogers ;-) )

On 9/19/06, Alexandr Petrenko <apetrenko@componence.com.ua> wrote:
> Dear Mrs. Rogers,
>
> I am referring to http://beehive.apache.org/docs/1.0.1/netui/tutorial.html.
>
>     Step 2: Create your First Page Flow Controller
>          ...
>        Add a Simple Action to Handle the Link
>             "Open the file web/myFlow/Controller.java.
>             Edit Controller.java so it appears as follows. Don't forget the
> comma after the first Jpf.SimpleAction(...) element!
>
>             Controller.java
>
>         package myFlow;
>
>         import org.apache.beehive.netui.pageflow.annotations.Jpf;
>         import org.apache.beehive.netui.pageflow.PageFlowController;
>
>         @Jpf.Controller(
>         simpleActions={
>             @Jpf.SimpleAction(name="begin", path="index.jsp"),
>             @Jpf.SimpleAction(name="toPage2", path="page2.jsp")
>         }
>         )
>         public class Controller
>             extends PageFlowController
>         {
>         }                Save Controller.java"
>
>     the actual annotation should look like:
> ....
>  @Jpf.Controller(
>       simpleActions = {
>           @Jpf.SimpleAction(name = "begin", path = "index.jsp"),
>           @Jpf.SimpleAction(name = "toPage2", path = "Page2.jsp")
>    }
>  )
>  public class Controller extends PageFlowController {
>  ....
>  }
>
>
>
>
>
> ----- Original Message -----
> From: "Carlin Rogers (JIRA)" <dev@beehive.apache.org>
> To: <apetrenko@componence.com.ua>
> Sent: Monday, September 18, 2006 9:36 PM
> Subject: [jira] Resolved: (BEEHIVE-1139) Differences in project created with
> apache-beehive-1.0.1\ant\beehive-runtime.xml and documentation that
> describes it
>
>
> >     [ http://issues.apache.org/jira/browse/BEEHIVE-1139?page=all ]
> >
> > Carlin Rogers resolved BEEHIVE-1139.
> > ------------------------------------
> >
> >    Resolution: Incomplete
> >
> > Petrenko, What document are you referring to? Is it the tutorial? The
> > example Controller in the bug looks like it comes from the tutorial. Also,
> > the ant targets in beehive-runtime.xml do not generate the Controller
> > class files. So this looks like an issue with some document you are
> > referring to and in your example it appears just to be an issue with the
> > formatting of the code... spaces, etc.
> >
> > Note, the tutorial was cleaned up with svn revision 447474.
> >
> >> Differences in project created with
> >> apache-beehive-1.0.1\ant\beehive-runtime.xml and documentation that
> >> describes it
> >> --------------------------------------------------------------------------------------------------------------------
> >>
> >>                 Key: BEEHIVE-1139
> >>                 URL: http://issues.apache.org/jira/browse/BEEHIVE-1139
> >>             Project: Beehive
> >>          Issue Type: Bug
> >>          Components: Documentation, NetUI
> >>    Affects Versions: 1.0.1
> >>            Reporter: Petrenko Oleksandr
> >>            Priority: Minor
> >>
> >> In docs there is the following example:
> >> Controller.java
> >> @Jpf.Controller(
> >>     simpleActions={
> >>         @Jpf.SimpleAction(name="begin", path="index.jsp"),
> >>         @Jpf.SimpleAction(name="toPage2", path="page2.jsp")
> >>     }
> >> )
> >> public class Controller   extends PageFlowController
> >> {
> >> .....
> >> }
> >> and the actual annotation should look like:
> >> @Jpf.Controller(
> >>      simpleActions = {
> >>          @Jpf.SimpleAction(name = "begin", path = "index.jsp"),
> >>          @Jpf.SimpleAction(name = "toPage2", path = "Page2.jsp")
> >>    }
> >> )
> >> public class Controller extends PageFlowController {
> >> ....
> >> }
> >
> > --
> > 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