Index: trunk/grails-app/controllers/CostCodeDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/CostCodeDetailedController.groovy	(revision 922)
+++ trunk/grails-app/controllers/CostCodeDetailedController.groovy	(revision 953)
@@ -3,5 +3,7 @@
 @Secured(['ROLE_AppAdmin', 'ROLE_Manager'])
 class CostCodeDetailedController extends BaseController {
-    
+
+    def filterService
+
     def index = { redirect(action:list,params:params) }
 
@@ -11,5 +13,16 @@
     def list = {
         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ costCodeInstanceList: CostCode.list( params ), costCodeInstanceTotal: CostCode.count() ]
+
+        if(!params.filter) {
+            return [costCodeInstanceList: CostCode.list(params),
+                    costCodeInstanceTotal: CostCode.count(),
+                    filterParams: params]
+        }
+
+        // filterPane:
+        return[ costCodeInstanceList: filterService.filter( params, CostCode ),
+                costCodeInstanceTotal: filterService.count( params, CostCode ),
+                filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params),
+                params:params ]
     }
 
