* org.apache.wicket.markup.html.list.ListView#populateItem(org.apache
* .wicket.markup.html.list.ListItem)
*/
@Override
protected void populateItem(ListItem<Product> prodItem) {
Link prodPageLink = new Link<Product>("product_page_link",
new ProductModel(prodItem.getModelObject())) {
/*
* (non-Javadoc)
*
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("id", this.getModelObject().getProductId());
setResponsePage(produdctBrowser, params);
}
};
prodPageLink.add(new Label("product_name", prodItem.getModelObject()
.getProductName()));
prodItem.add(prodPageLink);
prodItem.add(new Label("product_transfer_status", prodItem
.getModelObject().getTransferStatus()));