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
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

struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-22 Thread pochtaaac pochta
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

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