Commit dc7c9993 by Antti Tönkyrä

fix adding of new products

1 parent 1b858b07
...@@ -41,14 +41,14 @@ ...@@ -41,14 +41,14 @@
<h:commandButton action="#{foodWaveView.saveTemplate()}" <h:commandButton action="#{foodWaveView.saveTemplate()}"
value="#{i18n['foodwavetemplate.save']}" /> value="#{i18n['foodwavetemplate.save']}" />
</h:panelGrid> </h:panelGrid>
<h:selectOneMenu value="#{foodWaveView.currentProduct}" <!-- <h:selectOneMenu value="#{foodWaveView.currentProduct}"
converter="#{productConverter}"> converter="#{productConverter}">
<f:selectItems value="#{foodWaveView.products}" var="product" <f:selectItems value="#{foodWaveView.products}" var="product"
itemLabel="#{product.name}"></f:selectItems> itemLabel="#{product.name}"></f:selectItems>
</h:selectOneMenu> </h:selectOneMenu>
<p:commandButton value="#{i18n['foodwavetemplate.addproduct']}" <p:commandButton value="#{i18n['foodwavetemplate.addproduct']}"
actionListener="#{foodWaveView.addProductToTemplate}" actionListener="#{foodWaveView.addProductToTemplate}"
update="productTable" /> update="productTable" /> -->
<h:panelGrid columns="4"> <h:panelGrid columns="4">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!