}
String prodReceivedTime = fm.getProdReceivedTime(prodItem
.getModelObject());
prodItem.add(new Label("product_received_time", prodReceivedTime));
PopupSettings refSettings = new PopupSettings();
refSettings.setWidth(525).setHeight(450).setWindowName("_refWin");
Link<String> refLink = new Link<String>("ref_page_link",
new Model<String>(prodItem.getModelObject().getProductId())) {
/*
* (non-Javadoc)
*
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("id", getModelObject());
setResponsePage(prodRefsBrowser, params);
}
};
refLink.setPopupSettings(refSettings);
prodItem.add(refLink);
SerializableMetadata met = new SerializableMetadata(fm
.getMetadata(prodItem.getModelObject()));
Link<String> metLink = new Link<String>("met_page_link", new Model(
prodItem.getModelObject().getProductId())) {
/*
* (non-Javadoc)
*
* @see org.apache.wicket.markup.html.link.Link#onClick()
*/
@Override
public void onClick() {
PageParameters params = new PageParameters();
params.add("id", getModelObject());
setResponsePage(prodMetBrowser, params);
}
};
PopupSettings metSettings = new PopupSettings();
metSettings.setWidth(525).setHeight(450).setWindowName("_metWin");
metLink.setPopupSettings(metSettings);
prodItem.add(metLink);
}