Search in sources :

Example 1 with ProductItemPanel

use of io.github.zutherb.appstash.shop.ui.panel.product.ProductItemPanel in project the-app by devops-dojo.

the class ProductCatalogPage method productView.

private Component productView(IModel<List<ProductInfo>> model) {
    return new DataView<ProductInfo>("products", productDataProvider(model)) {

        @Override
        protected void populateItem(final Item<ProductInfo> item) {
            ProductItemPanel productItem = new ProductItemPanel("productItem", feedback, item.getModel());
            productItem.setOutputMarkupId(true);
            item.add(productItem);
        }
    };
}
Also used : DataView(org.apache.wicket.markup.repeater.data.DataView) ListItem(org.apache.wicket.markup.html.list.ListItem) Item(org.apache.wicket.markup.repeater.Item) EnumProductTypeNavigationItem(io.github.zutherb.appstash.shop.ui.navigation.EnumProductTypeNavigationItem) ProductItemPanel(io.github.zutherb.appstash.shop.ui.panel.product.ProductItemPanel)

Aggregations

EnumProductTypeNavigationItem (io.github.zutherb.appstash.shop.ui.navigation.EnumProductTypeNavigationItem)1 ProductItemPanel (io.github.zutherb.appstash.shop.ui.panel.product.ProductItemPanel)1 ListItem (org.apache.wicket.markup.html.list.ListItem)1 Item (org.apache.wicket.markup.repeater.Item)1 DataView (org.apache.wicket.markup.repeater.data.DataView)1