Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleTesting navigation

entering user.ftl will now force execution to go through spring web flow.

At this point should be possible to navigate around all the different views.

...

Use action-state and evaluate to handle behaviour

Now we've expressed the navigation through the use of view-states, transitions and end-states, its now time to start making the flow useful. We can do this using action-state, on-entry and evaluate.

Displaying list of data in ChooseUserOffice view

For chooseOfficeStep we want to display a list of offices where the user can then click on to get to the next step in the flow. To do this we do the following:

...

Tip
titleHandy Hint

The implementation of the controller is left out. If we were just doing UI development and not worrying about calling application services to retrieve the data, you could just return the OfficeHierarchyFormBean with canned or stubbed data and ensure all UI parts are working correctly first.

Displaying a form for entering user details and binding this info to a model

a