|
|
|
@ -259,12 +259,13 @@ |
|
|
|
|
</p:column> |
|
|
|
|
<p:column style="width: 13em"> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
Ing. Key |
|
|
|
|
Ingredient Key |
|
|
|
|
</f:facet> |
|
|
|
|
<p:inputText id="ingKey" |
|
|
|
|
value="#{item.ingkey}" |
|
|
|
|
size="20" |
|
|
|
|
rendered="#{not item.ingGroup}" |
|
|
|
|
title="Ingredient key selects Shopping Category" |
|
|
|
|
> |
|
|
|
|
<f:ajax |
|
|
|
|
event="change" |
|
|
|
@ -273,23 +274,30 @@ |
|
|
|
|
/> |
|
|
|
|
</p:inputText> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column> |
|
|
|
|
<p:column |
|
|
|
|
style="width: 2em" |
|
|
|
|
> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
Shop. Cat. |
|
|
|
|
E |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputText |
|
|
|
|
id="shopCat" |
|
|
|
|
value="#{item.shopCat}" |
|
|
|
|
rendered="#{not item.ingGroup}" |
|
|
|
|
/> |
|
|
|
|
<p:commandButton |
|
|
|
|
id="eShopcat" |
|
|
|
|
value="E" |
|
|
|
|
action="#{recipeDetailBean.ajaxEditShopcat(item)}" |
|
|
|
|
update="editShopcatDlg" |
|
|
|
|
oncomplete="PF('editShopcatDlg').show()" |
|
|
|
|
> |
|
|
|
|
</p:commandButton> |
|
|
|
|
title="Edit the shopping category for ing. key" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
<p:column> |
|
|
|
|
<f:facet name="header"> |
|
|
|
|
Shopping Cat. |
|
|
|
|
</f:facet> |
|
|
|
|
<h:outputText |
|
|
|
|
id="shopCat" |
|
|
|
|
value="#{item.shopCat}" |
|
|
|
|
rendered="#{not item.ingGroup}" |
|
|
|
|
/> |
|
|
|
|
</p:column> |
|
|
|
|
</p:dataTable> |
|
|
|
|
<h:panelGroup id="pnlIng"> |
|
|
|
@ -351,7 +359,9 @@ |
|
|
|
|
/> |
|
|
|
|
</h:form> |
|
|
|
|
</p:panel> |
|
|
|
|
<p:dialog id="editShopcatDlg" widgetVar="editShopcatDlg"> |
|
|
|
|
<p:dialog id="editShopcatDlg" |
|
|
|
|
widgetVar="editShopcatDlg" |
|
|
|
|
> |
|
|
|
|
<ui:include src="editShopcat.xhtml" /> |
|
|
|
|
</p:dialog> |
|
|
|
|
</ui:define> |
|
|
|
|