previous | start | next

## Navigation Between Pages

- When the form is submitted, the JSF engine calls `zone.addCity()`

      public class TimeZoneBean
      {
         . . .
         public String addCity()
         {
            if (zone == null) return "unavailable";
            // Add the city
            . . .
            return "available";
         }
      }

- If next page doesn't depend on a computation, you set the action attribute of the button to a fixed outcome string

      <h:commandButton value="Back" action="back"/>

previous | start | next