parent
c80b8598d4
commit
ec823ff784
11 changed files with 153 additions and 163 deletions
@ -0,0 +1,58 @@ |
|||||||
|
<!DOCTYPE html> |
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" |
||||||
|
xmlns:h="http://xmlns.jcp.org/jsf/html" |
||||||
|
xmlns:f="http://xmlns.jcp.org/jsf/core" |
||||||
|
xmlns:ui="http://java.sun.com/jsf/facelets" |
||||||
|
xmlns:p="http://primefaces.org/ui" |
||||||
|
> |
||||||
|
<!-- Popup dialog to edit shopping category. |
||||||
|
Included from detailEdit |
||||||
|
--> |
||||||
|
<h:head> |
||||||
|
<title>Shopping Category</title> |
||||||
|
<style type="text/css"> |
||||||
|
html { |
||||||
|
font-size: 14px; |
||||||
|
} |
||||||
|
</style> |
||||||
|
</h:head> |
||||||
|
<h:body> |
||||||
|
<ui:component> |
||||||
|
<h:form id="frmShopcat"> |
||||||
|
<p:panelGrid columns="1"> |
||||||
|
<div>Ingredient key: |
||||||
|
#{editShopcatBean.ingkey}</div> |
||||||
|
<p:outputLabel for="@next" value="Category Name" /> |
||||||
|
<p:inputText id="ctlShopcat" |
||||||
|
value="#{editShopcatBean.shopcatName}" |
||||||
|
> |
||||||
|
</p:inputText> |
||||||
|
<h:outputText value="suggestion:" /> |
||||||
|
<p:selectOneMenu id="ctlShopcatMenu" |
||||||
|
value="#{editShopcatBean.shopcatSuggestion}" |
||||||
|
> |
||||||
|
<f:selectItems |
||||||
|
value="#{editShopcatBean.shopcatSuggestionList}" |
||||||
|
/> |
||||||
|
<p:ajax event="change" |
||||||
|
listener="#{editShopcatBean.ajaxShopcatSuggest}" |
||||||
|
update="ctlShopcat" |
||||||
|
/> |
||||||
|
</p:selectOneMenu> |
||||||
|
<p:panelGrid columns="2" style="width: 100%"> |
||||||
|
<p:commandButton id="scDlgOK" value="OK" |
||||||
|
style="width: 6em" |
||||||
|
action="#{recipeDetailBean.doUpdateShopcat}" |
||||||
|
update="form1:tabGroupClient:ingredientTable" |
||||||
|
oncomplete="PF('editShopcatDlg').hide()" |
||||||
|
/> |
||||||
|
<p:commandButton id="scDlgCan" value="Cancel" |
||||||
|
style="width: 6em" |
||||||
|
onclick="PF('editShopcatDlg').hide()" |
||||||
|
/> |
||||||
|
</p:panelGrid> |
||||||
|
</p:panelGrid> |
||||||
|
</h:form> |
||||||
|
</ui:component> |
||||||
|
</h:body> |
||||||
|
</html> |
@ -1,61 +0,0 @@ |
|||||||
<!DOCTYPE html> |
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" |
|
||||||
xmlns:h="http://xmlns.jcp.org/jsf/html" |
|
||||||
xmlns:f="http://xmlns.jcp.org/jsf/core" |
|
||||||
xmlns:ui="http://java.sun.com/jsf/facelets" |
|
||||||
xmlns:p="http://primefaces.org/ui" |
|
||||||
> |
|
||||||
|
|
||||||
<h:head> |
|
||||||
<title>Shopping Category</title> |
|
||||||
<style type="text/css"> |
|
||||||
html { |
|
||||||
font-size: 14px; |
|
||||||
} |
|
||||||
</style> |
|
||||||
</h:head> |
|
||||||
|
|
||||||
<h:body> |
|
||||||
<ui:component> |
|
||||||
<h:form id="frmShopcat"> |
|
||||||
<p:panelGrid columns="1"> |
|
||||||
<div>Ingredient key: |
|
||||||
#{editShopcatBean.ingkey} |
|
||||||
</div> |
|
||||||
<p:outputLabel for="@next" |
|
||||||
value="Category Name" /> |
|
||||||
<p:inputText id="ctlShopcat" |
|
||||||
value="#{editShopcatBean.shopcatName}" |
|
||||||
> |
|
||||||
</p:inputText> |
|
||||||
<h:outputText |
|
||||||
value="suggestion:" /> |
|
||||||
<p:selectOneMenu |
|
||||||
id="ctlShopcatMenu" |
|
||||||
value="#{editShopcatBean.shopcatSuggestion}" |
|
||||||
> |
|
||||||
<f:selectItems |
|
||||||
value="#{editShopcatBean.shopcatSuggestionList}" /> |
|
||||||
<p:ajax event="change" |
|
||||||
listener="#{editShopcatBean.ajaxShopcatSuggest}" |
|
||||||
update="ctlShopcat" /> |
|
||||||
</p:selectOneMenu> |
|
||||||
<p:panelGrid columns="2" |
|
||||||
style="width: 100%" |
|
||||||
> |
|
||||||
<p:commandButton |
|
||||||
id="scDlgOK" value="OK" |
|
||||||
style="width: 6em" |
|
||||||
action="#{recipeDetailBean.doUpdateShopcat}" |
|
||||||
update="form1:tabGroupClient:ingredientTable" |
|
||||||
oncomplete="PF('editShopcatDlg').hide()" /> |
|
||||||
<p:commandButton |
|
||||||
id="scDlgCan" value="Cancel" |
|
||||||
style="width: 6em" |
|
||||||
onclick="PF('editShopcatDlg').hide()" /> |
|
||||||
</p:panelGrid> |
|
||||||
</p:panelGrid> |
|
||||||
</h:form> |
|
||||||
</ui:component> |
|
||||||
</h:body> |
|
||||||
</html> |
|
@ -1,68 +0,0 @@ |
|||||||
<!DOCTYPE html> |
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" |
|
||||||
xmlns:h="http://xmlns.jcp.org/jsf/html" |
|
||||||
xmlns:f="http://xmlns.jcp.org/jsf/core" |
|
||||||
xmlns:ui="http://java.sun.com/jsf/facelets" |
|
||||||
xmlns:p="http://primefaces.org/ui" |
|
||||||
> |
|
||||||
<h:head> |
|
||||||
<title>Shopping Category</title> |
|
||||||
<style type="text/css"> |
|
||||||
html { |
|
||||||
font-size: 14px; |
|
||||||
} |
|
||||||
</style> |
|
||||||
</h:head> |
|
||||||
<h:body> |
|
||||||
<ui:component> |
|
||||||
<h:form id="frmShopcat"> |
|
||||||
<p:panelGrid columns="1"> |
|
||||||
<p:dataTable id="tblShopcats" |
|
||||||
style="width: 600px" |
|
||||||
value="#{shoppingListBean.shopcatList}" |
|
||||||
sortBy="#{item.shopCat}" var="item" |
|
||||||
> |
|
||||||
<p:headerRow> |
|
||||||
<p:column colspan="4"> |
|
||||||
<h:outputText value="#{item.shopCat}" /> |
|
||||||
</p:column> |
|
||||||
</p:headerRow> |
|
||||||
</p:dataTable> |
|
||||||
<div>Ingredient key: |
|
||||||
#{editShopcatBean.ingkey}</div> |
|
||||||
<p:outputLabel for="@next" |
|
||||||
value="Category Name" |
|
||||||
/> |
|
||||||
<p:inputText id="ctlShopcat" |
|
||||||
value="#{editShopcatBean.shopcatName}" |
|
||||||
> |
|
||||||
</p:inputText> |
|
||||||
<h:outputText value="suggestion:" /> |
|
||||||
<p:selectOneMenu id="ctlShopcatMenu" |
|
||||||
value="#{editShopcatBean.shopcatSuggestion}" |
|
||||||
> |
|
||||||
<f:selectItems |
|
||||||
value="#{editShopcatBean.shopcatSuggestionList}" |
|
||||||
/> |
|
||||||
<p:ajax event="change" |
|
||||||
listener="#{editShopcatBean.ajaxShopcatSuggest}" |
|
||||||
update="ctlShopcat" |
|
||||||
/> |
|
||||||
</p:selectOneMenu> |
|
||||||
<p:panelGrid columns="2" style="width: 100%"> |
|
||||||
<p:commandButton id="scDlgOK" value="OK" |
|
||||||
style="width: 6em" |
|
||||||
action="#{recipeDetailBean.doUpdateShopcat}" |
|
||||||
update="form1:tabGroupClient:ingredientTable" |
|
||||||
oncomplete="PF('editShopcatDlg').hide()" |
|
||||||
/> |
|
||||||
<p:commandButton id="scDlgCan" |
|
||||||
value="Cancel" style="width: 6em" |
|
||||||
onclick="PF('editShopcatDlg').hide()" |
|
||||||
/> |
|
||||||
</p:panelGrid> |
|
||||||
</p:panelGrid> |
|
||||||
</h:form> |
|
||||||
</ui:component> |
|
||||||
</h:body> |
|
||||||
</html> |
|
Loading…
Reference in new issue