Vytvoříme properties soubor detail ve složce content s následujícími klíči
javax.portlet.title=Detail
ss-msg-product-detail=Product detail
ss-msg-name=Name
ss-msg-description=Description
ss-msg-price=Price
ss-msg-no-product-selected=No product selected.
V portlet.xml přidat Detail portlet a public render parametr
Catalogeu.ibacz.pv230.simpleshop.portlet.catalog.CatalogPortlettext/htmlviewencscontent.catalogproductIdpublic public
Detaileu.ibacz.pv230.simpleshop.portlet.detail.DetailPortlettext/htmlviewencscontent.detailproductIdpublic public
< -namespace>http:default //pv230.ibacz.eu/cv3 -namespace>default
< -render-parameter>public
productIdproductId
-render-parameter>public
Do liferay-portlet.xml
Detailtrue
Do liferay-display.xml
"Detail"
Do catalog/view.jsp přidat
var "showDetailURL"
"<%= PARAM_PRODUCT_ID %>" "${product.id}"
"${showDetailURL}"
"${product.name}" "${detailIconURL}" "detail"