Skip to content

Commit

Permalink
UIInput#getSubmittedValue() must also consider isLocalValueSet() when
Browse files Browse the repository at this point in the history
INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL=true
#5386
  • Loading branch information
BalusC committed Jan 21, 2024
1 parent bada61d commit 081e6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/main/java/jakarta/faces/component/UIInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public String getFamily() {
*/
@Override
public Object getSubmittedValue() {
if (submittedValue == null && !isValid() && considerEmptyStringNull(FacesContext.getCurrentInstance())) { // JAVASERVERFACES_SPEC_PUBLIC-671
if (submittedValue == null && !isValid() && !isLocalValueSet() && considerEmptyStringNull(FacesContext.getCurrentInstance())) { // JAVASERVERFACES_SPEC_PUBLIC-671
return "";
} else {
return submittedValue;
Expand Down

0 comments on commit 081e6ea

Please sign in to comment.