[seam-commits] Seam SVN: r8929 - in branches/Seam_1_2_1_AP/examples: hibernate2/src/org/jboss/seam/example/hibernate and 3 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Sep 8 09:50:06 EDT 2008


Author: manaRH
Date: 2008-09-08 09:50:06 -0400 (Mon, 08 Sep 2008)
New Revision: 8929

Modified:
   branches/Seam_1_2_1_AP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java
   branches/Seam_1_2_1_AP/examples/hibernate2/src/org/jboss/seam/example/hibernate/BookingListAction.java
   branches/Seam_1_2_1_AP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java
   branches/Seam_1_2_1_AP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java
   branches/Seam_1_2_1_AP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java
Log:
JBPAPP-1137

Modified: branches/Seam_1_2_1_AP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java
===================================================================
--- branches/Seam_1_2_1_AP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java	2008-09-08 13:29:06 UTC (rev 8928)
+++ branches/Seam_1_2_1_AP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java	2008-09-08 13:50:06 UTC (rev 8929)
@@ -58,7 +58,7 @@
       Booking cancelled = em.find(Booking.class, booking.getId());
       if (cancelled!=null) em.remove( cancelled );
       getBookings();
-      FacesMessages.instance().add("Booking cancelled for confirmation number #{bookingList.booking.id}");
+      FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId());
    }
    
    public Booking getBooking()

Modified: branches/Seam_1_2_1_AP/examples/hibernate2/src/org/jboss/seam/example/hibernate/BookingListAction.java
===================================================================
--- branches/Seam_1_2_1_AP/examples/hibernate2/src/org/jboss/seam/example/hibernate/BookingListAction.java	2008-09-08 13:29:06 UTC (rev 8928)
+++ branches/Seam_1_2_1_AP/examples/hibernate2/src/org/jboss/seam/example/hibernate/BookingListAction.java	2008-09-08 13:50:06 UTC (rev 8929)
@@ -58,7 +58,7 @@
       Booking cancelled = (Booking) bookingDatabase.get(Booking.class, booking.getId());
       if (cancelled!=null) bookingDatabase.delete( cancelled );
       getBookings();
-      FacesMessages.instance().add("Booking cancelled for confirmation number #{bookingList.booking.id}");
+      FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId());
    }
    
    public Booking getBooking()

Modified: branches/Seam_1_2_1_AP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java
===================================================================
--- branches/Seam_1_2_1_AP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java	2008-09-08 13:29:06 UTC (rev 8928)
+++ branches/Seam_1_2_1_AP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java	2008-09-08 13:50:06 UTC (rev 8929)
@@ -58,7 +58,7 @@
       Booking cancelled = em.find(Booking.class, booking.getId());
       if (cancelled!=null) em.remove( cancelled );
       getBookings();
-      FacesMessages.instance().add("Booking cancelled for confirmation number #{bookingList.booking.id}");
+      FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId());
    }
    
    public Booking getBooking()

Modified: branches/Seam_1_2_1_AP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java
===================================================================
--- branches/Seam_1_2_1_AP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java	2008-09-08 13:29:06 UTC (rev 8928)
+++ branches/Seam_1_2_1_AP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java	2008-09-08 13:50:06 UTC (rev 8929)
@@ -58,7 +58,7 @@
       Booking cancelled = em.find(Booking.class, booking.getId());
       if (cancelled!=null) em.remove( cancelled );
       getBookings();
-      FacesMessages.instance().add("Booking cancelled for confirmation number #{bookingList.booking.id}");
+      FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId());
    }
    
    public Booking getBooking()

Modified: branches/Seam_1_2_1_AP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java
===================================================================
--- branches/Seam_1_2_1_AP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java	2008-09-08 13:29:06 UTC (rev 8928)
+++ branches/Seam_1_2_1_AP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java	2008-09-08 13:50:06 UTC (rev 8929)
@@ -50,7 +50,7 @@
         log.info("Cancel booking: #{bookingList.booking.id} for #{user.username}");
         bookingService.cancelBooking(booking.getId());
         getBookings();
-        FacesMessages.instance().add("Booking cancelled for confirmation number #{bookingList.booking.id}");
+        FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId());
     }
 
     public Booking getBooking()




More information about the seam-commits mailing list