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,
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
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
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
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:
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
6 matches
Mail list logo