]> git.mxchange.org Git - jfinancials-war.git/blobdiff - web/admin/generic_product/admin_generic_product_show.xhtml
Product-only:
[jfinancials-war.git] / web / admin / generic_product / admin_generic_product_show.xhtml
index 796bc3765e4f9bb66748a9f49ef7a56948960192..e0e8fc3068a431e1b14a61909c495575130e34f5 100644 (file)
 
        <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>