Skip to Content

Inputfield doValidate bug? Need opinions!


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)



Add a comment
10|10000 characters needed characters exceeded

Related questions

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.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.