Author: manaRH
Date: 2008-05-14 10:13:29 -0400 (Wed, 14 May 2008)
New Revision: 8191
Modified:
branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/Checkout.java
branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/CheckoutAction.java
Log:
JBPAPP-807
Modified: branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/Checkout.java
===================================================================
---
branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/Checkout.java 2008-05-14
13:54:54 UTC (rev 8190)
+++
branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/Checkout.java 2008-05-14
14:13:29 UTC (rev 8191)
@@ -10,7 +10,7 @@
{
// public void startCheckout();
public void createOrder();
- public void submitOrder();
+ public Order submitOrder();
public void destroy();
}
Modified:
branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/CheckoutAction.java
===================================================================
---
branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/CheckoutAction.java 2008-05-14
13:54:54 UTC (rev 8190)
+++
branches/Seam_1_2_1_AP/examples/dvdstore/src/com/jboss/dvd/seam/CheckoutAction.java 2008-05-14
14:13:29 UTC (rev 8191)
@@ -7,9 +7,8 @@
package com.jboss.dvd.seam;
-import java.math.BigDecimal;
-
import java.io.Serializable;
+import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -74,7 +73,7 @@
@End
@CreateProcess(definition="OrderManagement")
- public void submitOrder() {
+ public Order submitOrder() {
try {
completedOrder = purchase(customer, currentOrder);
@@ -88,11 +87,10 @@
Contexts.getEventContext().set("prod", product);
FacesMessages.instance().addFromResourceBundle("checkoutInsufficientQuantity");
}
-
- //return null;
- } catch (Throwable t) {
- t.printStackTrace();
+// e.printStackTrace();
+ return null;
}
+ return completedOrder;
}