Closed Toru47 closed 2 months ago
This is not Mojarra related. HttpServletRequest#getParameter() must return null when param is unspecified, so the behavior observed in WildFly 33.0.1 is correct. Most probably there was a change/fix in WildFly between 28 and 33. cc: @jasondlee
In Tomcat and GlassFish it also retrieves null.
For more consistent and predictable behavior I recommend to use
<f:viewParam name="test" value="#{fooBean.test}" />
<f:viewAction action="#{fooBean.onload}" />
@BalusC: Many thanks for that advice.
Closing off as not a Mojarra-caused problem.
In version <= 4.0.1 empty values from Facelets eg. an empty parameter are converted to an empty string but not to null:
In version >= 4.0.7 this is not the case:
Is there a change? Is there an issue (number)? Tested with Wildfly 28 (4.0.1) and WildFly 33.0.1 (4.0.7). Thx.