My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 102: Filtering is not Working
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Aug 2008


 
Reported by ndhilliprasad@gmail.com, May 12, 2008
What steps will reproduce the problem?
1. Construct List of Maps
2. Pass this List to JMesa Table Tag
3. Filtering is not working 

What is the expected output? What do you see instead?
Filtering the items.I am getting null pointer Exception.

What version of the product are you using? On what operating system?
2.3 and Windows 2000

Please provide any additional information below.
To create the FilterMatcher  you will get the Type for the Property from
PropertyUtils by passing the property name,As I am using the java.util.Map
to hold the data as key/value  pairs,if you pass the key to the
PropertyUtils it will return the property type as null.This Property type
was used to create the Matcher Object.This null value of property type is
causing the NullPointerException
 
May 13, 2008
#1 extremec...@gmail.com
Your right! This issue was discovered a few weeks ago and I forgot to write a ticket
up about it. The fact that it took so long to surface makes me have to assume that
using maps is not very common. However, I do want to support the feature and will get
it fixed. 

Here is another link that demonstrates the problem as well.

http://groups.google.com/group/jmesa/browse_thread/thread/abd5ade702774079/bbd894452441e8df?lnk=gst&q=map+not+working#bbd894452441e8df
Labels: -Priority-Medium Priority-High
Jun 25, 2008
#2 haroonra...@gmail.com
We'll provide the fix to this issue. Please include it in the next patch/release :)

Thanks!
Jun 25, 2008
#3 extremec...@gmail.com
If you supply the fix I will include it in the next release. I think the tentative
date for the next full release will be the end of July...a Grails plugin is being
worked on! 

I will do a bug fix release if it goes any further than that.
Jun 25, 2008
#4 extremec...@gmail.com
Also, if I remember correctly the problem is in the SimpleRowFilter class. In the
getFilterMatchers() method there is a call that checks for the type. 

Class<?> type = PropertyUtils.getPropertyType(item, property);

This does not work with Maps...at least from what I remember.

Aug 20, 2008
Project Member #5 jeff.johnston.mn@gmail.com
I was able to get a patch in for this and it is on the trunk now.
Status: Fixed
Aug 20, 2008
Project Member #6 jeff.johnston.mn@gmail.com
I was able to get a patch in for this and it is on the trunk now.

Powered by Google Project Hosting