Package com.ateam.webstore.ui.views

Examples of com.ateam.webstore.ui.views.WishListView


   * Return the WishList View
   * @return
   */
  public WishListView getWishListView() {

    WishListView wlv = new WishListView(getMainView());
   
    WishList wl = getWishList();
   
    if (req.getParameter(Parameters.REMOVE.getId()) != null) {
      String removeId = req.getParameter(Parameters.REMOVE.getId());
      l.info("removing wish list item "+removeId+" for session: "+req.getSession().getId());
      ProductsInWishListService piwls = new ProductsInWishListService();
      ProductsInWishList piwl = piwls.getById(new Long(removeId));
      piwls.remove(piwl);
    }

    wlv.setWishList(wl);
   
    wlv.addContentView(new ContentView(JSP_WISHLIST, wl.getName()));
   
    return wlv;
   
  }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.ui.views.WishListView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.