Skip to content

Commit

Permalink
Fix not saved selectonemenu input value in metadatatable
Browse files Browse the repository at this point in the history
  • Loading branch information
IkramMaalej committed Mar 3, 2022
1 parent 690e675 commit 09eed26
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
readonly="#{not item.editable}"
styleClass="#{not item.editable or readOnly ? 'read-only disabled' : ''}"
disabled="#{not item.editable or readOnly}"
required="#{item.required and (not empty param['editForm:save'] or not empty param['editForm:saveContinue'])}"
showCheckbox="true">
<f:selectItems value="#{item.items}"/>
<p:ajax event="change" oncomplete="preserveMetadata(); #{request.requestURI.contains('metadataEditor') ? 'updateTitleMetadata();' : ''}"/>
Expand All @@ -110,11 +111,11 @@
value="#{item.selectedItem}"
readonly="#{not item.editable}"
autoWidth="false"
required="#{item.required and (not empty param['editForm:save'] or not empty param['editForm:saveContinue'])}"
disabled="#{not item.editable or readOnly}"
styleClass="#{readOnly ? 'read-only' : ''}">
<f:selectItem itemValue="#{null}"
itemDisabled="#{item.required}"
itemLabel="#{msgs.notSelected}"
itemLabel="#{msgs.selectPlease}"
noSelectionOption="true"/>
<f:selectItems value="#{item.items}"/>
<p:ajax event="change" oncomplete="preserveMetadata(); #{request.requestURI.contains('metadataEditor') ? 'updateTitleMetadata();' : ''}"/>
Expand Down

0 comments on commit 09eed26

Please sign in to comment.