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 name="stringWrapper" value =
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
I'll try this, maybe the value of the String could be added by value =
${s}, right?
Thank you
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 o
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:
Looks very nice, but the textfield accesses the getter and setter of the
LabelValueBean
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 writ
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:
Just
Murray,
Many thanks - I had totally missed indexId. This makes it so easy!
Mike
Murray Collingwood wrote:
Hi Mike
Thats easy.
Outer loop needs to specify the "indexId" parameter as in:
type="application.FamilyMember" indexId="memberIndex">
Then you can use whatever inner loop (or loops)
Hi Mike
Thats easy.
Outer loop needs to specify the "indexId" parameter as in:
Then you can use whatever inner loop (or loops) you want.
Inside here you can refer to the 'memberIndex' as in:
HTH
Cheers
mc
On 29 Oct 2005 at 15:29, Mike Manley wrote:
> Thanks for that - but I think I'
Thanks for that - but I think I've not explained my problem properly.
The problem is that the bean containing the data is NOT the one in the
inner loop but the bean iterated through in the outer loop:
I want to be able to access as from within the inner loop.
familymembers[0].surname, family
Hi Mike
Maybe I'm simplifying it somewhat and I'm not sure of your form-bean structure,
however the outer loop should loop through 'familymembers' as it is looping it
should
set a form-bean for the inner loop identifying a 'familymember'. I also like
to add the
type here - helps my inline do
Hi,
I have a problem trying to create a multi row edit form which has to be
able to dynamically decide which columns should be displayed for edit.
My jsp uses the code below.
id="familymembers">
id="formItem">
<% Input
:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 6:57 PM
To: user@struts.apache.org
Subject: Problem with logic:iterate Tag
I am populating following simple List in action class and putting that in form
class.
private List getSystemTableList(ConfWizardBean confwizbean, HttpSession
I am populating following simple List in action class and putting that in form
class.
private List getSystemTableList(ConfWizardBean confwizbean, HttpSession
session){
ArrayList outerList = new ArrayList();
for (int i = 0; i < 2; i++)
{
pageContext.setAttribute("bar",projects,PageContext.PAGE_SCOPE);
it's an attribute in the page scope, not session, does
it have to be in a session? I am only using it for
the current page...
--- Eric Lemle <[EMAIL PROTECTED]> wrote:
> Is bar in the session?
>
> >>> [EMAIL PROTECTED] 3/2/2005 12
Is bar in the session?
>>> [EMAIL PROTECTED] 3/2/2005 12:45:03 PM >>>
thanks I am running into a related problem with radio
buttons:
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find bean under name
org.apache.struts.tagli
thanks I am running into a related problem with radio
buttons:
when rendered it says:
[ServletException in:/calc/ProjectManagerMain.jsp]
Cannot find bean under name
org.apache.struts.taglib.html.BEAN'
What's wrong?
thanks
--- Eric Lemle <[EMAIL PROTECTED]>
Ok it's a trivial mistake, didn't actually put
anything in the Vector.
--- Jonathan M Z <[EMAIL PROTECTED]> wrote:
> hi folks,
> I am trying to iterate a through a Vector of object
> of
> class Project where project has getter and setter
> getDescription(),setDescription(),etc
> In the jsp page
I think this is what you are looking for
-Eric
>>> [EMAIL PROTECTED] 3/2/2005 12:09:49 PM >>>
hi folks,
I am trying to iterate a through a Vector of object of
class Project where project has getter and setter
getDescription(),setDescription(),etc
In the jsp page I first created bean o
hi folks,
I am trying to iterate a through a Vector of object of
class Project where project has getter and setter
getDescription(),setDescription(),etc
In the jsp page I first created bean of name bar.
Vector v=new Vector();
Project p1=new Project();
p1.setName("project1");
p1.setDescription("des"
19 matches
Mail list logo