create on submit

This commit is contained in:
Anton Romanov 2020-02-17 14:40:53 +04:00
parent 52d6210875
commit 0bb9768bda

View File

@ -13,6 +13,8 @@
<div class="ui-fluid">
<div class="ui-g">
<div class="ui-md-3 ui-g-12">
<p:commandButton action="#{papersView.create}" value="Создать" ajax="true" process="@form"
update="messages @form mainForm:papersTable" style="display: none"/>
<p:commandButton value="Удалить выделенные" id="papersRemoveButton"
disabled="#{papersView.selectedPapers.isEmpty()}"
action="#{papersView.deleteSelected}" ajax="true" process="@form"
@ -30,8 +32,6 @@
<p:inputText placeholder="Создать новую статью" value="#{papersView.newPaperTitle}"/>
</div>
<div class="ui-md-2 ui-g-12">
<p:commandButton action="#{papersView.create}" value="Создать" ajax="true" process="@form"
update="messages @form mainForm:papersTable"/>
</div>
</div>