You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.6 KiB
68 lines
2.6 KiB
<!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> |