Page 1 of 1

Understanding the product Object in home page..!!

Posted: Sat May 09, 2015 6:23 am
by d8sasi
Hi ,, Here Following code is responsible for dislplaying all the images with content on the home page..
I'm Trying to understand the navigation between the broadleaf pages.
My Question is . what is the method responsible for sending this product list in the UI, and how to check where the method, respective class location in eclipse??
I have seen thymeleaf tutorial in youtube, & understood that th:object ="${product}" brings the value returned by a method.
I am unable to understand from which class and method it is fetching.
============================================
<ul id="products" class="group">
<li th:each="product : ${products}" th:object="${product}" th:include="catalog/partials/productListItem" class="product_container"></li>
</ul>
============================================

Need Help.
thanks

Re: Understanding the product Object in home page..!!

Posted: Wed May 20, 2015 12:06 am
by phillipuniverse
CategoryController and ProductController is what you want. CategoryController puts a list of products on the model and the ProductController is responsible for putting a product object on the model to be used with Thymeleaf.