Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Florian Barth
I actually found the page you were mentioning before. But that doesn't resolve my problem: In Dynamic Indexes for Indexed Properties there is an example for using a text-field to alter a String value: html:text name=stringbean property='%= labelValue[ + ctr + ].label %' / Looks very nice,

Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Dave Newton
Florian Barth wrote: Looks very nice, but the textfield accesses the getter and setter of the LabelValueBean that is returned from the StrinBean. My Bean just returns the the String-object that has actually no getter and setter for it's value. Let me get this straight: you're iterating over

Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Florian Barth
The list of strings is actually part of an ActionForm. On load of display I kinda like to decompose the list to a bunch of text-fields, that are recomposed to a list of string on submit c:forEach items=${listOstrings} var=s input type=text name=${s} /c:forEach I'll try this, maybe the

Re: Problem with logic:iterate and List of Strings

2006-06-14 Thread Florian Barth
I tried to do it with your piece of code, but that didn't quite work I think one solution would be to write a StringWrapper with a String-Value and the according getter/setter (e.g. getVal, setVal) and fill the list with this StringWrappers instead of Strings, so html:text

Problem with logic:iterate and List of Strings

2006-06-13 Thread Florian Barth
Hi folks! I'm having a little problem with a jsp. My FormBean has a List of Strings as value. Now I would like to iterate over the elements of that list, creating a text-field for every element the list contains. At the moment I can online write out the elements using this code-snippet:

Re: Problem with logic:iterate and List of Strings

2006-06-13 Thread Rahul Akolkar
On 6/13/06, Florian Barth [EMAIL PROTECTED] wrote: Hi folks! I'm having a little problem with a jsp. My FormBean has a List of Strings as value. Now I would like to iterate over the elements of that list, creating a text-field for every element the list contains. At the moment I can online write