Revision | 471 (tree) |
---|---|
Zeit | 2007-08-24 14:20:09 |
Autor | (del#6984) |
added doCart method
@@ -6,6 +6,7 @@ | ||
6 | 6 | import jp.sf.pal.pompei.exentity.ProductsDescription; |
7 | 7 | import jp.sf.pal.pompei.util.SessionUtil; |
8 | 8 | import jp.sf.pal.pompei.web.admin.product.service.ProductService; |
9 | +import jp.sf.pal.pompei.web.user.cart.Cart; | |
9 | 10 | |
10 | 11 | import org.seasar.framework.log.Logger; |
11 | 12 |
@@ -56,7 +57,7 @@ | ||
56 | 57 | |
57 | 58 | ProductsDescription description = productService |
58 | 59 | .getProdcutsDescription(productDetailsPage.getProductsId()); |
59 | - cart.addDescription(description); | |
60 | + //cart.addDescription(description); | |
60 | 61 | logger.debug("カートに追加しました"); |
61 | 62 | FacesMessageUtil.addInfoMessage("added.product.to.cart"); |
62 | 63 | return null; |
@@ -146,9 +146,9 @@ | ||
146 | 146 | this.productService = productService; |
147 | 147 | } |
148 | 148 | |
149 | - public Class doCart() { | |
150 | -// return | |
151 | - return null; | |
149 | + public String doCart() { | |
150 | + | |
151 | + return "../cart/productList"; | |
152 | 152 | } |
153 | 153 | |
154 | 154 |