From 1c881ce4e0f02d4e8a549851b4dd86510493a7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lepage?= Date: Wed, 28 Feb 2024 14:18:36 +0100 Subject: [PATCH] fix --- .../extensions/model/mongo/MorphiaLazyDataModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/primefaces/extensions/model/mongo/MorphiaLazyDataModel.java b/core/src/main/java/org/primefaces/extensions/model/mongo/MorphiaLazyDataModel.java index d453eefac..075c5d513 100644 --- a/core/src/main/java/org/primefaces/extensions/model/mongo/MorphiaLazyDataModel.java +++ b/core/src/main/java/org/primefaces/extensions/model/mongo/MorphiaLazyDataModel.java @@ -388,8 +388,8 @@ public MorphiaLazyDataModel build() { else { Objects.requireNonNull(model.rowKeyField, "rowKeyField is mandatory if neither rowKeyProvider nor converter is provided"); - PropertyDescriptorResolver propResolver = - PrimeApplicationContext.getCurrentInstance(FacesContext.getCurrentInstance()).getPropertyDescriptorResolver(); + PropertyDescriptorResolver propResolver = PrimeApplicationContext.getCurrentInstance(FacesContext.getCurrentInstance()) + .getPropertyDescriptorResolver(); model.rowKeyProvider = obj -> propResolver.getValue(obj, model.rowKeyField); } }