Skip to Content

Inputfield doValidate bug? Need opinions!

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Posted on Feb 10, 2005 at 09:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded