Package com.ateam.webstore.ui.views

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


   
    CategoryService cs = new CategoryService();
   
    Category cat = cs.getById(Long.parseLong(category));
   
    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


        main = getMainAdminView();
      }
      else {
        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.ProductListingView

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.