[seam-commits] Seam SVN: r10342 - trunk/seam-gen/view.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Apr 7 19:20:21 EDT 2009


Author: dan.j.allen
Date: 2009-04-07 19:20:21 -0400 (Tue, 07 Apr 2009)
New Revision: 10342

Modified:
   trunk/seam-gen/view/list.xhtml.ftl
Log:
add result count to header (and be smart about it if there is only one page)


Modified: trunk/seam-gen/view/list.xhtml.ftl
===================================================================
--- trunk/seam-gen/view/list.xhtml.ftl	2009-04-07 23:18:11 UTC (rev 10341)
+++ trunk/seam-gen/view/list.xhtml.ftl	2009-04-07 23:20:21 UTC (rev 10342)
@@ -65,7 +65,7 @@
     </h:form>
 
     <rich:panel>
-        <f:facet name="header">${entityName} Search Results</f:facet>
+        <f:facet name="header">${entityName} Search Results (${'#'}{empty ${listName}.resultList ? 0 : (${listName}.paginated ? ${listName}.resultCount : ${listName}.resultList.size)})</f:facet>
     <div class="results" id="${componentName}List">
 
     <h:outputText value="The ${componentName} search returned no results."




More information about the seam-commits mailing list