Delete image

This commit is contained in:
Tim Holloway 2022-01-01 21:24:35 -05:00
parent e15ad6dc62
commit 7ba345413d

View File

@ -99,7 +99,8 @@
value="Description" value="Description"
/> />
<p:inputTextarea id="description" <p:inputTextarea id="description"
rows="10" cols="30" escape="false" rows="10" cols="30"
escape="false"
value="#{recipeDetailBean.recipe.description}" value="#{recipeDetailBean.recipe.description}"
/> />
<p:panel id="picPanel"> <p:panel id="picPanel">
@ -110,21 +111,21 @@
<p:fileUpload id="ctlUpload" <p:fileUpload id="ctlUpload"
label="Upload Image" label="Upload Image"
fileUploadListener="#{recipeDetailBean.ajaxUploadImage}" fileUploadListener="#{recipeDetailBean.ajaxUploadImage}"
global="true" global="true" mode="advanced"
mode="advanced" multiple="false" multiple="false"
update=":messages picPanel" update=":messages picPanel"
auto="true" sizeLimit="1000000" auto="true" sizeLimit="1000000"
allowTypes="/(\.|\/)(gif|jpe?g|png)$/" allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
/> />
<p:button id="ctlDelImg" <p:commandButton id="ctlDelImg"
value="Delete Image" value="Delete Image"
> >
<!-- <f:ajax <f:ajax
listener="recipeDetailBean.ajaxDeleteImage" listener="#{recipeDetailBean.ajaxDeleteImage}"
execute="ctlDelImg" render="picPanel"
immediate="true" render="picture" immediate="true"
/> --> />
</p:button> </p:commandButton>
</p:panelGrid> </p:panelGrid>
</p:tab> </p:tab>
<p:tab id="ingredientsTab" <p:tab id="ingredientsTab"