OGNL makeNew

2008-01-14 Thread jimski
In the type conversion page on the wiki there's some discussion of automagically creating new elements in a set. I've been trying to get this to work but haven't succeeded thus far. Can anyone point me to a working example of the collection.makeNew[index].property feature? Unlike Map and List e

Struts framework design question: Type Converters and Tags

2008-01-22 Thread jimski
I recently ran into an issue where I noticed that a custom type converter was being called when parameters were being applied to a model object but not when that model was being rendered out to a result via the s:select tag. The issue is probably summed up by Jasper Rosenberg's previous bug repor

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: Type converters: convertToString not called

2008-01-28 Thread jimski
Hi Ravi- I think the problem here is how the struts2 tags were implemented. As far as I can see from the code base the type converter definition you're referring to is used by the XWork API and not OGNL. The XWork api is used by the Struts Tags which have the option to call the converter or not

Re: Struts 2 exception problem

2008-04-04 Thread jimski
Hi Oguzhan- We've run into the *exact* same problem. Our interceptor is returning "error" but that return value is not respected when the result is rendered. It makes me wonder what the value of returning the invocation result is in the first place... Just stepping through the code and browsi