0 Replies Latest reply on Dec 14, 2010 7:00 AM by nickarls

    submitting null for empty string working?

    nickarls

      I have in my web.xml

       

      <context-param>
      <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>
      <param-value>true</param-value>
      </context-param>

      <context-param>

      <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>

      <param-value>true</param-value>

      </context-param>

      <context-param>

      <param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>

      <param-value>true</param-value>

      </context-param>

       

      but for some reason, I still see "" in my setters. How is this supposed to work? My @NotNull with validation groups fail on this and I'd hate to install an empty-string-to-null converter since I think this should work(tm)