0 Replies Latest reply on Nov 24, 2010 4:20 PM by Nicklas Karlsson

    required and JSR-303 @NotNull

    Nicklas Karlsson Master

      How can you get field-validation to be handled completely by Bean Validation? I've tried various combinations of

      <context-param>

      javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL and javax.faces.VALIDATE_EMPTY_FIELDS but I never get required validation to work with @NotNull (without having to use required="true")

      <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>