• R/O
  • SSH
  • HTTPS

pal: Commit


Commit MetaInfo

Revision471 (tree)
Zeit2007-08-24 14:20:09
Autortakeharu

Log Message

added doCart method

Ändern Zusammenfassung

Diff

--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsAction.java (revision 470)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductDetailsAction.java (revision 471)
@@ -6,6 +6,7 @@
66 import jp.sf.pal.pompei.exentity.ProductsDescription;
77 import jp.sf.pal.pompei.util.SessionUtil;
88 import jp.sf.pal.pompei.web.admin.product.service.ProductService;
9+import jp.sf.pal.pompei.web.user.cart.Cart;
910
1011 import org.seasar.framework.log.Logger;
1112
@@ -56,7 +57,7 @@
5657
5758 ProductsDescription description = productService
5859 .getProdcutsDescription(productDetailsPage.getProductsId());
59- cart.addDescription(description);
60+ //cart.addDescription(description);
6061 logger.debug("カートに追加しました");
6162 FacesMessageUtil.addInfoMessage("added.product.to.cart");
6263 return null;
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductListAction.java (revision 470)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/ProductListAction.java (revision 471)
@@ -146,9 +146,9 @@
146146 this.productService = productService;
147147 }
148148
149- public Class doCart() {
150-// return
151- return null;
149+ public String doCart() {
150+
151+ return "../cart/productList";
152152 }
153153
154154
Show on old repository browser