Re: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-23 Thread totojack
Hi. I've solved the problem. And the solution was... reading the documentation with great attention!!! In particular, from http://struts.apache.org/2.0.11/docs/type-conversion.html, the paragraph "Relationship to Parameter Names": 1 - Use JavaBeans! The framework can only create objects if the o

RE: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-22 Thread totojack
Hi David, the OutOfMemoryError was solved using %{#stat.index} in the inputs, as suggested by Laurie Harper. You're right about the web server heap space, but the cause of the error was obviously my wrong ognl expression. Does this stack trace begin with a java.lang.OutOfMemoryError as well?

Re: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-22 Thread jimski
Hi totojack- I think you're right that the key property is useless now that you're using the positional index to access your list elements. Also, the type conversion page says that using the unique id indexed approach won't allow for automatic creation of instances. The docs say the following

RE: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-22 Thread Hernandez, David
To: user@struts.apache.org Subject: Re: [S2] Beans list in Dynamic form and ParametersInterceptor problem The problem of songs list size is solved using #stat.index. But not the parameters error. The list size now is 1, but the element inside is null. So, it can't create song beans and p

Re: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-22 Thread totojack
The problem of songs list size is solved using #stat.index. But not the parameters error. The list size now is 1, but the element inside is null. So, it can't create song beans and put it into the list. In the conversion props file the Element_songs is correctly set to the Song bean class. The Key

Re: [S2] Beans list in Dynamic form and ParametersInterceptor problem

2008-01-22 Thread Laurie Harper
The problem looks to be that you're using the song ID as a list index: If the value of SongId for the first item in the list is 658, on submit Struts will try and put that song's data at index 658 in the list...! What you probably want is: Hi. I'm having probl