Beehive
  1. Beehive
  2. BEEHIVE-963

pageflow_tutorial, form validation, application bug

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.1
    • Component/s: Tutorials
    • Labels:
      None
    • Environment:
      Windows, Firefox Browser

      Description

      Following the pageflow tutorial, everything is fine until the validation application which has a minor bug (just looks bad if letting a user play with it in a demo).

      To reproduce:

      Get to this stage:

      http://beehive.apache.org/docs/1.0/netui/tutorial_pageflow.html#validation

      Deploy the validation app to Tomcat.

      Go through all the pages one time with valid data until you end up on this page:
      http://localhost:8080/pageflow_tutorial/processData.do

      Now, go back to page2.do by clicking browser back button.

      Now enter INVALID data (age = 200 for example).

      Instead of staying on page2 with the invalid data message you end up being sent through to processData with empty data.

      If you go through the flow without ever using the back button, you don't get this type of problem...

      Tom

        Activity

        Hide
        Thomas Preston added a comment -

        I am in the next tutorial now with the SportController being added and you have the same problem with that tutorial only it is more complex to describe how to reproduce...just go to the end of the flow, use the back arrow and try again to validate...especially if putting in invalid stuff...

        TOm

        Show
        Thomas Preston added a comment - I am in the next tutorial now with the SportController being added and you have the same problem with that tutorial only it is more complex to describe how to reproduce...just go to the end of the flow, use the back arrow and try again to validate...especially if putting in invalid stuff... TOm
        Hide
        Steve Hanson added a comment -

        This repros for me.

        This should get some dev attention – this is more than just a 'tutorial' level problem.

        Show
        Steve Hanson added a comment - This repros for me. This should get some dev attention – this is more than just a 'tutorial' level problem.
        Hide
        Rich Feit added a comment -

        The changes I made to the tutorial with revision 345129 fix this problem. Issues with navigateTo=Jpf.NavigateTo.currentPage and the back button (when staying within the same page flow) are tracked at http://issues.apache.org/jira/browse/BEEHIVE-231 .

        Thomas, thanks for the heads-up.

        Show
        Rich Feit added a comment - The changes I made to the tutorial with revision 345129 fix this problem. Issues with navigateTo=Jpf.NavigateTo.currentPage and the back button (when staying within the same page flow) are tracked at http://issues.apache.org/jira/browse/BEEHIVE-231 . Thomas, thanks for the heads-up.

          People

          • Assignee:
            Alejandro Ramirez
            Reporter:
            Thomas Preston
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development