Author: bibryam
Date: Tue Dec 1 10:00:43 2009
New Revision: 885709
URL:
http://svn.apache.org/viewvc?rev=885709&view=revLog:
Increment paginator number only for list and multi forms.
This will partially fix the bug reported in
https://issues.apache.org/jira/browse/OFBIZ-1935Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java?rev=885709&r1=885708&r2=885709&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java Tue Dec 1 10:00:43 2009
@@ -784,8 +784,10 @@
* use the same form definitions for many types of form UIs
*/
public void renderFormString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) throws IOException {
- // increment the paginator
- this.incrementPaginatorNumber(context);
+ // increment the paginator, only for list and multi forms
+ if ("list".equals(this.type) || "multi".equals(this.type)) {
+ this.incrementPaginatorNumber(context);
+ }
// Populate the viewSize and viewIndex so they are available for use during form actions
context.put("viewIndex", this.getViewIndex(context));
context.put("viewSize", this.getViewSize(context));