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

Stan Silvert ssilvert at jboss.com
Wed Aug 9 16:30:08 EDT 2006


  User: ssilvert
  Date: 06/08/09 16:30:08

  Modified:    examples/booking/view/exp   bookingExp.html confirmExp.html
  Log:
  Add support for action params.  See http://jira.jboss.com/jira/browse/JBSEAM-329
  
  Revision  Changes    Path
  1.4       +2 -5      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.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- bookingExp.html	25 Jul 2006 17:38:20 -0000	1.3
  +++ bookingExp.html	9 Aug 2006 20:30:08 -0000	1.4
  @@ -61,9 +61,6 @@
      @Out(required=false)
      private Booking booking;
      
  -   @In
  -   private User user;
  -   
      @In(create=true)
      private FacesMessages facesMessages;
         
  @@ -83,7 +80,7 @@
         return "hotel";
      }
      
  -   public String bookHotel()
  +   public String bookHotel(User user)
      {      
         booking = new Booking(hotel, user);
         Calendar calendar = Calendar.getInstance();
  @@ -109,7 +106,7 @@
      }
   
      @End
  -   public String confirm()
  +   public String confirm(User user)
      {
         if (booking==null || hotel==null) return "main";
         em.persist(booking);
  
  
  
  1.3       +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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- confirmExp.html	25 Jul 2006 17:38:20 -0000	1.2
  +++ confirmExp.html	9 Aug 2006 20:30:08 -0000	1.3
  @@ -27,18 +27,18 @@
       </p>
   
       <p>
  -       The "Confirm" button is bound to the action method <code>confirm()</code>
  +       The "Confirm" button is bound to the action method <code>confirm(User user)</code>
          of <code>HotelBookingAction</code>.
       </p>
   
   <code class="block">
   &lt;h:commandButton value="Confirm" 
  -                 action="#{hotelBooking.confirm}" 
  +                 action="#{hotelBooking.confirm(user)}" 
                    class="button"/>
   </code>
   
       <p>
  -       The <code>confirm()</code> method is tagged with the <code>@End</code> annotation, 
  +       The <code>confirm(User user)</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()
  +   public String confirm(User user)
      {
         if (booking==null || hotel==null) return "main";
         em.persist(booking);
  
  
  



More information about the jboss-cvs-commits mailing list