Skip to content

Commit

Permalink
Merge pull request #5428 from eclipse-ee4j/mojarra_issue_5427
Browse files Browse the repository at this point in the history
Fix #5427 UISelectMany collectionType ignored when VE resolves to non-Collection
  • Loading branch information
BalusC committed Mar 30, 2024
2 parents dd60829 + acbdf4c commit 0cd4025
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 0cd4025

Please sign in to comment.