eclipse-ee4j / mojarra

Mojarra, a Jakarta Faces implementation
Other
158 stars 107 forks source link

UIInput#getSubmittedValue() must also consider isLocalValueSet() when INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL=true #5386

Closed BalusC closed 3 months ago

BalusC commented 5 months ago

Discovered while investigating https://github.com/omnifaces/omnifaces/issues/781

When UIInput#isLocalValueSet() is true then the UIInput#getSubmittedValue() shouldn't at all consider to reinterpret a null submitted value as empty string when the INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL context param is set. The logic is simple: when there is any submitted value at all, then the local value is not yet set in first place.

BalusC commented 4 months ago

Spec671IT failed at TCK, so reverted. We need to take a second look later.