<ui:define name="metadata">
<f:metadata>
- <f:viewParam id="productId" name="productId" value="#{productBeanHelper.product}" converter="GenericProductConverter" required="true" requiredMessage="#{project.ERROR_PARAMETER_PRODUCT_ID_NOT_SET}" converterMessage="#{project.PARAMETER_PRODUCT_ID_INVALID}" />
- <f:viewAction action="#{productBeanHelper.notifyControllerProductConverted()}" />
+ <f:viewParam
+ name="productId"
+ value="#{adminGenericProductActionController.currentProduct}"
+ converter="GenericProductConverter"
+ required="true"
+ requiredMessage="#{product.ERROR_PARAMETER_PRODUCT_ID_NOT_SET}"
+ converterMessage="#{product.PARAMETER_PRODUCT_ID_INVALID}"
+ />
+
+ <f:viewAction
+ action="#{adminGenericProductActionController.copyAllProductProperties()}"
+ />
</f:metadata>
</ui:define>
<ui:define name="document_admin_title">
- <h:outputText value="#{project.PAGE_TITLE_ADMIN_SHOW_GENERIC_PRODUCT}" />
+ <h:outputText value="#{product.PAGE_TITLE_ADMIN_SHOW_GENERIC_PRODUCT}" />
</ui:define>
<ui:define name="content_header">
- <h:outputText value="#{project.CONTENT_TITLE_ADMIN_SHOW_GENERIC_PRODUCT}" />
+ <h:outputText value="#{product.CONTENT_TITLE_ADMIN_SHOW_GENERIC_PRODUCT}" />
</ui:define>
<ui:define name="content">
- <p:message for="productId" showSummary="true" />
<!-- @TODO Here goes your content. //-->
</ui:define>
</ui:composition>