JSF 2.2将空字符串提交的值解释为null无效 [英] JSF 2.2 interpret empty string submitted values as null not working
问题描述
我已经从Java EE 6迁移到Java EE 7,现在使用JSF 2.2,上下文参数 INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL
似乎不起作用。在JSF 2.1中,我将其设置为 true,并且可以正常工作,但是现在我总是得到空字符串。
I have migrated from Java EE 6 to Java EE 7, and now with JSF 2.2 the context param INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL
seems not work. In JSF 2.1 I set it to "true" and it works perfectly, but now I get always blank strings.
<context-param>
<param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
<param-value>true</param-value>
</context-param>
有人可以说些什么吗?
推荐答案
带有最新Mojarra-2.2.5
的glassfish 4以及Wildfly 8 Final也是如此。 。 。我已经看到有关此问题的多个错误报告,Manfried Riem说:已确定这是一个EL问题,并且已修复了EL实现,以解决此问题,但不确定这是否意味着更新Mojarra可以解决此问题,因为它不在glassfish中4.我还更新了el,但是那也不起作用。
The same happens with glassfish 4 with the latest Mojarra-2.2.5 as well as Wildfly 8 Final . . . I have seen multiple bug reports on this, Manfried Riem says "It was determined this is an EL issue and the EL implementation has been fixed to fix this", but not sure if that means Updating Mojarra fixes it, because it does not in glassfish 4. I also updated the el, and that did not work either.
这篇关于JSF 2.2将空字符串提交的值解释为null无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!