Index: trunk/grails-app/views/supplierDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/supplierDetailed/list.gsp	(revision 836)
+++ trunk/grails-app/views/supplierDetailed/list.gsp	(revision 955)
@@ -1,4 +1,2 @@
-
-
 <html>
     <head>
@@ -6,4 +4,5 @@
         <meta name="layout" content="main" />
         <title>Supplier List</title>
+        <filterpane:includes />
         <nav:resources override="true"/>
     </head>
@@ -13,64 +12,91 @@
         </div>
         <div class="body">
-            <g:if test="${flash.message}">
-            <div class="message">${flash.message}</div>
-            </g:if>
-            <div class="list">
-                <table>
-                    <thead>
+            <g:render template="/shared/messages" />
+
+            <filterpane:currentCriteria domainBean="Supplier"
+                                        action="list"
+                                        dateFormat="EEE, dd-MMM-yyyy"
+                                        removeImgDir="images"
+                                        removeImgFile="bullet_delete.png"
+                                        title="Search"/>
+
+            <div class="paginateButtons">
+                Results: ${supplierInstanceList.size()} / ${supplierInstanceTotal}
+                <span class="searchButtons">
+                    <filterpane:filterButton text="Search" appliedText="Change Search" />
+                </span>
+            </div>
+
+            <br />
+
+            <g:if test="${supplierInstanceList.size() > 0}">
+
+                <div class="list">
+                    <table>
+                        <thead>
                         <tr>
-                        
-                            <g:sortableColumn property="id" title="Id" />
 
-                            <g:sortableColumn property="name" title="Name" />
+                            <g:sortableColumn property="id" title="Id" params="${filterParams}" />
 
-                            <g:sortableColumn property="description" title="Description" />
+                            <g:sortableColumn property="name" title="Name" params="${filterParams}" />
 
-                            <g:sortableColumn property="isActive" title="Is Active" />
+                            <g:sortableColumn property="description" title="Description" params="${filterParams}" />
+
+                            <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />
 
                             <th>Supplier Type</th>
-                            
+
                             <th></th>
-                   	    
+
                         </tr>
-                    </thead>
-                    <tbody>
-                    <g:each in="${supplierInstanceList}" status="i" var="supplierInstance">
-                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
-                        
-                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
-                                ${fieldValue(bean:supplierInstance, field:'id')}
-                            </td>
-                        
-                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
-                                ${fieldValue(bean:supplierInstance, field:'name')}
-                            </td>
-                        
-                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
-                                ${fieldValue(bean:supplierInstance, field:'description')}
-                            </td>
-                        
-                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
-                                ${fieldValue(bean:supplierInstance, field:'isActive')}
-                            </td>
-                        
-                            <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
-                                ${fieldValue(bean:supplierInstance, field:'supplierType')}
-                            </td>
+                        </thead>
+                        <tbody>
+                        <g:each in="${supplierInstanceList}" status="i" var="supplierInstance">
+                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
 
-                            <td class="notClickable">
-                                <g:link action="show" id="${supplierInstance.id}">
-                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
-                                </g:link>
-                            </td>
-                        
-                        </tr>
-                    </g:each>
-                    </tbody>
-                </table>
+                                <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
+                                    ${fieldValue(bean:supplierInstance, field:'id')}
+                                </td>
+
+                                <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
+                                    ${fieldValue(bean:supplierInstance, field:'name')}
+                                </td>
+
+                                <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
+                                    ${fieldValue(bean:supplierInstance, field:'description')}
+                                </td>
+
+                                <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
+                                    ${fieldValue(bean:supplierInstance, field:'isActive')}
+                                </td>
+
+                                <td onclick='window.location = "${request.getContextPath()}/supplierDetailed/show/${supplierInstance.id}"'>
+                                    ${fieldValue(bean:supplierInstance, field:'supplierType')}
+                                </td>
+
+                                <td class="notClickable">
+                                    <g:link action="show" id="${supplierInstance.id}">
+                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
+                                    </g:link>
+                                </td>
+
+                            </tr>
+                        </g:each>
+                        </tbody>
+                    </table>
+                </div>
+            </g:if>
+
+            <div class="paginateButtons">
+                <g:paginate total="${supplierInstanceTotal}" params="${filterParams}" />
             </div>
-            <div class="paginateButtons">
-                <g:paginate total="${supplierInstanceTotal}" />
-            </div>
+
+            <filterpane:filterPane domainBean="Supplier"
+                                   title="Search"
+                                   action="list"
+                                   class="overlayPane"
+                                   associatedProperties="supplierType.name"
+                                   filterPropertyValues="${['supplierType.name':[values: associatedPropertyValues.supplierTypeList]]}" />
+
         </div>
     </body>
