Posting an empty string as the value of an NGPopUpButton form field (instead of an option index or NO_SELECTION_OPTION_VALUE) throws java.lang.NumberFormatException: For input string: "" while taking values.
Browsers always send one of the rendered option values, so this only surfaces from scripted/non-browser clients or hand-built forms - but the failure mode is an exception page rather than a clear error.
Suggestion: treat an empty value like NO_SELECTION_OPTION_VALUE (set selection to null), or fail with a message naming the element and the offending value, in line with the deliberate out-of-range-index handling.
Posting an empty string as the value of an NGPopUpButton form field (instead of an option index or
NO_SELECTION_OPTION_VALUE) throwsjava.lang.NumberFormatException: For input string: ""while taking values.Browsers always send one of the rendered option values, so this only surfaces from scripted/non-browser clients or hand-built forms - but the failure mode is an exception page rather than a clear error.
Suggestion: treat an empty value like
NO_SELECTION_OPTION_VALUE(set selection to null), or fail with a message naming the element and the offending value, in line with the deliberate out-of-range-index handling.