[seam-commits] Seam SVN: r15054 - branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Aug 16 06:52:52 EDT 2012


Author: vdedik
Date: 2012-08-16 06:52:51 -0400 (Thu, 16 Aug 2012)
New Revision: 15054

Modified:
   branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy
   branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy
Log:
Test case for issue JBSEAM-4966

Modified: branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy
===================================================================
--- branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy	2012-08-16 09:33:07 UTC (rev 15053)
+++ branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/BookingListAction.groovy	2012-08-16 10:52:51 UTC (rev 15054)
@@ -40,7 +40,6 @@
    Log log
 
    @Factory
-   @Observer(["bookingConfirmed"])
    public void getBookings()
    {
       bookings = em.createQuery('''

Modified: branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy
===================================================================
--- branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy	2012-08-16 09:33:07 UTC (rev 15053)
+++ branches/community/Seam_2_3/examples-ee6/groovybooking/groovybooking-web/src/main/groovy/org/jboss/seam/example/groovy/action/HotelBookingAction.groovy	2012-08-16 10:52:51 UTC (rev 15054)
@@ -82,13 +82,19 @@
       }
    }
 
+   @Out (required=false, scope=ScopeType.SESSION)
+   List <Booking> bookings
+
    @End
    void confirm()
    {
       em.persist(booking)
       facesMessages.add "Thank you, #{user.name}, your confimation number for #{hotel.name} is #{booking.id}", new Object[0]
       log.info("New booking: #{booking.id} for #{user.username}")
-      events.raiseTransactionSuccessEvent("bookingConfirmed")
+      //events.raiseTransactionSuccessEvent("bookingConfirmed")
+
+      // force refresh
+      bookings = null
    }
 
    @End



More information about the seam-commits mailing list