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 Feb 25, 2022
1 parent 65ccd8b commit 1920952
Showing 1 changed file with 4 additions and 3 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="#{request.requestURI.contains('metadataEditor') ? 'preserveMetadata(); updateTitleMetadata();' : ''}"/>
Expand All @@ -110,14 +111,14 @@
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="#{request.requestURI.contains('metadataEditor') ? 'preserveMetadata(); updateTitleMetadata();' : ''}"/>
<p:ajax oncomplete="#{request.requestURI.contains('metadataEditor') ? 'preserveMetadata(); updateTitleMetadata();' : ''}"/>
</p:selectOneMenu>
</h:panelGroup>

Expand Down

0 comments on commit 1920952

Please sign in to comment.