You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Ashish Vijaywargiya <vi...@gmail.com> on 2009/09/29 11:08:33 UTC

Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Hello Hans,

This is friendly reminder that your commit contains *tabs* once again.
Can you please take care of it?

Please let me & community know about your editor settings so we can solve
the problem and can come to some better solution.
Thanks!

-
+        if (UtilValidate.isNotEmpty(
>
> context.get("iterateId"))) {
> +               iterateId = (String) context.get("iterateId");
> +        }



--------------------

+            if (iterateIndex < listSize) {
+               contextMs.put("iterateId",
>
> String.valueOf(entryName+iterateIndex));
> +               iterateIndex++;
> +            }



----------------

--
Ashish

On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:

> Author: hansbak
> Date: Tue Sep 29 07:42:20 2009
> New Revision: 819849
>
> URL: http://svn.apache.org/viewvc?rev=819849&view=rev
> Log:
> add a sequence number to links if a form is iterated in an iterate section
>
> Modified:
>    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>
>  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>
> Modified:
> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
>
> ==============================================================================
> --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> (original)
> +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Tue
> Sep 29 07:42:20 2009
> @@ -267,13 +267,16 @@
>     public static String makeLinkHiddenFormName(Map<String, Object>
> context, ModelFormField modelFormField) {
>         ModelForm modelForm = modelFormField.getModelForm();
>         Integer itemIndex = (Integer) context.get("itemIndex");
> +        String iterateId = "";
>         String formName = (String) context.get("formName");
>         if (UtilValidate.isEmpty(formName)) {
>             formName = modelForm.getName();
>         }
> -
> +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
> +               iterateId = (String) context.get("iterateId");
> +        }
>         if (itemIndex != null) {
> -            return formName + modelForm.getItemIndexSeparator() +
> itemIndex.intValue() + modelForm.getItemIndexSeparator() +
> modelFormField.getName();
> +            return formName + modelForm.getItemIndexSeparator() +
> itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
> modelFormField.getName();
>         } else {
>             return formName + modelForm.getItemIndexSeparator() +
> modelFormField.getName();
>         }
>
> Modified:
> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
>
> ==============================================================================
> ---
> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> (original)
> +++
> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> Tue Sep 29 07:42:20 2009
> @@ -128,6 +128,7 @@
>         int rowCount = 0;
>         Iterator iter = theList.iterator();
>         int itemIndex = -1;
> +        int iterateIndex = 0;
>         while (iter.hasNext()) {
>             itemIndex++;
>             if (itemIndex >= highIndex) {
> @@ -138,13 +139,17 @@
>                 continue;
>             }
>             if (isEntrySet) {
> -                contextMs.put(entryName, ((Map)item).get("value"));
> +                contextMs.put(entryName, ((Map)item).get("value"));
>                 contextMs.put(keyName, ((Map)item).get("key"));
>             } else {
>                 contextMs.put(entryName, item);
>             }
>             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
> -
> +
> +            if (iterateIndex < listSize) {
> +
> contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
> +               iterateIndex++;
> +            }
>             rowCount++;
>             for (ModelScreenWidget.Section section: this.sectionList) {
>                 section.renderWidgetString(writer, contextMs,
> screenStringRenderer);
>
>
>

Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
No problem Hans.
Take your time and please let me know if I can be of help for you to solve
this Tab issue.

--
Ashish

On Tue, Sep 29, 2009 at 2:42 PM, Hans Bakker
<ma...@antwebsystems.com>wrote:

> I am sorry, i have to remove them by hand and sometimes i forget some...
>
> On Tue, 2009-09-29 at 14:38 +0530, Ashish Vijaywargiya wrote:
> > Hello Hans,
> >
> > This is friendly reminder that your commit contains *tabs* once again.
> > Can you please take care of it?
> >
> > Please let me & community know about your editor settings so we can solve
> > the problem and can come to some better solution.
> > Thanks!
> >
> > -
> > +        if (UtilValidate.isNotEmpty(
> > >
> > > context.get("iterateId"))) {
> > > +               iterateId = (String) context.get("iterateId");
> > > +        }
> >
> >
> >
> > --------------------
> >
> > +            if (iterateIndex < listSize) {
> > +               contextMs.put("iterateId",
> > >
> > > String.valueOf(entryName+iterateIndex));
> > > +               iterateIndex++;
> > > +            }
> >
> >
> >
> > ----------------
> >
> > --
> > Ashish
> >
> > On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:
> >
> > > Author: hansbak
> > > Date: Tue Sep 29 07:42:20 2009
> > > New Revision: 819849
> > >
> > > URL: http://svn.apache.org/viewvc?rev=819849&view=rev
> > > Log:
> > > add a sequence number to links if a form is iterated in an iterate
> section
> > >
> > > Modified:
> > >    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> > >
> > >
>  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> > >
> > > Modified:
> > > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> > > URL:
> > >
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
> > >
> > >
> ==============================================================================
> > > --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> > > (original)
> > > +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> Tue
> > > Sep 29 07:42:20 2009
> > > @@ -267,13 +267,16 @@
> > >     public static String makeLinkHiddenFormName(Map<String, Object>
> > > context, ModelFormField modelFormField) {
> > >         ModelForm modelForm = modelFormField.getModelForm();
> > >         Integer itemIndex = (Integer) context.get("itemIndex");
> > > +        String iterateId = "";
> > >         String formName = (String) context.get("formName");
> > >         if (UtilValidate.isEmpty(formName)) {
> > >             formName = modelForm.getName();
> > >         }
> > > -
> > > +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
> > > +               iterateId = (String) context.get("iterateId");
> > > +        }
> > >         if (itemIndex != null) {
> > > -            return formName + modelForm.getItemIndexSeparator() +
> > > itemIndex.intValue() + modelForm.getItemIndexSeparator() +
> > > modelFormField.getName();
> > > +            return formName + modelForm.getItemIndexSeparator() +
> > > itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
> > > modelFormField.getName();
> > >         } else {
> > >             return formName + modelForm.getItemIndexSeparator() +
> > > modelFormField.getName();
> > >         }
> > >
> > > Modified:
> > >
> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> > > URL:
> > >
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
> > >
> > >
> ==============================================================================
> > > ---
> > >
> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> > > (original)
> > > +++
> > >
> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> > > Tue Sep 29 07:42:20 2009
> > > @@ -128,6 +128,7 @@
> > >         int rowCount = 0;
> > >         Iterator iter = theList.iterator();
> > >         int itemIndex = -1;
> > > +        int iterateIndex = 0;
> > >         while (iter.hasNext()) {
> > >             itemIndex++;
> > >             if (itemIndex >= highIndex) {
> > > @@ -138,13 +139,17 @@
> > >                 continue;
> > >             }
> > >             if (isEntrySet) {
> > > -                contextMs.put(entryName, ((Map)item).get("value"));
> > > +                contextMs.put(entryName, ((Map)item).get("value"));
> > >                 contextMs.put(keyName, ((Map)item).get("key"));
> > >             } else {
> > >                 contextMs.put(entryName, item);
> > >             }
> > >             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
> > > -
> > > +
> > > +            if (iterateIndex < listSize) {
> > > +
> > > contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
> > > +               iterateIndex++;
> > > +            }
> > >             rowCount++;
> > >             for (ModelScreenWidget.Section section: this.sectionList) {
> > >                 section.renderWidgetString(writer, contextMs,
> > > screenStringRenderer);
> > >
> > >
> > >
> --
> Antwebsystems.com: Quality OFBiz services for competitive rates
>
>

Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Ashish Vijaywargiya <as...@hotwaxmedia.com>.
Not a problem Hans.
Have a nice day ahead :-).

--
Regards
Ashish Vijaywargiya
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com

Helping hand around the World ...
USA | Italy | New Zealand | India


Hans Bakker wrote:
> Thank you for your help Ashish.
>
> On Tue, 2009-09-29 at 15:22 +0530, Ashish Vijaywargiya wrote:
>   
>> Another solution that you can use is described below.
>>
>> In your eclipse IDE go to:
>> Window -> Preferences -> General -> Text Editors -> Enable "Show whitespace
>> character".
>> For more details you can see the image attached at (Also refer how it shows
>> tab in two other pictures):
>>
>> http://farm3.static.flickr.com/2500/3964965557_eed08309dd_o.png
>> http://farm3.static.flickr.com/2598/3964965563_0b67c5c00a_b.jpg
>> http://farm3.static.flickr.com/2433/3964965569_546083e076_b.jpg
>>
>> IMO this can be added to http://docs.ofbiz.org/x/mg.
>> Thanks!
>>
>> --
>> Ashish
>>
>> On Tue, Sep 29, 2009 at 2:57 PM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>>     
>>> Hi Hans,
>>>
>>> Why not reverting to Ganymede and using AnyEdit for non Java and XML files
>>> ?
>>>
>>> Jacques
>>>
>>> From: "Hans Bakker" <ma...@antwebsystems.com>
>>>
>>>  I am sorry, i have to remove them by hand and sometimes i forget some...
>>>       
>>>> On Tue, 2009-09-29 at 14:38 +0530, Ashish Vijaywargiya wrote:
>>>>
>>>>         
>>>>> Hello Hans,
>>>>>
>>>>> This is friendly reminder that your commit contains *tabs* once again.
>>>>> Can you please take care of it?
>>>>>
>>>>> Please let me & community know about your editor settings so we can solve
>>>>> the problem and can come to some better solution.
>>>>> Thanks!
>>>>>
>>>>> -
>>>>> +        if (UtilValidate.isNotEmpty(
>>>>>           
>>>>>> context.get("iterateId"))) {
>>>>>> +               iterateId = (String) context.get("iterateId");
>>>>>> +        }
>>>>>>             
>>>>>
>>>>> --------------------
>>>>>
>>>>> +            if (iterateIndex < listSize) {
>>>>> +               contextMs.put("iterateId",
>>>>>           
>>>>>> String.valueOf(entryName+iterateIndex));
>>>>>> +               iterateIndex++;
>>>>>> +            }
>>>>>>             
>>>>>
>>>>> ----------------
>>>>>
>>>>> --
>>>>> Ashish
>>>>>
>>>>> On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:
>>>>>
>>>>>           
>>>>>> Author: hansbak
>>>>>> Date: Tue Sep 29 07:42:20 2009
>>>>>> New Revision: 819849
>>>>>>
>>>>>> URL: http://svn.apache.org/viewvc?rev=819849&view=rev
>>>>>> Log:
>>>>>> add a sequence number to links if a form is iterated in an iterate
>>>>>>             
>>>>> section
>>>>>           
>>>>>> Modified:
>>>>>>    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>>>>>
>>>>>>
>>>>>>             
>>>>>  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>>>>           
>>>>>> Modified:
>>>>>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>>>>> URL:
>>>>>>
>>>>>>             
>>>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
>>>>>           
>>>>>>             
>>>>> ==============================================================================
>>>>>           
>>>>>> --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>>>>> (original)
>>>>>> +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>>>>>             
>>>>> Tue
>>>>>           
>>>>>> Sep 29 07:42:20 2009
>>>>>> @@ -267,13 +267,16 @@
>>>>>>     public static String makeLinkHiddenFormName(Map<String, Object>
>>>>>> context, ModelFormField modelFormField) {
>>>>>>         ModelForm modelForm = modelFormField.getModelForm();
>>>>>>         Integer itemIndex = (Integer) context.get("itemIndex");
>>>>>> +        String iterateId = "";
>>>>>>         String formName = (String) context.get("formName");
>>>>>>         if (UtilValidate.isEmpty(formName)) {
>>>>>>             formName = modelForm.getName();
>>>>>>         }
>>>>>> -
>>>>>> +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
>>>>>> +               iterateId = (String) context.get("iterateId");
>>>>>> +        }
>>>>>>         if (itemIndex != null) {
>>>>>> -            return formName + modelForm.getItemIndexSeparator() +
>>>>>> itemIndex.intValue() + modelForm.getItemIndexSeparator() +
>>>>>> modelFormField.getName();
>>>>>> +            return formName + modelForm.getItemIndexSeparator() +
>>>>>> itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
>>>>>> modelFormField.getName();
>>>>>>         } else {
>>>>>>             return formName + modelForm.getItemIndexSeparator() +
>>>>>> modelFormField.getName();
>>>>>>         }
>>>>>>
>>>>>> Modified:
>>>>>>
>>>>>>             
>>>>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>>>>           
>>>>>> URL:
>>>>>>
>>>>>>             
>>>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
>>>>>           
>>>>>>             
>>>>> ==============================================================================
>>>>>           
>>>>>> ---
>>>>>>
>>>>>>             
>>>>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>>>>           
>>>>>> (original)
>>>>>> +++
>>>>>>
>>>>>>             
>>>>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>>>>           
>>>>>> Tue Sep 29 07:42:20 2009
>>>>>> @@ -128,6 +128,7 @@
>>>>>>         int rowCount = 0;
>>>>>>         Iterator iter = theList.iterator();
>>>>>>         int itemIndex = -1;
>>>>>> +        int iterateIndex = 0;
>>>>>>         while (iter.hasNext()) {
>>>>>>             itemIndex++;
>>>>>>             if (itemIndex >= highIndex) {
>>>>>> @@ -138,13 +139,17 @@
>>>>>>                 continue;
>>>>>>             }
>>>>>>             if (isEntrySet) {
>>>>>> -                contextMs.put(entryName, ((Map)item).get("value"));
>>>>>> +                contextMs.put(entryName, ((Map)item).get("value"));
>>>>>>                 contextMs.put(keyName, ((Map)item).get("key"));
>>>>>>             } else {
>>>>>>                 contextMs.put(entryName, item);
>>>>>>             }
>>>>>>             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
>>>>>> -
>>>>>> +
>>>>>> +            if (iterateIndex < listSize) {
>>>>>> +
>>>>>> contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
>>>>>> +               iterateIndex++;
>>>>>> +            }
>>>>>>             rowCount++;
>>>>>>             for (ModelScreenWidget.Section section: this.sectionList) {
>>>>>>                 section.renderWidgetString(writer, contextMs,
>>>>>> screenStringRenderer);
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>> --
>>>> Antwebsystems.com: Quality OFBiz services for competitive rates
>>>>
>>>>
>>>>         
>>>       

Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Hans Bakker <ma...@antwebsystems.com>.
Thank you for your help Ashish.

On Tue, 2009-09-29 at 15:22 +0530, Ashish Vijaywargiya wrote:
> Another solution that you can use is described below.
> 
> In your eclipse IDE go to:
> Window -> Preferences -> General -> Text Editors -> Enable "Show whitespace
> character".
> For more details you can see the image attached at (Also refer how it shows
> tab in two other pictures):
> 
> http://farm3.static.flickr.com/2500/3964965557_eed08309dd_o.png
> http://farm3.static.flickr.com/2598/3964965563_0b67c5c00a_b.jpg
> http://farm3.static.flickr.com/2433/3964965569_546083e076_b.jpg
> 
> IMO this can be added to http://docs.ofbiz.org/x/mg.
> Thanks!
> 
> --
> Ashish
> 
> On Tue, Sep 29, 2009 at 2:57 PM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
> 
> > Hi Hans,
> >
> > Why not reverting to Ganymede and using AnyEdit for non Java and XML files
> > ?
> >
> > Jacques
> >
> > From: "Hans Bakker" <ma...@antwebsystems.com>
> >
> >  I am sorry, i have to remove them by hand and sometimes i forget some...
> >>
> >> On Tue, 2009-09-29 at 14:38 +0530, Ashish Vijaywargiya wrote:
> >>
> >>> Hello Hans,
> >>>
> >>> This is friendly reminder that your commit contains *tabs* once again.
> >>> Can you please take care of it?
> >>>
> >>> Please let me & community know about your editor settings so we can solve
> >>> the problem and can come to some better solution.
> >>> Thanks!
> >>>
> >>> -
> >>> +        if (UtilValidate.isNotEmpty(
> >>> >
> >>> > context.get("iterateId"))) {
> >>> > +               iterateId = (String) context.get("iterateId");
> >>> > +        }
> >>>
> >>>
> >>>
> >>> --------------------
> >>>
> >>> +            if (iterateIndex < listSize) {
> >>> +               contextMs.put("iterateId",
> >>> >
> >>> > String.valueOf(entryName+iterateIndex));
> >>> > +               iterateIndex++;
> >>> > +            }
> >>>
> >>>
> >>>
> >>> ----------------
> >>>
> >>> --
> >>> Ashish
> >>>
> >>> On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:
> >>>
> >>> > Author: hansbak
> >>> > Date: Tue Sep 29 07:42:20 2009
> >>> > New Revision: 819849
> >>> >
> >>> > URL: http://svn.apache.org/viewvc?rev=819849&view=rev
> >>> > Log:
> >>> > add a sequence number to links if a form is iterated in an iterate
> >>> section
> >>> >
> >>> > Modified:
> >>> >    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> >>> >
> >>> >
> >>>  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> >>> >
> >>> > Modified:
> >>> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> >>> > URL:
> >>> >
> >>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
> >>> >
> >>> >
> >>> ==============================================================================
> >>> > --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> >>> > (original)
> >>> > +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> >>> Tue
> >>> > Sep 29 07:42:20 2009
> >>> > @@ -267,13 +267,16 @@
> >>> >     public static String makeLinkHiddenFormName(Map<String, Object>
> >>> > context, ModelFormField modelFormField) {
> >>> >         ModelForm modelForm = modelFormField.getModelForm();
> >>> >         Integer itemIndex = (Integer) context.get("itemIndex");
> >>> > +        String iterateId = "";
> >>> >         String formName = (String) context.get("formName");
> >>> >         if (UtilValidate.isEmpty(formName)) {
> >>> >             formName = modelForm.getName();
> >>> >         }
> >>> > -
> >>> > +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
> >>> > +               iterateId = (String) context.get("iterateId");
> >>> > +        }
> >>> >         if (itemIndex != null) {
> >>> > -            return formName + modelForm.getItemIndexSeparator() +
> >>> > itemIndex.intValue() + modelForm.getItemIndexSeparator() +
> >>> > modelFormField.getName();
> >>> > +            return formName + modelForm.getItemIndexSeparator() +
> >>> > itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
> >>> > modelFormField.getName();
> >>> >         } else {
> >>> >             return formName + modelForm.getItemIndexSeparator() +
> >>> > modelFormField.getName();
> >>> >         }
> >>> >
> >>> > Modified:
> >>> >
> >>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> >>> > URL:
> >>> >
> >>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
> >>> >
> >>> >
> >>> ==============================================================================
> >>> > ---
> >>> >
> >>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> >>> > (original)
> >>> > +++
> >>> >
> >>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> >>> > Tue Sep 29 07:42:20 2009
> >>> > @@ -128,6 +128,7 @@
> >>> >         int rowCount = 0;
> >>> >         Iterator iter = theList.iterator();
> >>> >         int itemIndex = -1;
> >>> > +        int iterateIndex = 0;
> >>> >         while (iter.hasNext()) {
> >>> >             itemIndex++;
> >>> >             if (itemIndex >= highIndex) {
> >>> > @@ -138,13 +139,17 @@
> >>> >                 continue;
> >>> >             }
> >>> >             if (isEntrySet) {
> >>> > -                contextMs.put(entryName, ((Map)item).get("value"));
> >>> > +                contextMs.put(entryName, ((Map)item).get("value"));
> >>> >                 contextMs.put(keyName, ((Map)item).get("key"));
> >>> >             } else {
> >>> >                 contextMs.put(entryName, item);
> >>> >             }
> >>> >             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
> >>> > -
> >>> > +
> >>> > +            if (iterateIndex < listSize) {
> >>> > +
> >>> > contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
> >>> > +               iterateIndex++;
> >>> > +            }
> >>> >             rowCount++;
> >>> >             for (ModelScreenWidget.Section section: this.sectionList) {
> >>> >                 section.renderWidgetString(writer, contextMs,
> >>> > screenStringRenderer);
> >>> >
> >>> >
> >>> >
> >>>
> >> --
> >> Antwebsystems.com: Quality OFBiz services for competitive rates
> >>
> >>
> >
> >
-- 
Antwebsystems.com: Quality OFBiz services for competitive rates


Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Inline:

--
Ashish

On Tue, Sep 29, 2009 at 3:45 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Yes there is even the same in AnyEDit (FTL, etc.)
>
> Menu Edit/Show Withespace.
>
> It's a bit differrent : not showing points but coloring in light green. Not
> that it works also from the toolbar with a click.
> You may have the same (toolbar) for Eclipse integrated editor :
>
> Menu Windows/Customoize perspective/ Tabs Commands/ Check Editor
> presentation
>
> Enjoy
>
> Who will add all these good stuffes to the wiki ;o)
>

Angel? :) ;)


>
> Jacques
>

Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes there is even the same in AnyEDit (FTL, etc.)

Menu Edit/Show Withespace. 

It's a bit differrent : not showing points but coloring in light green. Not that it works also from the toolbar with a click.
You may have the same (toolbar) for Eclipse integrated editor : 

Menu Windows/Customoize perspective/ Tabs Commands/ Check Editor presentation

Enjoy

Who will add all these good stuffes to the wiki ;o)

Jacques
  ----- Original Message ----- 
  From: Ashish Vijaywargiya 
  To: dev@ofbiz.apache.org ; Jacques Le Roux 
  Sent: Tuesday, September 29, 2009 11:52 AM
  Subject: Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java


  Another solution that you can use is described below.

  In your eclipse IDE go to:
  Window -> Preferences -> General -> Text Editors -> Enable "Show whitespace character".
  For more details you can see the image attached at (Also refer how it shows tab in two other pictures):

  http://farm3.static.flickr.com/2500/3964965557_eed08309dd_o.png
  http://farm3.static.flickr.com/2598/3964965563_0b67c5c00a_b.jpg
  http://farm3.static.flickr.com/2433/3964965569_546083e076_b.jpg

  IMO this can be added to http://docs.ofbiz.org/x/mg.
  Thanks! 

  --
  Ashish


  On Tue, Sep 29, 2009 at 2:57 PM, Jacques Le Roux <ja...@les7arts.com> wrote:

    Hi Hans,

    Why not reverting to Ganymede and using AnyEdit for non Java and XML files ?

    Jacques

    From: "Hans Bakker" <ma...@antwebsystems.com>


      I am sorry, i have to remove them by hand and sometimes i forget some...

      On Tue, 2009-09-29 at 14:38 +0530, Ashish Vijaywargiya wrote:

        Hello Hans,

        This is friendly reminder that your commit contains *tabs* once again.
        Can you please take care of it?

        Please let me & community know about your editor settings so we can solve
        the problem and can come to some better solution.
        Thanks!

        -
        +        if (UtilValidate.isNotEmpty(
        >
        > context.get("iterateId"))) {
        > +               iterateId = (String) context.get("iterateId");
        > +        }



        --------------------

        +            if (iterateIndex < listSize) {
        +               contextMs.put("iterateId",
        >
        > String.valueOf(entryName+iterateIndex));
        > +               iterateIndex++;
        > +            }



        ----------------

        --
        Ashish

        On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:

        > Author: hansbak
        > Date: Tue Sep 29 07:42:20 2009
        > New Revision: 819849
        >
        > URL: http://svn.apache.org/viewvc?rev=819849&view=rev
        > Log:
        > add a sequence number to links if a form is iterated in an iterate section
        >
        > Modified:
        >    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
        >
        >  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
        >
        > Modified:
        > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
        > URL:
        > http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
        >
        > ==============================================================================
        > --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
        > (original)
        > +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Tue
        > Sep 29 07:42:20 2009
        > @@ -267,13 +267,16 @@
        >     public static String makeLinkHiddenFormName(Map<String, Object>
        > context, ModelFormField modelFormField) {
        >         ModelForm modelForm = modelFormField.getModelForm();
        >         Integer itemIndex = (Integer) context.get("itemIndex");
        > +        String iterateId = "";
        >         String formName = (String) context.get("formName");
        >         if (UtilValidate.isEmpty(formName)) {
        >             formName = modelForm.getName();
        >         }
        > -
        > +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
        > +               iterateId = (String) context.get("iterateId");
        > +        }
        >         if (itemIndex != null) {
        > -            return formName + modelForm.getItemIndexSeparator() +
        > itemIndex.intValue() + modelForm.getItemIndexSeparator() +
        > modelFormField.getName();
        > +            return formName + modelForm.getItemIndexSeparator() +
        > itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
        > modelFormField.getName();
        >         } else {
        >             return formName + modelForm.getItemIndexSeparator() +
        > modelFormField.getName();
        >         }
        >
        > Modified:
        > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
        > URL:
        > http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
        >
        > ==============================================================================
        > ---
        > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
        > (original)
        > +++
        > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
        > Tue Sep 29 07:42:20 2009
        > @@ -128,6 +128,7 @@
        >         int rowCount = 0;
        >         Iterator iter = theList.iterator();
        >         int itemIndex = -1;
        > +        int iterateIndex = 0;
        >         while (iter.hasNext()) {
        >             itemIndex++;
        >             if (itemIndex >= highIndex) {
        > @@ -138,13 +139,17 @@
        >                 continue;
        >             }
        >             if (isEntrySet) {
        > -                contextMs.put(entryName, ((Map)item).get("value"));
        > +                contextMs.put(entryName, ((Map)item).get("value"));
        >                 contextMs.put(keyName, ((Map)item).get("key"));
        >             } else {
        >                 contextMs.put(entryName, item);
        >             }
        >             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
        > -
        > +
        > +            if (iterateIndex < listSize) {
        > +
        > contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
        > +               iterateIndex++;
        > +            }
        >             rowCount++;
        >             for (ModelScreenWidget.Section section: this.sectionList) {
        >                 section.renderWidgetString(writer, contextMs,
        > screenStringRenderer);
        >
        >
        >

      -- 
      Antwebsystems.com: Quality OFBiz services for competitive rates







Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Another solution that you can use is described below.

In your eclipse IDE go to:
Window -> Preferences -> General -> Text Editors -> Enable "Show whitespace
character".
For more details you can see the image attached at (Also refer how it shows
tab in two other pictures):

http://farm3.static.flickr.com/2500/3964965557_eed08309dd_o.png
http://farm3.static.flickr.com/2598/3964965563_0b67c5c00a_b.jpg
http://farm3.static.flickr.com/2433/3964965569_546083e076_b.jpg

IMO this can be added to http://docs.ofbiz.org/x/mg.
Thanks!

--
Ashish

On Tue, Sep 29, 2009 at 2:57 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Hi Hans,
>
> Why not reverting to Ganymede and using AnyEdit for non Java and XML files
> ?
>
> Jacques
>
> From: "Hans Bakker" <ma...@antwebsystems.com>
>
>  I am sorry, i have to remove them by hand and sometimes i forget some...
>>
>> On Tue, 2009-09-29 at 14:38 +0530, Ashish Vijaywargiya wrote:
>>
>>> Hello Hans,
>>>
>>> This is friendly reminder that your commit contains *tabs* once again.
>>> Can you please take care of it?
>>>
>>> Please let me & community know about your editor settings so we can solve
>>> the problem and can come to some better solution.
>>> Thanks!
>>>
>>> -
>>> +        if (UtilValidate.isNotEmpty(
>>> >
>>> > context.get("iterateId"))) {
>>> > +               iterateId = (String) context.get("iterateId");
>>> > +        }
>>>
>>>
>>>
>>> --------------------
>>>
>>> +            if (iterateIndex < listSize) {
>>> +               contextMs.put("iterateId",
>>> >
>>> > String.valueOf(entryName+iterateIndex));
>>> > +               iterateIndex++;
>>> > +            }
>>>
>>>
>>>
>>> ----------------
>>>
>>> --
>>> Ashish
>>>
>>> On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:
>>>
>>> > Author: hansbak
>>> > Date: Tue Sep 29 07:42:20 2009
>>> > New Revision: 819849
>>> >
>>> > URL: http://svn.apache.org/viewvc?rev=819849&view=rev
>>> > Log:
>>> > add a sequence number to links if a form is iterated in an iterate
>>> section
>>> >
>>> > Modified:
>>> >    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>> >
>>> >
>>>  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>> >
>>> > Modified:
>>> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>> > URL:
>>> >
>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
>>> >
>>> >
>>> ==============================================================================
>>> > --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>> > (original)
>>> > +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>>> Tue
>>> > Sep 29 07:42:20 2009
>>> > @@ -267,13 +267,16 @@
>>> >     public static String makeLinkHiddenFormName(Map<String, Object>
>>> > context, ModelFormField modelFormField) {
>>> >         ModelForm modelForm = modelFormField.getModelForm();
>>> >         Integer itemIndex = (Integer) context.get("itemIndex");
>>> > +        String iterateId = "";
>>> >         String formName = (String) context.get("formName");
>>> >         if (UtilValidate.isEmpty(formName)) {
>>> >             formName = modelForm.getName();
>>> >         }
>>> > -
>>> > +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
>>> > +               iterateId = (String) context.get("iterateId");
>>> > +        }
>>> >         if (itemIndex != null) {
>>> > -            return formName + modelForm.getItemIndexSeparator() +
>>> > itemIndex.intValue() + modelForm.getItemIndexSeparator() +
>>> > modelFormField.getName();
>>> > +            return formName + modelForm.getItemIndexSeparator() +
>>> > itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
>>> > modelFormField.getName();
>>> >         } else {
>>> >             return formName + modelForm.getItemIndexSeparator() +
>>> > modelFormField.getName();
>>> >         }
>>> >
>>> > Modified:
>>> >
>>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>> > URL:
>>> >
>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
>>> >
>>> >
>>> ==============================================================================
>>> > ---
>>> >
>>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>> > (original)
>>> > +++
>>> >
>>> ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>>> > Tue Sep 29 07:42:20 2009
>>> > @@ -128,6 +128,7 @@
>>> >         int rowCount = 0;
>>> >         Iterator iter = theList.iterator();
>>> >         int itemIndex = -1;
>>> > +        int iterateIndex = 0;
>>> >         while (iter.hasNext()) {
>>> >             itemIndex++;
>>> >             if (itemIndex >= highIndex) {
>>> > @@ -138,13 +139,17 @@
>>> >                 continue;
>>> >             }
>>> >             if (isEntrySet) {
>>> > -                contextMs.put(entryName, ((Map)item).get("value"));
>>> > +                contextMs.put(entryName, ((Map)item).get("value"));
>>> >                 contextMs.put(keyName, ((Map)item).get("key"));
>>> >             } else {
>>> >                 contextMs.put(entryName, item);
>>> >             }
>>> >             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
>>> > -
>>> > +
>>> > +            if (iterateIndex < listSize) {
>>> > +
>>> > contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
>>> > +               iterateIndex++;
>>> > +            }
>>> >             rowCount++;
>>> >             for (ModelScreenWidget.Section section: this.sectionList) {
>>> >                 section.renderWidgetString(writer, contextMs,
>>> > screenStringRenderer);
>>> >
>>> >
>>> >
>>>
>> --
>> Antwebsystems.com: Quality OFBiz services for competitive rates
>>
>>
>
>

Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Hans,

Why not reverting to Ganymede and using AnyEdit for non Java and XML files ?

Jacques

From: "Hans Bakker" <ma...@antwebsystems.com>
>I am sorry, i have to remove them by hand and sometimes i forget some...
>
> On Tue, 2009-09-29 at 14:38 +0530, Ashish Vijaywargiya wrote:
>> Hello Hans,
>>
>> This is friendly reminder that your commit contains *tabs* once again.
>> Can you please take care of it?
>>
>> Please let me & community know about your editor settings so we can solve
>> the problem and can come to some better solution.
>> Thanks!
>>
>> -
>> +        if (UtilValidate.isNotEmpty(
>> >
>> > context.get("iterateId"))) {
>> > +               iterateId = (String) context.get("iterateId");
>> > +        }
>>
>>
>>
>> --------------------
>>
>> +            if (iterateIndex < listSize) {
>> +               contextMs.put("iterateId",
>> >
>> > String.valueOf(entryName+iterateIndex));
>> > +               iterateIndex++;
>> > +            }
>>
>>
>>
>> ----------------
>>
>> --
>> Ashish
>>
>> On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:
>>
>> > Author: hansbak
>> > Date: Tue Sep 29 07:42:20 2009
>> > New Revision: 819849
>> >
>> > URL: http://svn.apache.org/viewvc?rev=819849&view=rev
>> > Log:
>> > add a sequence number to links if a form is iterated in an iterate section
>> >
>> > Modified:
>> >    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>> >
>> >  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>> >
>> > Modified:
>> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>> > URL:
>> > http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
>> >
>> > ==============================================================================
>> > --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
>> > (original)
>> > +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Tue
>> > Sep 29 07:42:20 2009
>> > @@ -267,13 +267,16 @@
>> >     public static String makeLinkHiddenFormName(Map<String, Object>
>> > context, ModelFormField modelFormField) {
>> >         ModelForm modelForm = modelFormField.getModelForm();
>> >         Integer itemIndex = (Integer) context.get("itemIndex");
>> > +        String iterateId = "";
>> >         String formName = (String) context.get("formName");
>> >         if (UtilValidate.isEmpty(formName)) {
>> >             formName = modelForm.getName();
>> >         }
>> > -
>> > +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
>> > +               iterateId = (String) context.get("iterateId");
>> > +        }
>> >         if (itemIndex != null) {
>> > -            return formName + modelForm.getItemIndexSeparator() +
>> > itemIndex.intValue() + modelForm.getItemIndexSeparator() +
>> > modelFormField.getName();
>> > +            return formName + modelForm.getItemIndexSeparator() +
>> > itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
>> > modelFormField.getName();
>> >         } else {
>> >             return formName + modelForm.getItemIndexSeparator() +
>> > modelFormField.getName();
>> >         }
>> >
>> > Modified:
>> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>> > URL:
>> > http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
>> >
>> > ==============================================================================
>> > ---
>> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>> > (original)
>> > +++
>> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
>> > Tue Sep 29 07:42:20 2009
>> > @@ -128,6 +128,7 @@
>> >         int rowCount = 0;
>> >         Iterator iter = theList.iterator();
>> >         int itemIndex = -1;
>> > +        int iterateIndex = 0;
>> >         while (iter.hasNext()) {
>> >             itemIndex++;
>> >             if (itemIndex >= highIndex) {
>> > @@ -138,13 +139,17 @@
>> >                 continue;
>> >             }
>> >             if (isEntrySet) {
>> > -                contextMs.put(entryName, ((Map)item).get("value"));
>> > +                contextMs.put(entryName, ((Map)item).get("value"));
>> >                 contextMs.put(keyName, ((Map)item).get("key"));
>> >             } else {
>> >                 contextMs.put(entryName, item);
>> >             }
>> >             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
>> > -
>> > +
>> > +            if (iterateIndex < listSize) {
>> > +
>> > contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
>> > +               iterateIndex++;
>> > +            }
>> >             rowCount++;
>> >             for (ModelScreenWidget.Section section: this.sectionList) {
>> >                 section.renderWidgetString(writer, contextMs,
>> > screenStringRenderer);
>> >
>> >
>> >
> -- 
> Antwebsystems.com: Quality OFBiz services for competitive rates
>



Re: svn commit: r819849 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: WidgetWorker.java screen/IterateSectionWidget.java

Posted by Hans Bakker <ma...@antwebsystems.com>.
I am sorry, i have to remove them by hand and sometimes i forget some...

On Tue, 2009-09-29 at 14:38 +0530, Ashish Vijaywargiya wrote:
> Hello Hans,
> 
> This is friendly reminder that your commit contains *tabs* once again.
> Can you please take care of it?
> 
> Please let me & community know about your editor settings so we can solve
> the problem and can come to some better solution.
> Thanks!
> 
> -
> +        if (UtilValidate.isNotEmpty(
> >
> > context.get("iterateId"))) {
> > +               iterateId = (String) context.get("iterateId");
> > +        }
> 
> 
> 
> --------------------
> 
> +            if (iterateIndex < listSize) {
> +               contextMs.put("iterateId",
> >
> > String.valueOf(entryName+iterateIndex));
> > +               iterateIndex++;
> > +            }
> 
> 
> 
> ----------------
> 
> --
> Ashish
> 
> On Tue, Sep 29, 2009 at 1:12 PM, <ha...@apache.org> wrote:
> 
> > Author: hansbak
> > Date: Tue Sep 29 07:42:20 2009
> > New Revision: 819849
> >
> > URL: http://svn.apache.org/viewvc?rev=819849&view=rev
> > Log:
> > add a sequence number to links if a form is iterated in an iterate section
> >
> > Modified:
> >    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> >
> >  ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> >
> > Modified:
> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> > URL:
> > http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java?rev=819849&r1=819848&r2=819849&view=diff
> >
> > ==============================================================================
> > --- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java
> > (original)
> > +++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetWorker.java Tue
> > Sep 29 07:42:20 2009
> > @@ -267,13 +267,16 @@
> >     public static String makeLinkHiddenFormName(Map<String, Object>
> > context, ModelFormField modelFormField) {
> >         ModelForm modelForm = modelFormField.getModelForm();
> >         Integer itemIndex = (Integer) context.get("itemIndex");
> > +        String iterateId = "";
> >         String formName = (String) context.get("formName");
> >         if (UtilValidate.isEmpty(formName)) {
> >             formName = modelForm.getName();
> >         }
> > -
> > +        if (UtilValidate.isNotEmpty(context.get("iterateId"))) {
> > +               iterateId = (String) context.get("iterateId");
> > +        }
> >         if (itemIndex != null) {
> > -            return formName + modelForm.getItemIndexSeparator() +
> > itemIndex.intValue() + modelForm.getItemIndexSeparator() +
> > modelFormField.getName();
> > +            return formName + modelForm.getItemIndexSeparator() +
> > itemIndex.intValue() + iterateId + modelForm.getItemIndexSeparator() +
> > modelFormField.getName();
> >         } else {
> >             return formName + modelForm.getItemIndexSeparator() +
> > modelFormField.getName();
> >         }
> >
> > Modified:
> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> > URL:
> > http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=819849&r1=819848&r2=819849&view=diff
> >
> > ==============================================================================
> > ---
> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> > (original)
> > +++
> > ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
> > Tue Sep 29 07:42:20 2009
> > @@ -128,6 +128,7 @@
> >         int rowCount = 0;
> >         Iterator iter = theList.iterator();
> >         int itemIndex = -1;
> > +        int iterateIndex = 0;
> >         while (iter.hasNext()) {
> >             itemIndex++;
> >             if (itemIndex >= highIndex) {
> > @@ -138,13 +139,17 @@
> >                 continue;
> >             }
> >             if (isEntrySet) {
> > -                contextMs.put(entryName, ((Map)item).get("value"));
> > +                contextMs.put(entryName, ((Map)item).get("value"));
> >                 contextMs.put(keyName, ((Map)item).get("key"));
> >             } else {
> >                 contextMs.put(entryName, item);
> >             }
> >             contextMs.put("itemIndex", Integer.valueOf(itemIndex));
> > -
> > +
> > +            if (iterateIndex < listSize) {
> > +
> > contextMs.put("iterateId",String.valueOf(entryName+iterateIndex));
> > +               iterateIndex++;
> > +            }
> >             rowCount++;
> >             for (ModelScreenWidget.Section section: this.sectionList) {
> >                 section.renderWidgetString(writer, contextMs,
> > screenStringRenderer);
> >
> >
> >
-- 
Antwebsystems.com: Quality OFBiz services for competitive rates