on 03-09-2006 7:57 PM
Can anyone tell me why typing in a non-numeric character into an Input Field of type decimal causes a java.lang.NullPointerException during validation, rather then giving an incorrect data message? Is there a work around for this bug. I wanted to make sure it wasnt just my own app, so I checked in ESS with the same results.
Thanks, Kevin
That sounds like a bug in the Java data dictionary. Open an OSS message. A workaround could be realized using a calculated attribute where you parse the input in the set-method.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using Version: 2.0.14
I havent made any adjustments to the Library at all. I simply create a new Value Attribute of simple type decimal in the Context. I set the value of an input field to use this attibute. Then When I run the application, I type "99ggghh" into the field and I will get the null error.
I have come up with a workaround though, I set the attribute to type String and then validate as a decimal myself and it seems to work just fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried using get/set but the input validation is done before any other methods are called, and I get the null pointer exception everytime.
This would appear to be a pretty big Bug, but I am unable to find any reference to it during any of my searches.
Is there a way to call a method before the field validation or some way to modify the validation in order to fix this?
Thanks,
-Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kevin,
How is your decimal type setup in the dictionary? What values did you use for Total Digits and Fraction Digits, anything entered in the Representation tab, etc.?
I tried it out and it works fine (gives a normal validation error messag like 'Please give value in form -2,733.34'. Also, what version are you running? I tried it in NW04 SP 11.
-Cindy
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.