jakartaee/faces

EL: Empty values converted to null in JF >= 4.0.7?

Toru47 opened this issue · 3 comments

In JF <= 4.0.1 empty values from Facelets eg. an empty parameter are converted to an empty string but not to null:

<f:viewAction action="#{fooBean.onload(param['test'])}" /> <!-- Parameter "test" not set! -->
public string onload(String test) { // test is an empty string but not null
}

In JF >= 4.0.7 this is not the case:

public string onload(String test) { // test is null!!!
}

Is there a change? Is there an issue (number)? Thx.

We don't have anything called "JF" that's at version 4.0.7.

I guess you are referring to the implementation Mojarra?

Sorry, I mean the implementation shipped with WildFly 28 or 33. The module is called jakarta.faces-4.0.7.jar. I'am wrong?