From: Chad B. <cwb...@us...> - 2008-03-27 20:33:07
|
User: cwbrandon Date: 08/03/27 13:33:11 Modified: andromda-jsf2/src/main/resources/templates/jsf2/utils/portlet PageableDataModel.java.vsl Log: add isEmpty method Revision Changes Path 1.2 +10 -0 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/utils/portlet/PageableDataModel.java.vsl Index: PageableDataModel.java.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/utils/portlet/PageableDataModel.java.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- PageableDataModel.java.vsl 27 Mar 2008 18:34:52 -0000 1.1 +++ PageableDataModel.java.vsl 27 Mar 2008 20:33:11 -0000 1.2 @@ -249,4 +249,14 @@ } this.sortAscending = sortAscending; } + + /** + * Provides ability to check whether or not the + * data is empty in JSTL (this this class wraps a collection + * when the collection is pageable). + */ + public boolean isEmpty() + { + return this.getRowCount() == 0; + } } \ No newline at end of file |