Re: A table on a form from a List of Lists

2005-01-26 Thread Cédric Levieux
true html:text name=myField property=myProperty/ is the good way ... On Tue, 25 Jan 2005 18:15:06 +0100, Olasoji Ajayi [EMAIL PROTECTED] wrote: i thought the property attribute is required in the html:text tag. - Original Message - From: Cedric Levieux [EMAIL PROTECTED] To: Struts

Re: A table on a form from a List of Lists

2005-01-26 Thread Olasoji Ajayi
but the object myField is a String and not a bean - Original Message - From: Cédric Levieux [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, January 26, 2005 11:30 AM Subject: Re: A table on a form from a List of Lists true html:text name=myField

Re: A table on a form from a List of Lists

2005-01-25 Thread Olasoji Ajayi
the method did not work, i think its because the nested tags deal with beans nested in beans but this deals with lists in a list in a bean (like a 2 dimensional array), i was hoping if i code the property like property[row][col], if will call my getter method String getProperty(int row, int

Re: A table on a form from a List of Lists

2005-01-25 Thread Cedric Levieux
Hi, There is a way : table logic:iterate id=row name=myForm proprties=listOfRows tr logic:iterate id=myField name=row proprties=listOfFields td bean:write name=myField/ /td /logic:iterate /tr /logic:iterate /table Regards, Cedric - Original

Re: A table on a form from a List of Lists

2005-01-25 Thread Olasoji Ajayi
if this works, it will take care of writing the table to the jsp but i need an html input type of field so i can also set the properties of the ActionForm by editing the fields and submiting the form. - Original Message - From: Cedric Levieux [EMAIL PROTECTED] To: Struts Users Mailing

Re: A table on a form from a List of Lists

2005-01-25 Thread Cedric Levieux
And by this way ? html:form action=/myAction table logic:iterate id=row name=myForm proprties=listOfRows tr logic:iterate id=myField name=row proprties=listOfFields td html:text name=myField/ /td /logic:iterate /tr /logic:iterate /table /html:form but

Re: A table on a form from a List of Lists

2005-01-25 Thread Hubert Rabago
Well, lists of lists work, but the property to display or set itself must be a bean with accessors. It doesn't have to be a standalone class - it can be an inner class, or a dyna bean. On Tue, 25 Jan 2005 17:02:11 +0100, Olasoji Ajayi [EMAIL PROTECTED] wrote: if this works, it will take care of

Re: A table on a form from a List of Lists

2005-01-25 Thread Olasoji Ajayi
the second iterate will treat row like a bean and will try to retrieve the value of property called list of fields and it will result in an erroe because the row is actually a List and not a bean and it does not have a property called listofFields. and i dont think html:text works without a

Re: A table on a form from a List of Lists

2005-01-25 Thread Olasoji Ajayi
Wow, i never thought of that, i will definitly give that a try, i think it should work - Original Message - From: Hubert Rabago [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, January 25, 2005 5:34 PM Subject: Re: A table on a form from a List of

Re: A table on a form from a List of Lists

2005-01-25 Thread Cedric Levieux
So if row is a list try this html:form action=/myAction table logic:iterate id=row name=myForm properties=listOfRows tr logic:iterate id=myField name=row td html:text name=myField/ /td /logic:iterate /tr /logic:iterate /table /html:form directly -

Re: A table on a form from a List of Lists

2005-01-25 Thread Olasoji Ajayi
i thought the property attribute is required in the html:text tag. - Original Message - From: Cedric Levieux [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, January 25, 2005 6:02 PM Subject: Re: A table on a form from a List of Lists So if row is a

A table on a form from a List of Lists

2005-01-24 Thread Olasoji Ajayi
Hi, i have been trying to create a table on my form from a single property in my actionForm. the property is a List (actually an ArrayList) containg the rows of the table, each element (i.e row on the table) is represented by a List of Strings representing the fields of the list. i can code my

Re: A table on a form from a List of Lists

2005-01-24 Thread Hubert Rabago
Take a look at the nested tags. In your case, your code may end up looking like: nested:form action=/myAction table nested:iterate property=listOfRows tr nested:iterate property=listOfFields td nested:text property=myField /td /nested:iterate tr/