struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-22 Thread Sergio Italiani
While having done the same with struts 2.0 blank project - work perfectly well. Also works if i add the code to struts2-showcase (validation folder). The problem is as follows: I tried to add double validation to 2.1.6 blank project and if i type in form illegal value - say 'aaa' - instead of sho

having trouble with type conversion in struts 2.1.6

2009-01-23 Thread Sergio Italiani
Hi All! Could anybody please tell me if I should add anything to the struts2blank project (of struts 2.1.6) so that type conversion error handling ( i mean the --> invalid.fieldvalue.fieldname) would work properly. I am clearly missing something, because instead of displaying invalid.fieldvalue m

Re: Upgrading Struts 2

2009-01-25 Thread Sergio Italiani
Hi Andy! Sorry for bothering you. I tried to migrate (following Apache wiki article) from my sample app that was based on 2.0.11 (struts blank) to 2.1.6 and as a result some type conversions handled by the frame work stopped working and now i got IllegalArgumentException: Cannot format given Obje

Re: Upgrading Struts 2

2009-01-25 Thread Sergio Italiani
sed nobody else came across this... On Sun, Jan 25, 2009 at 5:52 PM, Musachy Barroso wrote: > Your problem could be related to this: > > http://jira.opensymphony.com/browse/XW-670 > > musachy > > On Sun, Jan 25, 2009 at 5:37 AM, Sergio Italiani > wrote: >> Hi Andy! &

Re: Upgrading Struts 2

2009-01-25 Thread Sergio Italiani
y new project on it. On the other hand StrutsBlank is small but it is not working properly as far as type conversion is concerned (and I didn't proceed to try anything else... ) Thanks Sergio, On Sun, Jan 25, 2009 at 7:06 PM, Wes Wannemacher wrote: > On Sunday 25 January 2009 11:44:46 Se

Re: Upgrading Struts 2

2009-01-30 Thread Sergio Italiani
ogspot.com/2009/01/migrating-from-struts-20x-to-216.html > > Best greetings, > Paweł Wielgus. > > 2009/1/25 Wes Wannemacher : >> On Sunday 25 January 2009 12:39:27 Sergio Italiani wrote: >>> OK you got a point there... but again if it was XWork bug wouldn't it >>>

Re: having trouble with type conversion in struts 2.1.6

2009-01-30 Thread Sergio Italiani
t if myd contains double or not before formatting.... On Fri, Jan 23, 2009 at 8:37 PM, Sergio Italiani wrote: > Hi All! > Could anybody please tell me if I should add anything to the > struts2blank project (of struts 2.1.6) so that type conversion error > handling > ( i mean the

Re: struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-30 Thread Sergio Italiani
It turns out that the problem I was having - had nothing to do with type conversion. The problem was a chunk of my code that was responsible for formatting. Specifically, the exception "IllegalArgumentException: Cannot format given Object as a Number" was thrown because of (format.money i

Re: struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-30 Thread Sergio Italiani
t if myd contains double or not before formatting.... On Thu, Jan 22, 2009 at 10:04 AM, Sergio Italiani wrote: > While having done the same with struts 2.0 blank project - work > perfectly well. Also works if i add the code to struts2-showcase > (validation folder). > > The problem i