Grails FilterPane Plugin Review
Posted by jt - 09/01/10 at 08:01 amYesterday I started using the FilterPane plugin. So far, I am very impressed with the plugin. I have a number of screens in my application that I needed to provide some basic search functionality for. I had previously looked at the Criteria plugin and found it so so.
It probably took me an hour or so to research the documentation and example of the FilterPane plugin, my actual development time was under 15 minutes to get things up an running in my project. I found the documentation very thorough and the example project helpful.
To get the plugin working, started with a basic list.gsp view generated from the default Grails scaffolding. Following the plugin’s directions, I modified the list view with several new tags & I had to modify some of the existing tags. The view controller gets a new ‘filterService’ service and one new method.
The only thing that tripped me up was I had to use the fully qualified name of the domain object. Initially, I did not include the package name of the domain object, and things did not work.
I added the filter to my Purchase Order domain, which is probably one of my more complex domain classes. The default setup from the directions, gives you a ‘filter’ button at the bottom of the list view.
Clicking the filter button shows the filter dialog in a nice Web 2.0 fashion. If you include scriptaculous in your page, you’ll get a nice fade in / out affect. Here is an example of the filter dialog. Note, this is all generated by the plugin. The code I wrote to provide this is:
<filterpane:filterPane domainBean="org.whserat.PurchaseOrder" />
In this example, I asked for PO’s where the PO number contained ‘3′. Here is the result:
I like the message provided showing the criteria applied. This is a nice, user friendly feature.
Overall, I’m impressed with this plugin. I really like the capabilities it adds to my application. I’m considering adding this into by default scaffolding views.



A bunch of random technology stuff that has my attention. I work with a lot of Oracle, Java, and dabble with various open source software packages.
March 10th, 2010 at 6:28 am
glad i found it !! quite amazingly write-up
July 20th, 2010 at 10:59 pm
I’m glad you found the plugin useful! If you have any suggestions for improvement, feel free to drop a line to the user list or submit a JIRA for the plugin.