comparison src/main/webapp/entry/repository.xhtml @ 79:3e620f32ed5e

remove "save as new entity" buttons.
author casties
date Thu, 04 Aug 2016 19:26:17 +0200
parents 764f47286679
children 9cd25e1a58f0
comparison
equal deleted inserted replaced
78:20c76ff72cf2 79:3e620f32ed5e
80 onclick="#{ApplicationBean1.JSConfirmationSave}" 80 onclick="#{ApplicationBean1.JSConfirmationSave}"
81 action="#{CurrentRepository.save}" /> 81 action="#{CurrentRepository.save}" />
82 <h:commandButton value="Clear Form" 82 <h:commandButton value="Clear Form"
83 action="#{CurrentRepository.clearAction}" 83 action="#{CurrentRepository.clearAction}"
84 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" /> 84 onclick="#{ApplicationBean1.JSConfirmationCleanForm}" />
85 <h:commandButton value="Save as new Entity"
86 onclick="#{ApplicationBean1.JSConfirmationSaveAsNew}"
87 rendered="#{(CurrentRepository.entity.id != null and Session.canCreate)}"
88 action="#{CurrentRepository.saveAsNewEntity}" />
89 85
90 <h:outputText rendered="#{CurrentRepository.create_error}" 86 <h:outputText rendered="#{CurrentRepository.create_error}"
91 value="City already exists - not saved!" /> 87 value="City already exists - not saved!" />
92 88
93 89