You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2018/11/01 10:56:56 UTC

[myfaces-tobago] branch master updated: TOBAGO-1947 Sorting in sheet requires setter

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 7dcbe82  TOBAGO-1947 Sorting in sheet requires setter
7dcbe82 is described below

commit 7dcbe82a5248b2bb9f497453dc4f596502b62f1c
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Thu Nov 1 11:56:48 2018 +0100

    TOBAGO-1947 Sorting in sheet requires setter
    
    * sorting now requires only a getter (as it was in Tobago 2)
---
 .../src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java
index 0dd1c1c..5998a8f 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/util/BeanComparator.java
@@ -88,8 +88,8 @@ public class BeanComparator extends ComparatorBase implements Serializable {
     final Object obj1;
     final Object obj2;
     try {
-      obj1 = new PropertyDescriptor(property, param1.getClass()).getReadMethod().invoke(param1);
-      obj2 = new PropertyDescriptor(property, param1.getClass()).getReadMethod().invoke(param2);
+      obj1 = new PropertyDescriptor(property, param1.getClass(), property, null).getReadMethod().invoke(param1);
+      obj2 = new PropertyDescriptor(property, param1.getClass(), property, null).getReadMethod().invoke(param2);
     } catch (final Exception e) {
       LOG.error(e.getMessage(), e);
       return 0;