cancel
Showing results for 
Search instead for 
Did you mean: 

Inputfield doValidate bug? Need opinions!

thomasalexander_ritter
Active Contributor
0 Kudos

Hi,

Yesterday I tested my inputFields which are set to validate and only allow <b>INTEGER</b> values.

       <htmlb:inputField id         = "test"
                                alignment  = "LEFT"
                                size       = "6"
                                required   = "TRUE"
                                doValidate = "TRUE"
                                type       = "Integer" />

While checking the boundary values I noticed something strange. The following testcases didn't caused the "enter a numeric value" popup to appear.

1) Inputfield= .

2) Inputfield= -

3) Inputfield= -0

4) Inputfield= .0

5) Inputfield= .-3

6) Inputfield= .+3

7) Inputfield= 3-.

😎 Inputfield= 3.-

I am not an expert in mathematics but I think especially testcases 2) and 5)-8) are not valid integers. So is this a bug? If yes I will of course open an OSS message. (We are using 620 SP47)

regards

Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

rainer_liebisch
Contributor
0 Kudos

Hi Thomas,

I would say it's a less stringent condition rather than a bug. It is always recommended to check the input values by yourself, but you're right, values like .3 aren't integers from the mathematical point of view.

If you really need this functionality, you can open a OSS message on the component BC-BSP with the comment that it should be routed to the development support.

Regards,

Rainer