Work around for faulty INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL in Mojarra JSF 2.1
问题 I know there are a number of posts about converting empty string to null in JSF2. The usual prescription is to add the following to web.xml. <context-param> <description>Does not appear to work</description> <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name> <param-value>true</param-value> </context-param> This just does not seem to work - at all. I then created a custom string converter to test if that would work. I explicitly added it as a converter to my