RE: newbie question on indexed properties and validation

2006-06-23 Thread Givler, Eric
Thanks, this is very much appreciated. Is this something that is going to make it into a Struts Base release? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 11:15 AM To: Struts Users Mailing List Subject: Re: newbie question on indexed

Re: newbie question on indexed properties and validation

2006-06-22 Thread Niall Pemberton
You can do this: http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html Niall On 6/15/06, Givler, Eric <[EMAIL PROTECTED]> wrote: I was following this article (MS Powerpoint presentation by James Turner) here: http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt When,

RE: newbie question on indexed properties and validation

2006-06-16 Thread Givler, Eric
lto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 8:32 AM To: Struts Users Mailing List Subject: RE: newbie question on indexed properties and validation I can provide a zip of the workspace I was doing for this if that would help. I just can't seem to get the multiple errors. Can th

RE: newbie question on indexed properties and validation

2006-06-16 Thread Givler, Eric
[mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 9:44 AM To: Struts Users Mailing List Subject: newbie question on indexed properties and validation I was following this article (MS Powerpoint presentation by James Turner) here: http://www.strutskickstart.com/IndexedPropertiesandValidati

newbie question on indexed properties and validation

2006-06-15 Thread Givler, Eric
I was following this article (MS Powerpoint presentation by James Turner) here: http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt When, I tried to cobble this all into a working example, if I left out multiple values (in a four record grid), I'd get one struts validation error bac

Re: newbie question on indexed properties

2004-07-09 Thread jthompson
| | cc: | | Subject: Re: newbie question on indexed properties | >--| You will need to add indexed getters and s

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
Rick Reumann wrote: Bill Siggelkow wrote: Okay -- now I am confused -- if I use your approach I get ... javax.servlet.ServletException: Cannot find bean esami in any scope I have to specify the name of the form as the value for the 'name' atrribute of logic:iterate Are you sure you have the itera

Re: newbie question on indexed properties

2004-07-09 Thread Davide Gurgone
Bill Siggelkow wrote: Okay -- now I am confused -- if I use your approach I get ... javax.servlet.ServletException: Cannot find bean esami in any scope Is because you have to declare it on the struts-config.xml file but read below I wrong... I have to specify the name of the form as the value f

Re: newbie question on indexed properties

2004-07-09 Thread Rick Reumann
Bill Siggelkow wrote: Okay -- now I am confused -- if I use your approach I get ... javax.servlet.ServletException: Cannot find bean esami in any scope I have to specify the name of the form as the value for the 'name' atrribute of logic:iterate Are you sure you have the iterate taking place insid

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
Okay -- now I am confused -- if I use your approach I get ... javax.servlet.ServletException: Cannot find bean esami in any scope I have to specify the name of the form as the value for the 'name' atrribute of logic:iterate Davide Gurgone wrote: Bill Siggelkow wrote: Davide, Maybe I am doing some

Re: newbie question on indexed properties

2004-07-09 Thread Davide Gurgone
Bill Siggelkow wrote: Davide, Maybe I am doing something wrong but I have had problems getting indexed =true to work for arrays on the form -- it works correctly for arrays of a nested property of form. For example, if I were to use what you suggested I get something like:

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
Davide, Maybe I am doing something wrong but I have had problems getting indexed =true to work for arrays on the form -- it works correctly for arrays of a nested property of form. For example, if I were to use what you suggested I get something like: When what I want is

Re: newbie question on indexed properties

2004-07-09 Thread Davide Gurgone
Bill Siggelkow wrote: You will need to add indexed getters and setters -- public String getAnswer(int index); public String setAnswer(int index, String value); ’/> Better :) [CUT] [CUT] it render a property named property[0], property[1], etc

Re: newbie question on indexed properties

2004-07-09 Thread Bill Siggelkow
You will need to add indexed getters and setters -- public String getAnswer(int index); public String setAnswer(int index, String value); ’/> [EMAIL PROTECTED] wrote: I have a form bean with a string array defined as a property, with a corresponding set/get like this: private String[] an

newbie question on indexed properties

2004-07-08 Thread jthompson
I have a form bean with a string array defined as a property, with a corresponding set/get like this: private String[] answers = { "Answer 1","Answer 2","Answer 3","Answer 4","Answer 5" }; public String[] getAnswers() { return (this.answers); } public void setAnswers(String[] value) { this.an