Skip to content

Commit

Permalink
Fix #5427 UISelectMany collectionType ignored when VE resolves to
Browse files Browse the repository at this point in the history
non-Collection
  • Loading branch information
BalusC committed Mar 26, 2024
1 parent cb971c3 commit acbdf4c
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -223,7 +223,12 @@ protected Object convertSelectManyValuesForModel(FacesContext context, UISelectM
}

if (Object.class.equals(modelType)) {
return convertSelectManyValuesForArray(context, uiSelectMany, modelType, newValues);
if (uiSelectMany.getAttributes().get("collectionType") != null) {
return convertSelectManyValuesForCollection(context, uiSelectMany, null, newValues);
}
else {
return convertSelectManyValuesForArray(context, uiSelectMany, modelType, newValues);
}
}

throw new FacesException("Target model Type is no a Collection or Array");
Expand Down

0 comments on commit acbdf4c

Please sign in to comment.