jakartaee / faces

Jakarta Faces
Other
108 stars 55 forks source link

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

Closed Toru47 closed 2 months ago

Toru47 commented 2 months ago

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.

arjantijms commented 2 months ago

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

I guess you are referring to the implementation Mojarra?

Toru47 commented 2 months ago

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

Toru47 commented 2 months ago

Moved to https://github.com/eclipse-ee4j / mojarra