Skip to content

Commit

Permalink
#436: Skip empty values in SelectItemsIndexConverter#getAsObject
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Mar 24, 2018
1 parent ce1b1b7 commit a1f667d
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -85,6 +85,10 @@ public class SelectItemsIndexConverter implements Converter {

@Override
public Object getAsObject(FacesContext context, UIComponent component, String submittedValue) {
if (isEmpty(submittedValue)) {
return null; // Work around for MyFaces 2.0.x bug.
}

List<Object> selectItemValues = SelectItemsUtils.collectAllValuesFromSelectItems(context, component);

try {
Expand Down

0 comments on commit a1f667d

Please sign in to comment.