diff --git a/framework/common/webcommon/includes/htmlTemplate.ftl b/framework/common/webcommon/includes/htmlTemplate.ftl index b6f752385d..671e89d89d 100644 --- a/framework/common/webcommon/includes/htmlTemplate.ftl +++ b/framework/common/webcommon/includes/htmlTemplate.ftl @@ -61,21 +61,18 @@ under the License. <#if (!previousUrl?has_content)> <#local previousUrl=commonUrl+"VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexPrevious}"/> #if> - <#if (!firstUrl?has_content)> + <#if (!nextUrl?has_content)> <#local nextUrl=commonUrl+"VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexNext}"/> #if> - <#if (!firstUrl?has_content)> + <#if (!lastUrl?has_content)> <#local lastUrl=commonUrl+"VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndexLast}"/> #if> - <#if (!firstUrl?has_content)> + <#if (!selectUrl?has_content)> <#local selectUrl=commonUrl+"VIEW_SIZE=${viewSize}&VIEW_INDEX="/> #if> - <#if (!firstUrl?has_content)> + <#if (!selectSizeUrl?has_content)> <#local selectSizeUrl=commonUrl+"VIEW_SIZE='+this.value+'&VIEW_INDEX=0"/> #if> #if> - <#if (!commonDisplaying?has_content)> - <#local commonDisplaying="${lowIndex} - ${highIndex} ${uiLabelMap.CommonOf} ${listSize}"/> - #if> - <@renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl paginateFirstLabel paginatePreviousStyle ajaxPreviousUrl previousUrl paginatePreviousLabel pageLabel ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl paginateNextLabel paginateLastStyle ajaxLastUrl lastUrl paginateLastLabel paginateViewSizeLabel /> + <@renderNextPrev paginateStyle paginateFirstStyle viewIndex highIndex listSize viewSize ajaxEnabled javaScriptEnabled ajaxFirstUrl firstUrl uiLabelMap.CommonFirst paginatePreviousStyle ajaxPreviousUrl previousUrl uiLabelMap.CommonPrevious uiLabelMap.CommonPage ajaxSelectUrl selectUrl ajaxSelectSizeUrl selectSizeUrl commonDisplaying paginateNextStyle ajaxNextUrl nextUrl uiLabelMap.CommonNext paginateLastStyle ajaxLastUrl lastUrl uiLabelMap.CommonLast uiLabelMap.CommonItemsPerPage/> #macro> \ No newline at end of file diff --git a/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy b/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy index 129b46ae09..e4853bf4a8 100644 --- a/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy +++ b/framework/webtools/webapp/webtools/WEB-INF/actions/entity/FindGeneric.groovy @@ -246,3 +246,6 @@ if (resultPartialList != null) { } } context.records = records; +context.lowCount = lowIndex; +context.highCount = lowIndex + records.size() - 1; +context.total = arraySize; diff --git a/framework/webtools/webapp/webtools/entity/FindGeneric.ftl b/framework/webtools/webapp/webtools/entity/FindGeneric.ftl index 790f61e509..71d0fe460b 100644 --- a/framework/webtools/webapp/webtools/entity/FindGeneric.ftl +++ b/framework/webtools/webapp/webtools/entity/FindGeneric.ftl @@ -18,22 +18,21 @@ under the License. -->