[jboss-cvs] jboss-seam/examples/booking/view/exp ...

Gavin King gavin.king at jboss.com
Wed Sep 27 21:16:06 EDT 2006


  User: gavin   
  Date: 06/09/27 21:16:06

  Modified:    examples/booking/view/exp   bookingExp.html confirmExp.html
  Log:
  this way is simpler
  
  Revision  Changes    Path
  1.5       +5 -2      jboss-seam/examples/booking/view/exp/bookingExp.html
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: bookingExp.html
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/bookingExp.html,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- bookingExp.html	9 Aug 2006 20:30:08 -0000	1.4
  +++ bookingExp.html	28 Sep 2006 01:16:06 -0000	1.5
  @@ -54,6 +54,9 @@
      @PersistenceContext(type=EXTENDED)
      private EntityManager em;
      
  +   @In
  +   private User user;
  +   
      @In(required=false) @Out
      private Hotel hotel;
      
  @@ -80,7 +83,7 @@
         return "hotel";
      }
      
  -   public String bookHotel(User user)
  +   public String bookHotel()
      {      
         booking = new Booking(hotel, user);
         Calendar calendar = Calendar.getInstance();
  @@ -106,7 +109,7 @@
      }
   
      @End
  -   public String confirm(User user)
  +   public String confirm()
      {
         if (booking==null || hotel==null) return "main";
         em.persist(booking);
  
  
  
  1.4       +4 -4      jboss-seam/examples/booking/view/exp/confirmExp.html
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: confirmExp.html
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/exp/confirmExp.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- confirmExp.html	9 Aug 2006 20:30:08 -0000	1.3
  +++ confirmExp.html	28 Sep 2006 01:16:06 -0000	1.4
  @@ -27,18 +27,18 @@
       </p>
   
       <p>
  -       The "Confirm" button is bound to the action method <code>confirm(User user)</code>
  +       The "Confirm" button is bound to the action method <code>confirm()</code>
          of <code>HotelBookingAction</code>.
       </p>
   
   <code class="block">
   &lt;h:commandButton value="Confirm" 
  -                 action="#{hotelBooking.confirm(user)}" 
  +                 action="#{hotelBooking.confirm}" 
                    class="button"/>
   </code>
   
       <p>
  -       The <code>confirm(User user)</code> method is tagged with the <code>@End</code> annotation, 
  +       The <code>confirm()</code> method is tagged with the <code>@End</code> annotation, 
          which ends the long-running conversation and results in all state associated with
          the conversation being destroyed at the end of the request. Actually, since the
          <code>confirmed</code> outcome triggers a redirect, the state will not be destroyed
  @@ -49,7 +49,7 @@
   
   <code class="block">
      @End
  -   public String confirm(User user)
  +   public String confirm()
      {
         if (booking==null || hotel==null) return "main";
         em.persist(booking);
  
  
  



More information about the jboss-cvs-commits mailing list