Skip to content

Commit

Permalink
View maps entries are not restored in "finally" block of method "View…
Browse files Browse the repository at this point in the history
…MetadataImpl.createMetadataView"
  • Loading branch information
Santos Zatarain committed May 12, 2023
1 parent 914e8de commit 23a5d02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ public UIViewRoot createMetadataView(FacesContext context) {
Map<String, Object> currentViewMap = currentViewRoot.getViewMap(false);

if (!isEmpty(currentViewMap)) {
currentViewMapShallowCopy = new HashMap<>(currentViewMap);
metadataView.getViewMap(true)
.putAll(new HashMap<>(currentViewMap));
.putAll(currentViewMapShallowCopy);
}
}

Expand Down

0 comments on commit 23a5d02

Please sign in to comment.