[seam-commits] Seam SVN: r8752 - in branches/Seam_2_0_FP/examples: groovybooking/src/action/org/jboss/seam/example/groovy and 5 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Aug 20 11:28:22 EDT 2008


Author: manaRH
Date: 2008-08-20 11:28:21 -0400 (Wed, 20 Aug 2008)
New Revision: 8752

Modified:
   branches/Seam_2_0_FP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java
   branches/Seam_2_0_FP/examples/groovybooking/src/action/org/jboss/seam/example/groovy/BookingListAction.groovy
   branches/Seam_2_0_FP/examples/hibernate/src/org/jboss/seam/example/hibernate/BookingListAction.java
   branches/Seam_2_0_FP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java
   branches/Seam_2_0_FP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java
   branches/Seam_2_0_FP/examples/nestedbooking/src/org/jboss/seam/example/booking/BookingListAction.java
   branches/Seam_2_0_FP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java
Log:
JBPAPP-1094

Modified: branches/Seam_2_0_FP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java
===================================================================
--- branches/Seam_2_0_FP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java	2008-08-20 14:49:55 UTC (rev 8751)
+++ branches/Seam_2_0_FP/examples/booking/src/org/jboss/seam/example/booking/BookingListAction.java	2008-08-20 15:28:21 UTC (rev 8752)
@@ -63,7 +63,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_2_0_FP/examples/groovybooking/src/action/org/jboss/seam/example/groovy/BookingListAction.groovy
===================================================================
--- branches/Seam_2_0_FP/examples/groovybooking/src/action/org/jboss/seam/example/groovy/BookingListAction.groovy	2008-08-20 14:49:55 UTC (rev 8751)
+++ branches/Seam_2_0_FP/examples/groovybooking/src/action/org/jboss/seam/example/groovy/BookingListAction.groovy	2008-08-20 15:28:21 UTC (rev 8752)
@@ -51,7 +51,7 @@
       Booking cancelled = em.find(Booking.class, booking.id)
       if (cancelled != null) em.remove( cancelled )
       getBookings()
-      FacesMessages.instance().add("Booking cancelled for confirmation number #{bookingList.booking.id}", new Object[0])
+      FacesMessages.instance().add("Booking cancelled for confirmation number #0", booking.getId())
    }
 
 }

Modified: branches/Seam_2_0_FP/examples/hibernate/src/org/jboss/seam/example/hibernate/BookingListAction.java
===================================================================
--- branches/Seam_2_0_FP/examples/hibernate/src/org/jboss/seam/example/hibernate/BookingListAction.java	2008-08-20 14:49:55 UTC (rev 8751)
+++ branches/Seam_2_0_FP/examples/hibernate/src/org/jboss/seam/example/hibernate/BookingListAction.java	2008-08-20 15:28:21 UTC (rev 8752)
@@ -56,7 +56,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_2_0_FP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java
===================================================================
--- branches/Seam_2_0_FP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java	2008-08-20 14:49:55 UTC (rev 8751)
+++ branches/Seam_2_0_FP/examples/icefaces/src/org/jboss/seam/example/booking/BookingListAction.java	2008-08-20 15:28:21 UTC (rev 8752)
@@ -63,7 +63,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_2_0_FP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java
===================================================================
--- branches/Seam_2_0_FP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java	2008-08-20 14:49:55 UTC (rev 8751)
+++ branches/Seam_2_0_FP/examples/jpa/src/org/jboss/seam/example/jpa/BookingListAction.java	2008-08-20 15:28:21 UTC (rev 8752)
@@ -57,7 +57,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_2_0_FP/examples/nestedbooking/src/org/jboss/seam/example/booking/BookingListAction.java
===================================================================
--- branches/Seam_2_0_FP/examples/nestedbooking/src/org/jboss/seam/example/booking/BookingListAction.java	2008-08-20 14:49:55 UTC (rev 8751)
+++ branches/Seam_2_0_FP/examples/nestedbooking/src/org/jboss/seam/example/booking/BookingListAction.java	2008-08-20 15:28:21 UTC (rev 8752)
@@ -59,7 +59,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_2_0_FP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java
===================================================================
--- branches/Seam_2_0_FP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java	2008-08-20 14:49:55 UTC (rev 8751)
+++ branches/Seam_2_0_FP/examples/spring/src/org/jboss/seam/example/spring/BookingListAction.java	2008-08-20 15:28:21 UTC (rev 8752)
@@ -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