Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapster committed Feb 28, 2024
1 parent c79e223 commit 1c881ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ public MorphiaLazyDataModel<T> 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);
}
}
Expand Down

0 comments on commit 1c881ce

Please sign in to comment.