ValidateRegEx Is Firing Validation On Empty InputText Field

(Doc ID 2408951.1)

Last updated on JUNE 11, 2018

Applies to:

Oracle JDeveloper - Version 12.2.1.2.0 to 12.2.1.3.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

If you have an input text component on the page with RegEx validation to restrict to enter only numbers. Problem arises when you enter some number and emptying the same field or removing the entered value, validations are fired on empty input text field. ie, RegEx fires the validation and error is thrown saying that format is incorrect. This behavior is observed only in JDeveloper 12c releases ( 12.2.1.2.0 and 12.2.1.3.0).
In JDeveloper 11g versions, above behavior is not seen. ie, RegEx does not fire validation on empty input fields.

Source code example is:

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms