Package com.ateam.webstore.ui.views

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


      piwls.remove(piwl);
    }

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


   
    ProductListView hp = new ProductListView(getMainView());
   
    hp.setProducts(getFeaturedProducts());
   
    ContentView cv = new ContentView(JSP_HOME, "Featured Products");
   
    hp.getContentViews().add(cv);

    return hp;
   
View Full Code Here

    ProductListingView pl = new ProductListingView(getMainView());
   
    pl.setProducts(service.getProductsByCategory(Long.parseLong(category)));
    l.info("displaying category: "+cat.getName());
   
    ContentView cv = new ContentView(JSP_PRODUCT_LISTING, cat.getName());
   
    pl.getContentViews().add(cv);

    return pl;
   
View Full Code Here

   
    String jsp = JSP_PRODUCT_LIST;
    if (admin) {
      jsp = JSP_ADMIN_PRODUCT_LIST;
    }
    ContentView cv = new ContentView(jsp, "All Products");
   
    hp.getContentViews().add(cv);

    return hp;
   
View Full Code Here

   
    ProductDetailsView pv = new ProductDetailsView(main);
   
    if (p != null) {
      pv.setProduct(p);
      pv.addContentView(new ContentView(jsp, p.getProductName()));
    }
    else {
      pv.addContentView(new ContentView(JSP_MESSAGE, "Not Found"));
      pv.setMessage("Sorry, product not found.");
    }
   
    return pv;
  }
View Full Code Here

        main = getMainView();
      }
      ProductListingView pl = new ProductListingView(main);
     
      pl.setProducts(service.searchProductsByNameOrDescription(query));
      pl.addContentView(new ContentView(JSP_PRODUCT_LISTING, "Search results for: "+query));
     
      fs.setResultView(pl);
     
    }
    else {
View Full Code Here

TOP

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

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.