we face a critical issue since we try to migrate to PF10.
DefaultSort seems working fine on normal DataTable with p:column but not with p:columns (dynamic)
The issue appear in file UITable.java from primeface in the method :
updateSortByWithUserSortBy(FacesContext context, Map<String, SortMeta> intlSortBy, Object usrSortBy, AtomicBoolean sorted)
Code: Select all
for (SortMeta userSM : sortBy) {
SortMeta intlSM = intlSortBy.values().stream()
.filter(o -> o.getField().equals(userSM.getField()))
.findAny()
.orElseThrow(() -> new FacesException("No column with field '" + userSM.getField() + "' has been found"));
with p:column instead p:columns it work fine.
Any idea what we miss or we face a real issue in Primefaces ?
Regards,
Fabrice